04-12-2019, 00:01
(03-12-2019, 22:56)ok2arm Wrote: Hi Boys
Maybee is my question offtopic, but...
Display is fully working, I have registered API in DarkSky, also writed in credentials.h but but not working...
Display not call API. I have tested "call" API on other device... = working
On display is 4x the same picute (clouds with ?, 0 / 0 etc...)
Any idea ?
Hello, OK2ARM,
Do you have turn internet on in Config.h file?
You have to have in Config.h:
Code:
// --------------------------------------------------------------------------------------
// Internet Settings
// --------------------------------------------------------------------------------------
#define ENABLE_INTERNET 1 // 1= Enable Internet connection, 0= Disable
#define WEBSERVER_PORT 80 // WebServer port (default 80)
// --------------------------------------------------------------------------------------
// NTP Server Settings. At least one should be defined
// --------------------------------------------------------------------------------------
#define TIMESERVER "pool.ntp.org"
and you position at least 4 decimal places, for example mine:
Code:
// --------------------------------------------------------------------------------------
// Dark Sky 4 Days Forecast Settings
// --------------------------------------------------------------------------------------
// Set the forecast longitude and latitude to at least 4 decimal places
// Hint: Use the same values set on the WeatherDuino Receiver
const String latitude = "50.181038"; // 90.0000 to -90.0000 negative for Southern hemisphere
const String longitude = "14.649961"; // 180.000 to -180.000 negative for West
(In Credentials.h you have to have WiFi credentials completed and api_key too.)
If you still can not, copy both files here (delete your credentials), or - otherwise - let me know if you work.
Good luck.