In case of a newly flashed board, a Wifi access point (AP) will be created. Go to your Wifi settings on your computer and find the new Wifi AP (starts with MoonBase, MoonLight or ESPSvelteKit)
If the board AP is not showing up in your WiFi list it might be helpful to fully erase the board (vscode 👽, Erase flash)
Connect to the AP (no password needed), a captive portal will show with a welcome screen.
There seems to be an issue in the captive portal showing Connection to device lost repeatedly. In that case, close the captive portal and open the app in a brower using 192.168.4.1
Go to the menu and select Wifi / Wifi Station
Press (+) and enter the SSID and the password of your Wifi Network
Press Add Network and Apply settings
The board will reconnect to your Wifi Network
Go back to your Wifi Network on your computer
Find out the new IP of the board, or in your Wifi Network settings or by looking at the log in the Serial Monitor (see above)
(sometimes it takes a while to load pages for the first time, might be related to caching of javascript, on the issuelist)
UI dev: configure vite.config.ts, go to interface folder, npm install, npm run dev. A local webserver starts on localhost. UI changes will directly be shown via this webserver
Want to make changes: fork the repo and submit pull requests
MoonBase specific
Connect a 256 leds panel to the board
Search for FastLED.addLeds in the code and update to the pin you use to drive LEDS, reflash the code to the board
Go to the UI in the browser
Go to Custom / Files and create or upload Live scripts
Go to Custom / Module Animations and select the 'hardcoded animations' (Random, Sinelon, Rainbow), you should see it on your panel
Select any of the Live scripts you uploaded, check the Serial Output for results. (No led output in current version, see below)
Open the Edit area and change things in the code, see the Serial Output for results
To do
Find a way to present feedback to the UI (e.g. error messages as comments in the sc file)
Extend the code in ModuleAnimations.h to support led animations ('homework assignment')
see ModuleAnimation.h (Server)
Current script supported
void setup() {
printf("Run Live Script good afternoon\n");
}
void main() {
setup();
}