Custom Widget: Weather Chart (Meteogram)

its seems to working now :slight_smile:

2 Likes

I tried using the HABPanel widget and I am very happy with the many options integrated directly into the widget. However, I am missing one important setting that appears in the Meteogram API page: updateInterval. Any idea where I find that setting or where I can integrate it?

What provider is everyone using for Germany? I tried several and they deliver very different data, even for today.

I realize that this is a philosophical question, but there are surely some better suited for Germany and some less.

What is your experience? Thanks!

I am using “DWD” (Deutsche Wetterdienst Dienst). No major false info so far.

Thanks!

I get an http 500 error from metogram website everytime I use this widget (OH 2.4 on docker). Even with a fresh widget and only default settings (+token and location).
Generating meteogram on meteogram website with same settings is working. Any ideas?

What URL are you using?

Hello Mike,
I did some futher tests, it works when wind speed unit is set to mph but I get this error when set to kmh. My URL it this (removed token and location).

https://nodeserver.cloud3squared.com/getMeteogram/%7B%20%20%22longitude%22:%2010.69,%20%20%22placeName%22:%20%22xxx%22,%20%20%22countryCode%22:%20%22DE%22,%20%20%22latitude%22:%2050.94,%20%20%22hoursToDisplay%22:%2060,%20%20%22token%22:%20%22sub_xxx%22,%20%20%22chartWidth%22:%20%22700%22,%20%20%22chartHeight%22:%20%22350%22,%20%20%22theme%22:%20%22blue-gradient%22,%20%20%22windSpeed%22:%20%22true%22,%20%20%22windArrows%22:%20%22true%22,%20%20%22temperatureSeries%22:%20%22actual%22,%20%20%22weatherSymbolsSet%22:%20%22default%22,%20%20%22temperatureUnit%22:%20%22celsius%22,%20%20%22windSpeedUnit%22:%20%22km%22,%20%20%22appType%22:%20%22pro%22,%20%20%22accountName%22:%20%22webapp%22,%20%20%22source%22:%20%22webapp%22,%20%20%22trigger%22:%20%22WEBAPP%22,%20%20%22checker%22:%20%22webapp-webapp-webapp%22,%20%20%22appLocaleUsed%22:%20%22getFromCountryCode%22%7D

Try using km/h 


1 Like

Yes, km/h instead of km is working . I am using the widget, the drop down only allows km. :face_with_monocle:
image

So I think @ysc has to change the unit in json file on his first post in this thread.

Edit: just found the option to paste the whole URL in the widget settings.

Or you could use the “official” api options editor.

Did something change regarding the pricing? Just noticed the “Only 47.5 credits left” note on my actual gram, checking the monthly usage I get: “API calls made so far in period: 245”

credits message should be gone when the meteogram next refreshes


1 Like

Message gone. Thanks

It’s me again, now I got the message “no credits left”.
Am I the only one getting this message/using this service? Other then that the service is runing smooth.

Is there something new in case DWD is used for the weather data?

@opus what URL are you using? PM me if you like


1 Like

This widget looks pretty cool but I dont’t get it running. I use the weather Chart (Meteogram) widget from the widget gallerie
I have a valid token and adjusted the widget settings with the correct location data, the setting-url to my favorite trello weather chart (https://trello-attachments.s3.amazonaws.com/55b9cbc60372879b15d71751/571f257f0e0d817c641f8aa2/ce3ececb3af2eccbf748b9cbda81fe4c/8871920ffe6c3263b29dfc113965a41565092097.json)
and customized the parameters without success.
Since you can’t customize the generall settings (e.g. update every: hour, two hours
) I’d like to embed the options from api option editor in a widget but I don’t know how.
Can somebody help me with it?

Hi everyone


Does anyone know, if its possible to do an auto update of the weather chart? (i use it on a old ipad2)

I do get this error from the console:

Refused to load the stylesheet ‘https://fonts.googleapis.com/css?family=Roboto:300,400,500,700’ because it violates the following Content Security Policy directive: “style-src ‘self’ ‘unsafe-inline’”. Note that ‘style-src-elem’ was not explicitly set, so ‘style-src’ is used as a fallback.

And therefore no meteogram is displayed

Not the chart itself, I use this rule in OH to reload the whole page in habpanelviewer.

rule "visu reload"
when
Time cron "0 5 * * * ?"
then
Tablet_Command.sendCommand("RELOAD")
end

Edit: Sorry you are on IOS, habpanelviewer is only available on android.