0 votes
in Touch Interface by (160 points)
Just received the last color kit (Wemos mini D1 pro) and uploaded with color sketch (Arduino IDE 1.8.3)  without any problem.

Put my WiFi an Wundegroung API key in settings.

Wifi works and connects. The sketch wundeground URL modified with my setting gives a good answer from Firefox but the real firmware has all its values remaining to 0 ..........

I probably missing something ..... Any help please?

Regards.

2 Answers

0 votes
by (10.0k points)
This usually points towards problems with the city or country used. If your city contains a space then please use an underscore, e.g. "San Francisco" should be defined as "San_Francisco". Also country/state attribute needs to be mapped appropriately. In the US you can use the state, e.g. "CA", in other countries use the country or also try with state. Which values did you try for state and country?
by (160 points)
edited by
Hi,
I used :
http://api.wunderground.com/api/2xxxxxxxxxxxxxxe/conditions/q/FR/LA_ROCHELLE.json

const String DISPLAYED_CITY_NAME = "LA_ROCHELLE";
const String WUNDERGRROUND_API_KEY = "2xxxxxxxxxxxxxxe";
const String WUNDERGRROUND_LANGUAGE = "FR";
const String WUNDERGROUND_COUNTRY = "FR";
const String WUNDERGROUND_CITY = "LA_ROCHELLE";
0 votes
by (160 points)
Using the setting.h URL example I got a "several cities answer" in which I found the more precise request item like :

http://api.wunderground.com/api/2d8b2e12978d4d3e/conditions/q/FR/zmw:00000.89.07315.json

The new json answer look the one expected then ..............

Next I have to get time/date to be properly settled (now it is always 0 !!).

Regards

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

https://thingpulse.com

...