1 Commits
Author SHA1 Message Date
T fe77b61813 Add platformio 2026-09-27 15:39:38 +02:00
4 changed files with 26 additions and 8 deletions
+1
View File
@@ -1,5 +1,6 @@
# Arduino build artifacts # Arduino build artifacts
build/ build/
.pio/
*.bin *.bin
*.elf *.elf
*.map *.map
+2 -2
View File
@@ -294,7 +294,7 @@ See [CHANGELOG.md](CHANGELOG.md) for the full version history with technical det
- `Adafruit SSD1306` - `Adafruit SSD1306`
- `NTPClient` - `NTPClient`
- `WiFiManager` (by tzapu) - `WiFiManager` (by tzapu)
- `AsyncHTTPRequest_Generic` - `asyncHTTPrequest` (by Bob Lemaire)
- `ESPAsyncTCP` - `ESPAsyncTCP`
- `ArduinoJson` (by Benoit Blanchon) - `ArduinoJson` (by Benoit Blanchon)
@@ -605,7 +605,7 @@ Device reboots immediately.
- [ESP8266 Arduino Core](https://github.com/esp8266/Arduino) - [ESP8266 Arduino Core](https://github.com/esp8266/Arduino)
- [Adafruit SSD1306](https://github.com/adafruit/Adafruit_SSD1306) - [Adafruit SSD1306](https://github.com/adafruit/Adafruit_SSD1306)
- [WiFiManager](https://github.com/tzapu/WiFiManager) - [WiFiManager](https://github.com/tzapu/WiFiManager)
- [AsyncHTTPRequest_Generic](https://github.com/khoih-prog/AsyncHTTPRequest_Generic) - [asyncHTTPrequest](https://github.com/boblemaire/asyncHTTPrequest)
- [NTPClient](https://github.com/arduino-libraries/NTPClient) - [NTPClient](https://github.com/arduino-libraries/NTPClient)
**APIs**: **APIs**:
+4 -6
View File
@@ -3,20 +3,18 @@
* TJ-56-654 Weather Clock v1.9.3 * TJ-56-654 Weather Clock v1.9.3
*/ */
// Include AsyncHTTPRequest BEFORE globals.h to provide full type definition // Include asyncHTTPrequest before globals.h to provide the full type definition
#include <ESPAsyncTCP.h> #include <ESPAsyncTCP.h>
#define ASYNCHTTPREQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.13.0" #include <asyncHTTPrequest.h>
#define ASYNCHTTPREQUEST_GENERIC_VERSION_MIN 1013000
#include <AsyncHTTPRequest_Generic.h>
#include "globals.h" #include "globals.h"
#include <ArduinoJson.h> #include <ArduinoJson.h>
// Async HTTP client for weather (local to this file) // Async HTTP client for weather (local to this file)
static AsyncHTTPRequest weatherRequest; static asyncHTTPrequest weatherRequest;
// Weather response callback // Weather response callback
void ICACHE_FLASH_ATTR onWeatherResponse(void* optParm, AsyncHTTPRequest* request, int readyState) { void ICACHE_FLASH_ATTR onWeatherResponse(void* optParm, asyncHTTPrequest* request, int readyState) {
(void)optParm; // Unused (void)optParm; // Unused
if (readyState == 4) { // Request complete if (readyState == 4) { // Request complete
+19
View File
@@ -0,0 +1,19 @@
[platformio]
src_dir = firmware/weather_clock
[env:esp01_1m]
platform = espressif8266
board = esp01_1m
framework = arduino
board_build.ldscript = eagle.flash.1m64.ld
board_build.flash_mode = dio
upload_speed = 115200
upload_resetmethod = nodemcu
lib_deps =
adafruit/Adafruit GFX Library
adafruit/Adafruit SSD1306
arduino-libraries/NTPClient
tzapu/WiFiManager
boblemaire/asyncHTTPrequest @ 1.2.2
me-no-dev/ESPAsyncTCP
bblanchon/ArduinoJson @ ^7