Smart Lamp from scratch in here!
General "architecture":
ESP32 (lamp) <- websocket -> config server (ras pi) <- websocket -> web client
Using my router to have a nice url resolve to the ip for the ras pi server!
- setup dnsmasq
- Add raspi host 192.168.1.19 to hosts as smart.home
- 192.168.1.8 to hosts as dev.me
- sudo service dnsmasq restart
- start server on port 80
Now: dew@raspberrypi:~/server $ crontab -l @reboot /home/dew/Lamp/boot/onboot.sh