Repository navigation
Moving to a new AP
Use this to replace the AP with a new board, of the same kind or another (a C6 to an S3 + C6, a C6 with screen, a C5, and back). It is a backup and restore: the labels follow without being paired again.
- A PC with
esl_client.py(esl-client) on the same network as the old AP. - The old AP's API token (
--token, orOPENESL_TOKEN). - The new board, and a USB cable for it.
The labels need nothing: the radio channel and PAN ID are the same on every board, and a label does not remember which AP it belongs to. A label that polls the new AP before the restore keeps showing what it has, and after the restore it gets the same content back, usually without drawing its screen again (another AP firmware version may draw it slightly differently, and then it is drawn once). Labels that hear no AP for more than two hours (by default) put a small crossed-out signal mark in their top right corner (older label firmware shows "No AP found" instead); the mark goes away, or the content comes back, after the restore, so keep the move short.
-
Back up the old AP:
esl_client.py --url http://openesl.local backup ap.json. Check that the line it prints counts your labels with content. - Turn the old AP off. Two APs on the same channel would both answer the labels.
- Flash the new board on the Flash AP tab (Flashing the access point). Going to an S3 + C6, the old C6 can be the radio: the page erases it and flashes the radio firmware, so take the backup first.
-
Set WiFi and token (WiFi and API token). On an S3 or C5 over USB, use the port marked USB; without it, use the setup network
openesl-XXXXfrom a phone. -
Restore:
esl_client.py --url http://openesl-xxxx.local restore ap.json, with the new AP's name. Take the token you set in step 4. -
Follow the
note:lines:-
wifi --hostname openeslgives the new AP the old name, so scripts, Home Assistant and bookmarks keep working. The AP rejoins its WiFi to tell the router, so use the old name from then on. - With the Home Assistant integration: a new AP with the old name is found again by itself, at its new address. With a new name it is a new AP to Home Assistant: add it, and the labels' devices follow it as they poll it. Remove the old AP from Home Assistant once it is gone.
- A label firmware rollout that was not finished: send the same firmware again with
esl_client.py tag-ota openesl-tag-<model>-v<release>-ota.bin, from the release whose firmware for that model has the version in the note (tag-otashows the version before it sends). Labels that already have it are not sent it again. A rollout to chosen labels only: upload the file on the Dashboard and tick the same labels (orPUT /api/tag-firmware?to=<MAC>), sincetag-otasends to every label of the model. There is no note when the new AP already offers firmware for that model, or when every label had it.
-
-
Run
restoreonce more after the labels have polled the new AP if it said pictures are waiting. That can take up to 10 minutes: labels that heard no AP while the old one was off poll less often, up to every 600 s, andrestoresays which are still waiting. A picture needs the label's model, which the AP learns from its first poll.
Restoring the same file twice changes nothing, so running it again in step 7 is safe.
- WiFi and API token: set them again in step 4. The WiFi password cannot be read back from the old AP.
-
The AP's name: a new AP gets a name of its own (
openesl-xxxx.local) until you runwifi --hostnamein step 6. - Label firmware for updates: the AP cannot give the file back. The note in step 6 says which release file to send again.
- A label shows the "no AP" mark or "No AP found": it heard no AP for two hours (by default). After the restore it draws its content again without the mark at its next poll; give it up to 10 minutes.
-
restoresays pictures are waiting: the labels have not polled the new AP yet. Runrestoreagain when they have; that can take up to 10 minutes. - The old AP is still on: both answer the labels. Turn it off, or flash it as something else.
- Going back: the backup file goes onto the old AP just as well. Flash it back if it was erased, and restore the same file.
OpenESL is released under the MIT licence. These pages are made from the wiki/ folder in the repository: to fix something, send a pull request there, or open an issue.
Getting started
Access point
Labels
Layouts
Sending content
- Overview
- HTTP API
- esl-client
- Price lists from CSV
- Scheduled prices
- Home Assistant
- Weather on a label
Running it
- Dashboard
- Health and webhook
- Updating the AP
- Updating labels
- Upgrading from older versions
- Backup and restore
- Moving to a new AP
Help
Developers