Fix issue #26; move wifi credentials to settings

This commit is contained in:
Daniel Eichhorn
2017-07-19 20:08:07 +02:00
parent a835f2f45e
commit 0b0b6464ff
2 changed files with 7 additions and 6 deletions

View File

@@ -163,7 +163,7 @@ void setup() {
carousel.disableAllIndicators(); carousel.disableAllIndicators();
//Manual Wifi //Manual Wifi
WiFi.begin("yourssid", "yourpassw0rd"); WiFi.begin(WIFI_SSID, WIFI_PASS);
while (WiFi.status() != WL_CONNECTED) { while (WiFi.status() != WL_CONNECTED) {
delay(500); delay(500);
Serial.print("."); Serial.print(".");

View File

@@ -32,7 +32,8 @@ const int UPDATE_INTERVAL_SECS = 10 * 60; // Update every 10 minutes
#define TOUCH_CS D3 #define TOUCH_CS D3
#define TOUCH_IRQ D4 #define TOUCH_IRQ D4
#define WIFI_SSID "yourssid"
#define WIFI_PASS "yourpassw0rd"
// Wunderground Settings // Wunderground Settings
// To check your settings first try them out in your browser: // To check your settings first try them out in your browser:
// http://api.wunderground.com/api/WUNDERGROUND_API_KEY/conditions/q/WUNDERGROUND_COUNTTRY/WUNDERGROUND_CITY.json // http://api.wunderground.com/api/WUNDERGROUND_API_KEY/conditions/q/WUNDERGROUND_COUNTTRY/WUNDERGROUND_CITY.json
@@ -40,7 +41,7 @@ const int UPDATE_INTERVAL_SECS = 10 * 60; // Update every 10 minutes
// e.g. http://api.wunderground.com/api/808ba87ed77c4511/conditions/q/CA/SAN_FRANCISCO.json <- note that in the US you use the state instead of country code // e.g. http://api.wunderground.com/api/808ba87ed77c4511/conditions/q/CA/SAN_FRANCISCO.json <- note that in the US you use the state instead of country code
const String DISPLAYED_CITY_NAME = "Zürich"; const String DISPLAYED_CITY_NAME = "Zürich";
const String WUNDERGRROUND_API_KEY = "<WUNDERGROUND KEY>"; const String WUNDERGRROUND_API_KEY = "WUNDERGROUND_API_KEY";
const String WUNDERGRROUND_LANGUAGE = "EN"; const String WUNDERGRROUND_LANGUAGE = "EN";
const String WUNDERGROUND_COUNTRY = "CH"; const String WUNDERGROUND_COUNTRY = "CH";
const String WUNDERGROUND_CITY = "Zurich"; const String WUNDERGROUND_CITY = "Zurich";