diff --git a/README.md b/README.md index d5076b7..51fc7f3 100755 --- a/README.md +++ b/README.md @@ -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