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
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