Read the statement by Michael Teeuw here.
Weather Underground Forecast (wuforecast)
-
No they’re not… They CAN be if you so desire, but you can combine several queries into one request…
mine is /conditions/forecast10day/astronomy/ Which will give you current conditions, 10 day forecast and sun-/moon rise/set info in one payload.
-
@RedNax Oh cool, didn’t even realize you could embed multiple API calls at the same time!!! :)
-
Hello,
do you have an example of the custom.css for the different colors (sun, rain, etc.).
I did not get.greeting
Stephan -
Hi,
I am very new to this (only have experience with VBA, simple C+ from using MATLAB, you get the point).
I used git clone https://github.com/MattLugar/wuforecast to download the files to my modules directory then changed the default weather module to the wuforecast module in the config.js file. However, when I run the Mirror program I get a completely black screen.
All of the files appear to have been downloaded correctly to the directory and I cant find any syntax errors in the config.js file. I wrote everything exactly as follows:
modules: [ { module: 'wuforecast', position: 'top_right', // This can be any of the regions. // Best results in left or right regions. config: { // See 'Configuration options' for more information. location: 'France/Paris', appid: 'abcde12345abcde12345abcde12345ab' //wunderground.com API key. } } ]
Any help?
Thank you!
-
If this is your entire config file, than it’s to be expected it doesn’t work…
Should be something like this (using thhe sample as an …example):
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ var config = { port: 8080, language: 'en', timeFormat: 24, units: 'metric', modules: [{ module: 'alert', }, { module: ‘wuforecast’, position: ‘top_right’, // This can be any of the regions. // Best results in left or right regions. config: { // See ‘Configuration options’ for more information. location: ‘France / Paris’, appid: ‘abcde12345abcde12345abcde12345ab’ //wunderground.com API key. } }, { module: 'clock', position: 'top_left' }, { module: 'calendar', header: 'US Holidays', position: 'top_left', config: { calendars: [{ symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics' }] } }, { module: 'compliments', position: 'lower_third' }, { module: 'currentweather', position: 'top_right', config: { location: 'New York', locationID: '', //ID from bulk.openweather.org/sample/ appid: 'YOUR_OPENWEATHER_API_KEY' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather Forecast', config: { location: 'New York', locationID: '5128581', //ID from bulk.openweather.org/sample/ appid: 'YOUR_OPENWEATHER_API_KEY' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [{ title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml" }], showSourceTitle: true, showPublishDate: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') { module.exports = config; }
-
@RedNax
That was not my entire config file, just the part inserting the wuforecast module. However I deleted and cloned the wuforecast files again without changing my config file and it works fine now. Any idea as to why that might have been?Thank you for the reply!
-
I had the same problem, but I found the solution:
You had to put the api key wuforecast and the location in config file and in wuforecast.js file .
After that worked. -
Anybody that can help me config this for a US city would be much obliged, I have tried several different ways of displaying the city based on whats in the README, but it doesn’t work since I have a single name city the README says to list it as
‘NY/New_York’
I am in Portland, Oregon, and have tried:
Portland/Oregon
portland/oregon
portland/OregonNone of the above work. IS their some secret city code buried somewhere I can’t find?
-
@cloudzombie it must be the state and then the city try
OR/Portland
-
Sweet man, that worked for that, only thing left is the icons don’t work, shows [] in place of them.