Darksky alternative

Wondering if anyone has a Darksky alternative for Grafana Cloud? e.g. an Openweather Plugin, etc?

1 Like

Welcome to the :grafana: Forum!

Indeed, since Apple acquired Darksky and greedily locked out the API, I was just exploring different weather plugins. I think one simple way to do this (though I have not yet tried it) would be to use one of the JSON plugins (this or this) and then query an API that offers a free tier. I have found several that may work:
https://openweathermap.org/price
https://weatherstack.com/product
https://www.weatherapi.com/pricing.aspx
https://www.weather.gov/documentation/services-web-api#

If I get a chance to install / try these out, I will post here how it goes.

1 Like

I found that this basic API that returns JSON works fine with the JSON API datasource plugin.

Setup is like this:

and then in the panel:

Thanks to @marcusolsson for developing such a great plugin.

1 Like

Thanks for the kind words! :heart:

Possible to convert the temp that is in Celsius to Fahrenheit?

I tried to test / accomplish this by performing a field override, but… no go [Yes, I realize the F->C
formula is wrong - I was simply testing it, real quick]


fo2

Grant - is there any way to beg of you to expound on the “Value mappings” that you give a peak of, in the screenshot, where you map / assign the icons to the conditions? I understand the concept, but not quite sure how you got an icon / image in there.
I reviewed the thread where you discussed this: [Image based on value-stat](: Image based on Value - Stat - #3 by grant2)
Read the grafana doc that you referenced,
Read the Grafana doc on unit picker
Read the Grafana doc on get Field Type icon
Referenced the emoji list and yet, I’m not connecting the dots. I’ve tried pasting the emoji URL, the base64, etc. into the “Display text field”, but none of them display. If I simply put “Clouds” for clouds - that text displays just fine.

I do, however, have the rest nailed down.

Thanks
~Richard

No need to beg. I am about to expound…

In the right pane, click Edit Vaue Mappings…

Paste the emoji that corresponds to the value that is getting returned by the query. In my JSON example, the response was this: https://cdn.glitch.me/6e8889e5-7a72-48f0-a061-863548450de5%2F50d.png

Click update, and voila!

3 Likes

First of all - THANK YOU

This just doesn’t seem to be working for me [pasting the emoji], but I’m not sure why. I browse to the emoji list… and try to right-click and select copy image or copy image address.

Then, I try to 1) paste the image 2) paste the image address in the ‘display text field’ - both paste as base64 instead of an image:

Neither works. Is it my browser, do you think?

From your screenshot, it looks like you are using a Mac. Is Grafana installed on that Mac or on another type of computer on your network? In my example, I am using Grafana Cloud (paid version) and I was using a Windows PC to do the value mappings configuration.

For sure I would see if using a different browser helps.

Ahaaaah. I suspect that this feature is included only in the paid version and not the “Community Version” that I am using. I am on all Linux software. Raspberry Pi 3 running Raspbian OS hosting the Grafana engine and I’m doing the dashboard edits from an Ubuntu 20 desktop, presenting it on a Raspberry Pi 4 running Raspbian OS. I’ll research a little more to determine if the paid version is required to do the emojis as well as trying an alternative browser.

Thank you so very much once again, for your help sir.

1 Like

Hi all!

There are definitely some differences in features between Grafana Cloud and self-hosting Grafana open source, however most of the core visualization options should be the same when building dashboards. That is to say, the value mapping differences shouldn’t be a feature locked behind a paywall. I’m very interested to hear if you’ve had time to test with a different OS and/or browser just to rule those out. In the meantime, I’ll see if I can replicate and get some issues opened if needed!

1 Like