r/Scriptable • • 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?

2 Upvotes

32 comments sorted by

View all comments

Show parent comments

1

u/robertandrews Aug 12 '21

Amazing. Agree, all very reasonable. Is this something you're going to release?

1

u/mvan231 script/widget helper Aug 12 '21

Definitely will plan to release it.

As for the freezing and above freezing coloring, how about this? the numbers are exaggerated here because I set the freezing point to be 77 to show what below freezing would look like. It's also conditional based on the units chosen (imperial vs metric)

You can also see the sun up vs sun down text coloring in the x axis labels

1

u/robertandrews Aug 12 '21 edited Aug 12 '21

Temperature colour-coding - looks brilliant. (Will that blue rain meter ever overlap with blue freezing text, I wonder?).

Wind direction - Does it now lack something with the absence of the speed integers? (Is that the "5" I see on the rain column, or is that something else?).

Sundown/up colour - nice addition. Though daylight colour is same as wind direction icon background, that's a clash (like the wind direction is related to sunlight hours). Should the wind direction icons be so yellow? Maybe fine, else for the clash.

1

u/mvan231 script/widget helper Aug 12 '21

The color coding very well can overlap. What are your thoughts with this?

For the wind direction, yes the number there is the speed, that part hasn't really moved. I can definitely make the background behind the arrow gray. Adding the units is definitely something I'd like to do, but also not sure it's necessary as there aren't units listed anywhere else but the percentage (technically unit-less).

I agree the sun up / sun down color should be different than the other accents.

How about something like this?

1

u/robertandrews Aug 13 '21

Rain vs temperature - turns out the blue-on-blue remains readable, so that's good.

Wind speed addition - seems good.

1

u/mvan231 script/widget helper Aug 13 '21 edited Aug 13 '21

Indeed.

You can try the script out if you like, I just uploaded the code here on my GitHub Scriptable Repo.

I will plan to add an updater functionality in the near future in case any changes need to be made

Edit: you'll need an openweathermap api key which you can get for free here

Near the top of the script there is a variable declaration for the api key to be pasted into

1

u/robertandrews Aug 14 '21 edited Aug 14 '21

Wonderful. Here it is on my iPad (the first Scriptable script I have run) - https://i.imgur.com/iqR7xAz.jpg And it's nice to see on my iPhone, too.

Would the daily version be a different script, or is there a flag in here somewhere? And how would you have widgets for both of those things on screen together - duplicate the script, pass an argument?

  • Rain: For me, I think the rain chart blues should be brighter. For kicks, I tried Color('17babf',0.85) - https://i.imgur.com/A33DniR.jpg

  • Units: switched to metric - https://i.imgur.com/tqsk6el.jpg

  • Wind: I turned showWindArrow false, thinking it would remove it - but false actually shows the compass acronyms, where I wanted to try no direction indicator there at all. Seems like you can't have speed showing but direction not showing? I guess I tried turning them off because they were cluttering the rain columns when there was low rain probability. (Would it be crazy to move wind to the top, which is also where the sky tends to be?).

Small size looks good - https://i.imgur.com/FgHbQtD.png But something's not right about the largest size - https://i.imgur.com/GApmRGJ.png

++ How often does this call the OpenWeather API?

++ Is there any mileage in a switch to remove the title (location and date)? This is likely known by users, and maybe you could maximise data on-screen without it. I commented-out the title line, but the black space remained as I guess the graph area coordiantes are set specific rather than relative. I'm also testing dropping the text size there to 20.

++ I'd be interested to see what happens on temperature when the temperature dips. Like, are you always starting the first temperature from the same position, so it will always be relative to that, or will lower temperatures start even lower down?

Thanks for this. It's so interesting, thinking what you can do with this. For instance, I see the OneCall API returns cloud cover (which Aix et al plotted at the top of the chart), degrees of rain (eg. "Light rain") (grades of blues?).

→ More replies (0)