Closed czacha338 closed 6 years ago
Hi @czacha338, some additional remarks:
In settings.js, line 469,470, 471 you set the default value for the wu settings (should be owm)
Further, can you also add an entry in the settinglist for all the owm related settings (See line 244 and further in settings.js for the wu examples). Otherwise we can't save the settings correctly from the dashticz webpage.
Last, can you extend all the language files with the OWM language identifiers you've added?
Hi,
Yes I can do it, but it can take a while :)
Regarding owm settings:
+if (typeof(settings['owm_api']) === 'undefined') settings['wu_api'] = '';
+if (typeof(settings['owm_country']) === 'undefined') settings['wu_country'] = 'NL';
+if (typeof(settings['owm_city']) === 'undefined') settings['wu_city'] = 'Amsterdam';
You are righ. I will also correct this.
Hi,
New users, which can not get API key for Wunderground have to leave without weather forcast. I have found 2 solution, for them:
1. Solution:
Put into frame weather forecast from Forecast.io, example of url: http://forecast.io/embed/#lat=49.9816&lon=9.0865&name=Mainaschaff&color=#00aaff&font=Helvetica&fontcolor=#ffffff&units=si&text-color=#fff%22
2. Solution:
I have developed a java script which is using an api provided from https://openweathermap.org/ .
This openweathermap has only one disadvantage, if someone would like to get a daily weather forecast needs to pay. I prefer to use hourly forecast anyway, because it is more precise and easily to predict weather for next few hours. :) The whole javascript is compatible with your configuration, so it is easy to use it. I am not sure if user can use both weather forecasts, maybe then some changes in names of functions will be necessary. Unfortunately I cannot test it... Below how it look like:![openweather](https://user-images.githubusercontent.com/40031567/41510354-64b4c1d8-7263-11e8-8817-bb0a905aa031.PNG)
And right now changes in code (if you will like it you can marge to your branch): js/blocks.js
js/main.js
js/settings.js
js/weather_owm.js weather_owm.zip
And configuration in CONFIG.js: //weather new OWM
Best regards,
Adrian
PS. So finally I hope it will be fine :)