This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Weather Info from API
#8
Hi, super job is done!. Will test it in nearest time.

Some ideas for improvements/additional possibilities:

1. If weather info is needed for place where device is located - possible not to show coordinates directly in script but take them from system:

require('uci')

latitude = uci.get('genohm-scada.core.latitude')
latitude = tonumber(latitude) or 0

longitude = uci.get('genohm-scada.core.longitude')
longitude = tonumber(longitude) or 0

If 0 - no coordinates - should be entered than..;

2. Would be great if we can show group addresses for weather conditions in the beginning of script, because these groups will be created later in this script (addresses showed natively, not by names). I see it was planned to do so, but was commented.. For me groups 33/1/XX are used, For test I will manually change them in script;

3. In my existing weather script I use weather condition icons. So condition is taken from informer, than condition's icon is showed at visu...
May be ''symbol code'' info from yr.no we can add to script and use with icons?

4. how often we can start this script? Once a day? Some informers not allowed very often requests and can block them, or allows for additional payment..

BR,

Alex
Reply


Messages In This Thread
Weather Info from API - by Fahd - 24.02.2022, 23:52
RE: Weather Info from API - by admin - 25.02.2022, 08:31
RE: Weather Info from API - by Mrinj - 27.05.2022, 13:14
RE: Weather Info from API - by admin - 27.05.2022, 13:19
RE: Weather Info from API - by Mrinj - 27.05.2022, 13:23
RE: Weather Info from API - by AlexLV - 08.06.2022, 05:51
RE: Weather Info from API - by RomansP - 08.06.2022, 08:52
RE: Weather Info from API - by AlexLV - 09.06.2022, 08:21
RE: Weather Info from API - by RomansP - 09.06.2022, 11:04
RE: Weather Info from API - by RomansP - 10.06.2022, 07:53
RE: Weather Info from API - by Mrinj - 22.06.2022, 08:00
RE: Weather Info from API - by Fahd - 22.06.2022, 09:59
RE: Weather Info from API - by RomansP - 22.06.2022, 08:17
RE: Weather Info from API - by Mrinj - 22.06.2022, 16:24
RE: Weather Info from API - by admin - 23.06.2022, 06:24
RE: Weather Info from API - by Mrinj - 23.06.2022, 06:36
RE: Weather Info from API - by Acla - 09.07.2022, 23:16
RE: Weather Info from API - by admin - 11.07.2022, 06:28
RE: Weather Info from API - by Acla - 11.07.2022, 21:30
RE: Weather Info from API - by RomansP - 12.07.2022, 06:20
RE: Weather Info from API - by fabiorusco - 31.10.2022, 10:48
RE: Weather Info from API - by RomansP - 31.10.2022, 13:48
RE: Weather Info from API - by fabiorusco - 03.11.2022, 06:51
RE: Weather Info from API - by fabiorusco - 03.11.2022, 13:07
RE: Weather Info from API - by RomansP - 03.11.2022, 14:44
RE: Weather Info from API - by fabiorusco - 03.11.2022, 15:09
RE: Weather Info from API - by P_marienborg - 17.01.2023, 09:15
RE: Weather Info from API - by admin - 17.01.2023, 09:15
RE: Weather Info from API - by alias74 - 09.06.2023, 08:07

Forum Jump: