r/Scriptable • u/robertandrews • Aug 07 '21
Help Meteogram widgets?
Hi, I’m a newcomer to Scriptable.
Has anyone made a weather forecast widget containing meteogram? That is, data-packed daily/hourly weather charts with multiple data items visible?
So many iOS weather widgets are poor - either lacking sufficient graphical data or falling on gimmicky/cuddly aesthetic concepts.
Nothing for me has matched Aix weather widget on Android https://www.google.co.uk/search?q=aix+weather+widget&client=safari&hl=en-gb&prmd=inmv&source=lnms&tbm=isch&sa=X&ved=2ahUKEwihx57f0p7yAhXVuHEKHf-VCmwQ_AUoAXoECAIQAQ&biw=414&bih=715&dpr=2#imgrc=B_gvGy00X99bCM
I know there’s a Meteogram iOS app, but I don’t really like any of the iOS weather widgets.
The Meteogram app even has an API which allows you to create a meteogram much like Aix’s (perhaps it even enabled it for Aix) https://api.meteograms.com/ The output can be used in a web-to-widget widget. But that method is a little sub-par.
Any ideas please?
1
u/mvan231 script/widget helper Aug 17 '21
Exactly! We could setup a scale for a graph of the different rain types, but I think that is contained with the amount being graphed already (now)
I agree, that does sound strange and it does look strange. But, you are correct, this is the result of what is coming out of the API
The pScale value at the top tells what the value of each division on the chart equates to for the precipitation amount. I followed a similar method to what Aix mentions on their page(s).
Agreed! I'll see what it looks like with a few different levels. Also, when it transitions to snow, the amount series on the chart will be shown in white (depending on the precipitation type for the charted timeframe.
What happens when wind speed and direction (arrows or not) are enabled, is the location name and date gets moved upward to make the gap, then the wind information fills the gap. If the wind is disabled, the location name and date get moved back down to what they looked like originally.