8000 Doc tweak and add vararg send helpers · kevincon/circuitpython@95d3289 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95d3289

Browse files
committed
Doc tweak and add vararg send helpers
1 parent 3be3e89 commit 95d3289

File tree

3 files changed

+152
-115
lines changed

3 files changed

+152
-115
lines changed

docs/workflows.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ The web workflow is depends on adding Wi-Fi credentials into the `/.env` file. T
7070
automatically connect to the network and start the webserver used for the workflow. The webserver
7171
is on port 80. It also enables MDNS.
7272

73+
Here is an example `/.env`:
74+
75+
```bash
76+
# To auto-connect to Wi-Fi
77+
CIRCUITPY_WIFI_SSID='scottswifi'
78+
CIRCUITPY_WIFI_PASSWORD='secretpassword'
79+
80+
# To enable modifying files from the web. Change this too!
81+
CIRCUITPY_WEB_API_PASSWORD='passw0rd'
82+
```
83+
7384
MDNS is used to resolve [`circuitpython.local`](http://circuitpython.local) to a device specific
7485
hostname of the form `cpy-XXXXXX.local`. The `XXXXXX` is based on network MAC address. The device
7586
also provides the MDNS service with service type `_circuitpython` and protocol `_tcp`.

supervisor/shared/web_workflow/static/welcome.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="/welcome.js" defer=true></script>
88
<body>
99
<h1><a href="/"><img src="/favicon.ico"/></a>&nbsp;Welcome!</h1>
10-
Welcome to CircuitPython's Web API. Through your browser you can <a href="/fs/">work with files</a>. Make sure you've set <code>CIRCUITPY_WEB_API_PASSWORD</code> in <code>/.env</code> and provide it when the browser prompts for it. Leave the username blank.
10+
Welcome to CircuitPython's Web API. Go to the <a href="/fs/">file browser</a> to work with files in the CIRCUITPY drive. Make sure you've set <code>CIRCUITPY_WEB_API_PASSWORD='somepassword'</code> in <code>/.env</code>. Provide the password when the browser prompts for it. Leave the username blank.
1111
<h2>Device Info</h2>
1212
Board: <a id="board"></a><br>
1313
Version: <span id="version"></span><br>

0 commit comments

Comments
 (0)
0