diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2015-12-29 13:33:28 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2015-12-29 13:33:28 +0100 |
| commit | fb5f9b0944a730f48bec0972c86546cda8ad3639 (patch) | |
| tree | 9ac6bea54679e6dd3eb2e9205785649a023b5f46 | |
| parent | f298525926c333e94a285ff69dce4ff999701959 (diff) | |
| download | weather-snowman-fb5f9b0944a730f48bec0972c86546cda8ad3639.tar.gz weather-snowman-fb5f9b0944a730f48bec0972c86546cda8ad3639.zip | |
alert on missing API key
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | weather.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1 +1,2 @@ Based on [esp8266-wifi-setup](https://github.com/9SQ/esp8266-wifi-setup/) by Kei Yoshimura. +To use, you need an OpenWeatherMap API key. diff --git a/weather.cpp b/weather.cpp index 4fabb1e..e76e462 100644 --- a/weather.cpp +++ b/weather.cpp @@ -7,6 +7,7 @@ #define JSONSIZE 1500 // json buffer size, for a cnt=2 request // ^ be careful with counter over/underflows! +#error "Specify an OpenWeatherMap API key and delete this line." #define CITYID "YOURCITYID" #define APIKEY "YOURAPIKEY" |
