Update README.md

description of new APIs
This commit is contained in:
Ralf Bauer 2023-06-30 21:18:10 +02:00 committed by GitHub
parent 08579b0da8
commit 884c114e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
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]
![Screenshot](https://github.com/RaBa64/OpenDTU/blob/Database/docs/screenshots/23_Database.png)
## !! IMPORTANT UPGRADE NOTES !!