Jump to content
We've recently updated our Privacy Statement, available here. ×

Weather Mod


Go to solution Solved by Glenn Hoskins,

Recommended Posts

Has anyone successfully used the Weather Mod? I have it setup exactly like the user guide states and not getting any results. I am wondering if it doesn't work with the free API key or if maybe something in our corporate network is blocking the API. Trying to troubleshoot with developer tools but not seeing any errors. 

image.thumb.png.1901b8f6cfcf9450d2d8643d385c3c06.png

Link to comment
Share on other sites

  • Solution

Hi Scott, 

I just signed up and tried this out. The mod does two API calls: one for current weather, and one for 7 day forecast. It looks like the current free API key only gives you access to current weather, so the second call is failing. This is the service I have available on my account:

image.png.2161ac01baf09120def93ec27b683aff.png

And here are the services they are currently offering, the free one is the first one on the left.

https://openweathermap.org/price#weather

This was giving me errors in the developer console though, so not sure if it's the same issue you're facing. 

Once I commented out the code for the second API call, it did render something with the current weather for the specified cities. The mod would probably work OK with a paid API key so it's not completely broken, but for the free key it probably is. The source code is here if you'd like to tweak it to comment out the forecast call like I did: https://github.com/spotfiresoftware/spotfire-mod-weather

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...