sonoff-server | Private Sonoff cloud server | Continuous Deployment library
kandi X-RAY | sonoff-server Summary
kandi X-RAY | sonoff-server Summary
The idea was to have a private, locally hosted server to manage all of your own Sonoff devices.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sonoff-server
sonoff-server Key Features
sonoff-server Examples and Code Snippets
Community Discussions
Trending Discussions on sonoff-server
QUESTION
I'm trying to create Node-RED flows to switch on/off my sonoff switches using https://github.com/saryn/node-red-contrib-sonoff-server.
The node to switch on is definied here: https://github.com/saryn/node-red-contrib-sonoff-server/blob/master/node-on/node-on.js. In this code it says
ANSWER
Answered 2018-Aug-05 at 14:18No, it is not possible to dynamically supply the device id with that node as it is currently written.
Looking at the code it would probably be pretty trivial to modify it to take id from the input message. If you choose to do this please raise a pull request against the original node rather than just fork so the feature can be shared by all users and not end up diluting the collection of nodes with very similar release.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sonoff-server
Install all dependencies npm i
The device will automatically drop out of AP mode and tries to connect to WiFi and server.
Put the SonOff/Wemos device in AP mode (press and hold button for 5s)
Find the device and connect to it (SSID: ITEAD-10000xxxxx Password: 12345678)
Add route if necessary sudo route change 0.0.0.0 mask 0.0.0.0 10.10.7.1
(optional) use httpie to read device info http http://10.10.7.1/device.
use httpie to send local WiFi settings to 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=8080
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page