1

Weather App/Widget


So Wunderground.com no longer offers free API keys needed for the weather widget instructions on Brightsigns support page. I was wondering if there is another way to achieve this using another service such as openweathermap.org.

 

I've registered for a free API and when applying it to a weather widget on the site I get this code output (attached in the screenshot). Sorry, But i'm not a scripter and dont know where to use this within BrightAuthor, could use some help ^_^

 

7 comments

  • 1
    Avatar
    JRB Technical

    That script is meant to be placed in a HTML Web Page, and you would have to display that web page using BrightAuthor.

    Often these do not display properly on BrightSign or other Digital Signage Players, as they need to also connect to other assets, fonts, etc. that are not always available in a Digital Signage environment. Fonts may be cut off or over flow other text area's, render differently then a desktop browser, etc.



    I am not sure about OpenWeatherMap's widgets, but often the Terms of Service for these Online Weather Widgets require that the link is clickable for the end user, in which case they would not be (end user can not click on the Widget Providers Name and go to Their Website), and may be considered a violation of their Terms of Service.

    They also often make changes that break the widget, and don't offer any support, often leaving you with a widget that doesn't work or has problems. If  you are not that familiar with coding and scripting, getting these to work and fixing these issues can be a daunting task. 

     

    There are a few services that provide Weather specifically for Digital Signage Players.

    DS-Weather.com is one of them, providing custom Media RSS Weather Feeds from small zone to full screen sizes for locations worldwide, and in many different languages. The cost is $60 USD per year per player ($5 USD a month). Discounts are also available for those with large volumes of players.

  • 0
    Avatar
    John-Paul Bonadonna

    I too am curious regarding this.

    Environment Canada offers ATOM feeds. (I have no idea what that means other than I've read the word ATOM in other forum posts.)

    They also offer these custom HTML "WeatherLink" graphics.  Can this be implemented easily?

    https://weather.gc.ca/business/index_e.html#weatherlink

  • 0
    Avatar
    Wyatt Hoffman

    Hello,

    I know this post is old but thought I might help out. We found that using the free open weather map API and using a script to pull that data into our HTML page and it works pretty good.

  • 0
    Avatar
    Rick Thiel

    Hi Wyatt,

    Can you give more details on this?  Are you using https://openweathermap.org/forecast5

    I am very interested in adding a weather widget (or postage-stamp HTML5 page to our presentations). We have nearly 60 players that are spread across our territory and I would love to provide a different forecast/current-conditions based on the lat/long metadata for the player it is being presented upon.  But, that is a hurdle I will need to jump later. haha.

    Thanks, --Rick

  • 1
    Avatar
    Wyatt Hoffman

    Hi Rick,

    We have created an HTML Page for our presentations and we are using the Current Weather Data API (https://openweathermap.org/current) we are then accessing that data by Zip code and displaying it via our HTML page. GitHub has a great example of how to do this by latitude and longitude here: https://gist.github.com/BeatenBones/3a275d6ec92386d49c675468f23b6a87#file-simple-jquery-and-json-with-openweathermap-api-markdown

    For more info on how OpenWeatherMap's API works with lattitude and longitude feel free to check out the "By Geographic Coordinates" section of the API Docs on their site. Keep in mind with a free open weather map api key you only get 60 calls a minute so make sure all those players aren't hitting that data more than once a minute. Hope that helps!

  • 1
    Avatar
    Wyatt Hoffman

    PS - If you can dynamically access the latitude and longitude you can then display the weather based on a script but we found it was just as effective using the Zip code and it was a bit easier to program.

  • 0
    Avatar
    Karen Watson

    A couple things:

    1) I have not been able to figure out how to use the code from OpenWeather properly in an HTML file.

    2) The code in GitHub has the temp units in Kelvin and I haven't been able to figure out how to change it to Fahrenheit in the script without breaking it.

    Does anyone have some simple step-by-step instructions on how to do this properly in BrightAuthor?

    All I want is to put the current temp up on my displays. I don't understand why this is such a difficult thing to do. As common a feature as this is, how come Brightsign doesn't have a plugin for that?

Please sign in to leave a comment.