• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

WeatherForecast

Scheduled Pinned Locked Moved Unsolved Troubleshooting
10 Posts 3 Posters 3.0k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    Hriereb
    last edited by May 19, 2018, 11:32 PM

    Hi all,
    I apologize for the silly question but this thing is making me crazy.
    I would like to have a weather forecast with more than 5 days but when I set the option in the config I only can see the sam amount of days. Can you tell me where’s my mistake? Here’s my code:

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     *
     * For more information how you can configurate this file
     * See https://github.com/MichMich/MagicMirror#configuration
     *
     */
    
    var config = {
    	address: "localhost", // Address to listen on, can be:
    	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
    	                      // - another specific IPv4/6 to listen on a specific interface
    	                      // - "", "0.0.0.0", "::" to listen on any interface
    	                      // Default, when address config is left out, is "localhost"
    	port: 8080,
    	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
    	                                                       // or add a specific IPv4 of 192.168.1.5 :
    	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
    	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
    	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
    
    	language: "en",
    	timeFormat: 24,
    	units: "metric",
    
    	modules: [
    		{
    			module: "alert",
    		},
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			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 http://www.openweathermap.org/help/city_list.txt
    				appid: "YOUR_OPENWEATHER_API_KEY"
    			}
    		},
    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "Roseto degli Abruzzi",
    				locationID: "3168936",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "xxxxxxxxxxxxxxxxxxxxxxxxxx",
                                    maxNumberOfDays: "10"
    			}
    		},
    		{
    			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;}
    
    

    Another question: I would have liked to try the Wunderground module but it seems that there’s no way in getting a free api, can you confirm it? Is there a way to obtain it and to get the module work?
    Thanks again mates.

    M 1 Reply Last reply May 19, 2018, 11:53 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @Hriereb
      last edited by Mykle1 May 19, 2018, 11:55 PM May 19, 2018, 11:53 PM

      @hriereb said in WeatherForecast:

      Can you tell me where’s my mistake? Here’s my code:

      maxNumberOfDays: "10"

      Get rid of the quotes:

      maxNumberOfDays: 10

      Take a better look at the wunderground site. I’m pretty sure the basic membership with API key is still available

      Create a working config
      How to add modules

      H 1 Reply Last reply May 20, 2018, 8:24 AM Reply Quote 1
      • H Offline
        Hriereb @Mykle1
        last edited by May 20, 2018, 8:24 AM

        @mykle1 Thank you so much mate, you always give precious advices. I tried in the wunderground site to get a free api but there’s a statement in which the say they won’t give free api anymore. Could you make a check for me? Is there another way to obtain it? Thanks again.

        1 Reply Last reply Reply Quote 0
        • S Online
          sdetweil
          last edited by sdetweil May 20, 2018, 12:29 PM May 20, 2018, 12:28 PM

          i got an api key the other day without any trouble. just have to login and go to key settings…

          https://www.wunderground.com/weather/api/d/docs

          H 1 Reply Last reply May 20, 2018, 2:46 PM Reply Quote 0
          • H Offline
            Hriereb @sdetweil
            last edited by Hriereb May 20, 2018, 3:03 PM May 20, 2018, 2:46 PM

            @sdetweil It’s strange because every time I try to get an api key I find myself in this page:
            https://www.wunderground.com/weather/api
            There’s no way in obtaining the api, I don’t know where the problem is… Can someone help me?

            S 1 Reply Last reply May 20, 2018, 3:27 PM Reply Quote 0
            • S Online
              sdetweil
              last edited by May 20, 2018, 3:23 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • S Online
                sdetweil @Hriereb
                last edited by May 20, 2018, 3:27 PM

                @hriereb i see… i created a new userid and see the same thing… IBM now owns this stuff and has decided not to provide free api access anymore… what a shame…

                H M 2 Replies Last reply May 20, 2018, 8:44 PM Reply Quote 0
                • H Offline
                  Hriereb @sdetweil
                  last edited by May 20, 2018, 8:44 PM

                  @sdetweil Have you tried to get a meteoblue api? I can’t even get that kind of api despite a normal subscription.

                  S 1 Reply Last reply May 21, 2018, 3:06 PM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @sdetweil
                    last edited by May 21, 2018, 1:19 AM

                    @sdetweil said in WeatherForecast:

                    IBM now owns this stuff and has decided not to provide free api access anymore… what a shame…

                    SOB’s!!! :-(

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • S Online
                      sdetweil @Hriereb
                      last edited by May 21, 2018, 3:06 PM

                      @hriereb just checked… nothing free there…

                      cheapest looked like 400 eu /year

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        3/10
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy