Here are the end-points for the REST API
Conduit mPower API
Here are some curl examples, these are easier to show than a node-red flow. Should not be too much work to port node-red.
# curl 127.0.0.1/api/ni/nis/0 -X PUT --data '{"MAC":"00:08:00:4A:1E:AF","available":true,"bridge":"--","ipv4":{"dns1":"172.16.0.20","dns2":"", "gateway":"172.16.0.1", "ip":"172.16.0.182","mask":"255.255.255.0","mode":"STATIC"}, "name":"eth0","nitype":"ETHER","type":"LAN"}' -H "Content-Type: application/json"
# curl 127.0.0.1/api/loraNetwork -X PUT --data '{"network":{"name":"NEW-NAME"}}' -H "Content-Type: application/json"
# curl 127.0.0.1/api/command/save_restart -X POST --data '' -H "Content-Type: application/json"
-
This reply was modified 7 years, 3 months ago by
Jason Reiss.