0 votes
in Touch Interface by (120 points)
Hi

I can't get data to display in the icons all I get is question marks.

My settings are below.

const String WUNDERGRROUND_LANGUAGE = "EN";
const String WUNDERGROUND_COUNTRY = "UK";
const String WUNDERGROUND_CITY = "Redditch";

Can someone help please?

1 Answer

0 votes
by (140 points)
Did you follow the instructions and get a Wunderground key?  I'm sorry, but the guide is very complete - more complete than this request for help.  Some more info would be helpful that just this snippet.  If you want a good answer, you have to put some efforts in it yourself.

Start by posting your settings.h file, anonymizing your wifi and Wunderground key.  Otherwise, good luck with a request like that...
by (120 points)
Hi
Below is settings.h

/**The MIT License (MIT)
Copyright (c) 2015 by Daniel Eichhorn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See more at http://blog.squix.ch
*/

#include <simpleDSTadjust.h>

// Setup
#define WIFI_SSID "virginmedia1096058"
#define WIFI_PASS "Anybody"

const int UPDATE_INTERVAL_SECS = 15 * 60; // Update every 10 minutes
const int SLEEP_INTERVAL_SECS = 0;   // Going to Sleep after idle times, set 0 for dont sleep


// Pins for the ILI9341
#define TFT_DC D2
#define TFT_CS D1
#define TFT_LED D8

#define HAVE_TOUCHPAD
#define TOUCH_CS D3
#define TOUCH_IRQ  D4
    


// Wunderground Settings
// 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
// e.g. http://api.wunderground.com/api/808ba87ed77c4511/conditions/q/CH/Zurich.json
// 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 = "Redditch";
const String WUNDERGRROUND_API_KEY = "Anybody";
const String WUNDERGRROUND_LANGUAGE = "EN";
const String WUNDERGROUND_COUNTRY = "UK";
const String WUNDERGROUND_CITY = "Redditch";

#define UTC_OFFSET + 0
struct dstRule StartRule = {"CEST", Last, Sun, Mar, 2, 3600}; // Central European Summer Time = UTC/GMT +2 hours
struct dstRule EndRule = {"CET", Last, Sun, Oct, 2, 0};       // Central European Time = UTC/GMT +1 hour

// Settings for Boston
// #define UTC_OFFSET -5
// struct dstRule StartRule = {"EDT", Second, Sun, Mar, 2, 3600}; // Eastern Daylight time = UTC/GMT -4 hours
// struct dstRule EndRule = {"EST", First, Sun, Nov, 1, 0};       // Eastern Standard time = UTC/GMT -5 hour

// values in metric or imperial system?
bool IS_METRIC = true;

// Change for 12 Hour/ 24 hour style clock
bool IS_STYLE_12HR = false;

// change for different ntp (time servers)
#define NTP_SERVERS "0.ch.pool.ntp.org", "1.ch.pool.ntp.org", "2.ch.pool.ntp.org"
// #define NTP_SERVERS "us.pool.ntp.org", "time.nist.gov", "pool.ntp.org"

/***************************
 * End Settings
 **************************/
by (140 points)
You may want to start with reading through the !entire! settings file more carefully.  Please read his Github page:
https://github.com/squix78/esp8266-weather-station-color

Where it says under "Settings" you need:
"API key for the wunderground service"

So you need to go to wunderground.com, at the bottom it says "Weather API".  You need to get one by creating an account, and filling out the form.  It's free.  
When you have this key, it needs to go here:



const String WUNDERGRROUND_API_KEY = "Anybody";

Also It looks like this is your WIFI key, which was not wise to put.  Also DO NOT POST this key nor your WIFI key here!  I repeat myself - anonymize it.
The Wunderground key should be a string of "random" letters and numbers like in the example.  i.e. 808ba87ed77c4511

Get a key and paste it there and it will work.

Good luck

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...