Espurna: REST API: one common status page

Created on 25 May 2018  路  4Comments  路  Source: xoseperez/espurna

currently is very complicated to query all sensors data ie.

  • first call /apis
  • then call all api endpoint and each call gives only one value.

eg it'd be very useful if i can call a /api/status which gives a "real" json result with all sensor data.

api enhancement

Most helpful comment

Enhancement: Add RSSI, Uptime, avg load... To rest api similar to how data is transmitted to MQTT.
This would be a great addition as I want to build a status panel in PHP to see all my Sonoffs without the need of MQTT. Thank you.

All 4 comments

@lfarkas : araya bir suru sey girdi, bu yuzden sira gelmedi :)

a more versatile rest api is needed and is in to do queue but we've never got to it yet.
while at it, do you have any other rest api enhancements ideas?

similar to issue: https://github.com/xoseperez/espurna/issues/446

of course it could be a graphql api which would be more user friendly but in this simple case may a rest api would be enough. for the only the query will be important (and wouldn't like to call 3-10 http request just to get 3-10 simple value. i review the current influxdb interface and decided that i'd rather write my own telegraf input plugin. but with this so many call it's rather annoying...
anyway setting all parameters which one can also modify on the web interface would be useful.

Enhancement: Add RSSI, Uptime, avg load... To rest api similar to how data is transmitted to MQTT.
This would be a great addition as I want to build a status panel in PHP to see all my Sonoffs without the need of MQTT. Thank you.

RSSI would be great!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rradar picture rradar  路  3Comments

gn0st1c picture gn0st1c  路  11Comments

FlorianSW picture FlorianSW  路  3Comments

Cabalist picture Cabalist  路  8Comments

BakaOsaka picture BakaOsaka  路  10Comments