Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe77b61813 |
@@ -1,5 +1,6 @@
|
||||
# Arduino build artifacts
|
||||
build/
|
||||
.pio/
|
||||
*.bin
|
||||
*.elf
|
||||
*.map
|
||||
|
||||
@@ -294,7 +294,7 @@ See [CHANGELOG.md](CHANGELOG.md) for the full version history with technical det
|
||||
- `Adafruit SSD1306`
|
||||
- `NTPClient`
|
||||
- `WiFiManager` (by tzapu)
|
||||
- `AsyncHTTPRequest_Generic`
|
||||
- `asyncHTTPrequest` (by Bob Lemaire)
|
||||
- `ESPAsyncTCP`
|
||||
- `ArduinoJson` (by Benoit Blanchon)
|
||||
|
||||
@@ -605,7 +605,7 @@ Device reboots immediately.
|
||||
- [ESP8266 Arduino Core](https://github.com/esp8266/Arduino)
|
||||
- [Adafruit SSD1306](https://github.com/adafruit/Adafruit_SSD1306)
|
||||
- [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)
|
||||
|
||||
**APIs**:
|
||||
|
||||
@@ -3,20 +3,18 @@
|
||||
* 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>
|
||||
#define ASYNCHTTPREQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.13.0"
|
||||
#define ASYNCHTTPREQUEST_GENERIC_VERSION_MIN 1013000
|
||||
#include <AsyncHTTPRequest_Generic.h>
|
||||
#include <asyncHTTPrequest.h>
|
||||
|
||||
#include "globals.h"
|
||||
#include <ArduinoJson.h>
|
||||
|
||||
// Async HTTP client for weather (local to this file)
|
||||
static AsyncHTTPRequest weatherRequest;
|
||||
static asyncHTTPrequest weatherRequest;
|
||||
|
||||
// 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
|
||||
|
||||
if (readyState == 4) { // Request complete
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user