The idea was to have a private, locally hosted server to manage all of your own Sonoff devices.
openssl req -x509 -newkey rsa:2048 -keyout certs/keytmp.pem -out certs/cert.pem -days 365
openssl rsa -in certs/keytmp.pem -out certs/key.pem
npm isudo route change 0.0.0.0 mask 0.0.0.0 10.10.7.1http http://10.10.7.1/device.http POST http://10.10.7.1/ap version:=4 ssid=[YOUR NETWORK SSID] password=[YOUR NETWORK PASSWORD] serverName=[IP OF YOUR SERVER] port=8080The device will automatically drop out of AP mode and tries to connect to WiFi and server.
npm run start
This project is based on information from following articles:
Content type
Image
Digest
Size
345.8 MB
Last updated
over 6 years ago
docker pull zinovik/smart-home-server