From fb5f9b0944a730f48bec0972c86546cda8ad3639 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 29 Dec 2015 13:33:28 +0100 Subject: alert on missing API key --- README.md | 1 + weather.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index fa44a6a..97fe991 100644 --- a/README.md +++ b/README.md @@ -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" -- cgit v1.3.1