And if anyone is a developer and wants to take a stab at using the /forecast endpoint and aggregating the data into a daily format, I would welcome it! That would probably make things easier for everyone else!
Also, based on HTML code I did a simple tile for my mobile dashboard…(test and fail method)
But I would like to go forward…but my very poor skills in HTML make me not the right person, I understand code logic, but I do not get HTML logic and commands at all…so anyone can helps me and play with these designs?..I can invite to him/her any beers as you ask !! or guide me with some tips about how to try them at least…
In theory, this custom tile could be edited to display any data from Open Weather. If you decide to take a stab at it, feel free to share your changes here so other community members can benefit from it.
Alternatively, some community members have been doing this with the HTTP Action in SharpTools rules so they can grab specific things from Open Weather and store them in variables either for display on their dashboards or for use within rules:
You can use the steps here to update to the latest code to get the new API Preference option.
There’s also a significant difference in the current day’s High/Low value between multi and onecall API preferences. For the onecall API, it’s the low and high for the day… whereas with the multi it’s the regional high/low for that point in time. I’m tempted to drop the H/L value from the current day when not using the ‘OneCall’ endpoint as I think the indicator could be confusing – thoughts?
If today’s high/low value is significant to you, feel free to sign up for the OneCall subscription and use that it includes a ‘daily’ forecast value which is otherwise unavailable on the free tier.
Another minor difference is the forecast icons - since the multi API Preference aggregates data from the ‘every 3 hour’ forecast, it picks the icon that occurs most often in the 3 hour forecasts for that day. I’m open to suggestions for alternative logic if someone has a better idea.
Set this up the other day and its working great. I have it on a 2x2 tile and have realized that the future days forecast is too small on my tablet and would prefer to just see the current temp in large font, the day’s forecasted high/low, rain % and wind speed on a 2x2 tile so that the current temp could be seen from 4’ to 6’ away on my 7" tablet and the other details visible as walking out the door to know if we need to grab a coat for the day or an umbrella. Simlar sizing to the 2x2 date/time tile. Would also prefer it to follow my dashboard theme for a cohesive design. Does anyone have the code for this already? I tried looking at the code for this tile and immediately knew it was gonna be an excessive number of manhours for me fumbling through trying to modify it.
You could modify the number set at the very top of your Custom Tile code if you wanted a faster refresh. Just keep in mind that a faster refresh could put you over your API limits.
Doing a quick “back of the napkin” math, even with the lower 1000 free API calls for the 3.0 version of the Open Weather API, if you had it set to every 10 minutes, that would be 144 calls per displayed tile in a day
(24 × 60) ÷ 10 = 144
So if you had a single weather tile on 5 different displays, that would be 720 API calls to the One Weather API each day.
Of course, that assumes you aren’t using the API key elsewhere (like in a Hubitat driver) that would be increasing the API call, but you get the idea.
Edit: And if you enable AQI in the tile settings, that requires a separate API call, so it would double the number of API calls.
I only have the weather on my main display so I decided to try 5 minute updates. Which should work out to 288 calls (24*60/5) with no air quality display. So, at line 12, REFRESH_INTERVAL =5*60*1000; //5 minute in ms
Okay, thanks for all that.
In a previous post you stated I’m tempted to drop the H/L value from the current day when not using the ‘OneCall’ endpoint as I think the indicator could be confusing – thoughts?
Don’t think you had any responses to that, however, I agree it is confusing. Is there a way to drop that?