Updated the 'How it works' section to the new POST "API"

This commit is contained in:
Blue Fox 2023-07-18 14:29:19 +01:00
parent 729082eb81
commit 200f7703d4

View File

@ -10,13 +10,20 @@ Supported e-Paper display: 2.7inch e-Paper HAT of Waveshare
1. The ESP32 connects to WiFi (for configuration, see Section "Install")
2. It connects to an NTP (Network Time Protocol) Server, and grabs the date
3. It gets today's daily text (in german) over HTTP GET. The URL format is:
3. It gets today's daily text (in german) over HTTP POST to *https://www.losungen.de/fileadmin/media-losungen/kalender/kalender_daten.php*. Also a line is appended to the HTTP Header
```
https://www.losungen.de/fileadmin/media-losungen/heute/YYYY/MMDD.html
```
4. Then the HTML page is parsed and the daily text is being formatted for displaying.
5. The texts get rendered on the e-Paper.
6. The ESP32 goes into deep sleep mode.
Content-Type", "application/x-www-form-urlencoded
```
4. POST parameters:
- **jahr**: Year (YYYY)
- **tagid**: The number of days passed since year began (beginning with 1)
5. Then the HTML page is parsed and the daily text is being formatted for displaying.
6. The texts get rendered on the e-Paper.
7. The ESP32 goes into deep sleep mode.
The POST parameters can be found out by looking up the functionality of [this](https://www.losungen.de/fileadmin/media-losungen/kalender/) cool, yet existing web parser.
## Install