Update README.md
description of new APIs
This commit is contained in:
parent
08579b0da8
commit
884c114e32
13
README.md
13
README.md
@ -6,6 +6,19 @@
|
|||||||
|
|
||||||
OpenDTU-Database adds an ESP32 LittleFS Database and two energy charts, a column chart of the last 25 hours and a full calendar chart.
|
OpenDTU-Database adds an ESP32 LittleFS Database and two energy charts, a column chart of the last 25 hours and a full calendar chart.
|
||||||
|
|
||||||
|
There are 3 new APIs available, returning JSON strings:
|
||||||
|
|
||||||
|
| API | returned values |
|
||||||
|
|-------------------|-----------------|
|
||||||
|
| /api/database | returns all recored data points from the database with total energy value |
|
||||||
|
| /api/databaseHour | returns the energy per hour for the last 25 hours |
|
||||||
|
| /api/databaseDay | returns the energy for each day |
|
||||||
|
|
||||||
|
Each data point has the following format:
|
||||||
|
[ _year (00-99)_, _month (1-12)_, _day (1-31)_, _hour (0-23)_, _energy (Wh)_ ]
|
||||||
|
|
||||||
|
Example: [23,6,30,15,132.995605]
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## !! IMPORTANT UPGRADE NOTES !!
|
## !! IMPORTANT UPGRADE NOTES !!
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user