- Code: Selecteer alles
Welcome to the Nodo Webapp API
API Commands:
POST: api/login - login
GET: api/devices - list devices
GET: api/devices/[id] - list device
POST: api/devices - Add device
PUT: api/devices/[id] - Edit device
DELETE: api/devices/[id] - Delete device
PUT: api/sortdevice/[id]/[up/down] - Sort device
GET: api/devicecmds/[id] - List device commands
GET: api/devicecmd/[id] - List device command
POST: api/devicecmd - Add device command
PUT: api/devicecmd/[id] - Edit device command
PUT: api/devicecmdstate/[id] - Edit command state
GET: api/devicestate - List device state
GET: api/alarms - list alarm
GET: api/alarms/[alarmnr] - List specific alarm
GET: api/nodostatus - Read nodostatus
GET: api/notifications - List notifications
POST: api/notifications - Add notification
PUT: api/notifications/[id] - Edit notification
DELETE: api/notifications/[id] - Delete notification
GET: api/events/[nr of events] - List events
GET: api/groups - List groups
POST: api/groups - Add group
PUT: api/groups/[id] - Edit group
DELETE: api/groups/[id] - Delete group
GET: api/messages/[nr of messages] - List messages
GET: api/nodostrustingyou - List nodo id's who trust you
GET: api/nodosyoutrust - List nodo id's you trust
GET: api/nodosyoutrust/[id] - List nodo id you trust
POST: api/nodosyoutrust - Add nodo id's you trust
PUT: api/nodosyoutrust - Edit nodo id's you trust
DELETE: api/nodosyoutrust/[id] - Delete nodo id's you trust
GET: api/cmdsyoutrust/[id] - List cmd's you trust
GET: api/cmdyoutrust/[id] - List cmd you trust
PUT: api/cmdyoutrust/[id] - Edit cmd you trust
DELETE: api/cmdyoutrust/[id] - Delete cmd you trust
POST: api/cmdsend/[cmd] - Send command to Nodo
GET: api/graphdata/[id]/[interval]/[type] - Get graph data
GET: api/graphs - List graphs
GET: api/helptext/[key] - Show helptext
En dat is wel erg mager. Heeft iemand al geprobeerd met de API te werken en kan mij op weg helpen? Het zou nog mooier zijn als iemand die info op de wiki zou zetten...
Bij voorkeur Arduino code voorbeelden van hoe je via de api kan inloggen en een sensorwaarde kan updaten, direct in de Nodo webapp. Dan kan ik dat proberen te porten naar de ESP module.