• 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.

Weather

Scheduled Pinned Locked Moved Troubleshooting
28 Posts 7 Posters 12.6k Views 6 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.
  • G Offline
    Gamble
    last edited by Aug 15, 2017, 4:34 AM

    /* 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 = {
    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: 12,
    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: "MMM-Trello",
    		position: "lower_third"
    		config: {
    			api_key: "**************",
    			token: "https://trello.com/1/authorize?expiration=never&scope=read&response_type=token&name=Server%20Token&key=**********",
    			list: "************"
    	},
    	{
    		module: "currentweather",
    		position: "top_right",
    		config: {
    			location: "Chicago",
    			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: "Chicago",
    			locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "YOUR_OPENWEATHER_API_KEY"
    		}
    	},
    	{
    		module: "newsfeed",
    		position: "bottom_bar",
    		config: {
    			feeds: [
    				{
    					title: "Chicago",
    					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;}

    S 1 Reply Last reply Aug 15, 2017, 7:10 AM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @Gamble
      last edited by strawberry 3.141 Aug 15, 2017, 7:10 AM Aug 15, 2017, 7:10 AM

      @Gamble you have two mistakes

      1. position: "lower_third" has to be ````position: “lower_third”,``` (comma at the end)
      config: {
        api_key: "**************",
        token: "https://trello.com/1/authorize?expiration=never&scope=read&response_type=token&name=Server%20Token&key=**********",
        list: "************"
      

      has to be

      config: {
        api_key: "**************",
        token: "https://trello.com/1/authorize?expiration=never&scope=read&response_type=token&name=Server%20Token&key=**********",
        list: "************"
      }
      

      missing closing curly bracket at the end

      Please create a github issue if you need help, so I can keep track

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gamble
        last edited by Aug 16, 2017, 12:19 AM

        Thanks.
        One step closer!
        Weather doesn’t load and neither does trello. So how would I start to figure out why they don’t show up? All the text looks corrrect

        M 1 Reply Last reply Aug 16, 2017, 12:26 AM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @Gamble
          last edited by Aug 16, 2017, 12:26 AM

          @Gamble

          In the time it takes to read these, you could be up and running. Or, you could continue the way you have been.

          https://forum.magicmirror.builders/topic/4528/how-to-create-a-working-config-for-absolute-beginners

          https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 2
          • G Offline
            Gamble
            last edited by Aug 16, 2017, 1:39 AM

            I’ve read them a few times. My understanding of them is pretty limited.

            Could this be the reason? Although it says no helper module for clock but that still works.

            Starting MagicMirror: v2.1.2
            Loading config …
            Loading module helpers …
            No helper found for module: alert.
            Initializing new module helper …
            Module helper loaded: updatenotification
            No helper found for module: clock.
            Initializing new module helper …
            Module helper loaded: calendar
            No helper found for module: MMM-Trello.
            No helper found for module: currentweather.
            No helper found for module: weatherforecast.
            Initializing new module helper …
            Module helper loaded: newsfeed
            All module helpers loaded.
            Starting server on port 8080 …
            Server started …
            Connecting socket for: updatenotification
            Connecting socket for: calendar
            Starting node helper for: calendar
            Connecting socket for: newsfeed
            Starting module: newsfeed
            Sockets connected & modules started …
            Launching application.
            Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
            Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000

            cowboysdudeC 1 Reply Last reply Aug 16, 2017, 1:54 AM Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer @Gamble
              last edited by Aug 16, 2017, 1:54 AM

              @Gamble Well that’s because the clock doesn’t have a node_helper… nor do the weather modules… not sure about Trello…

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gamble
                last edited by Aug 17, 2017, 4:27 PM

                what really blows my mind is that the weather will work then the only thing i do is change the name from New York to chicago then it literally shits the bed. I read the tutorials and still can’t get the weather or trello to work
                I also found conflicting things on trello where one says for the list you need the ID and the other says you need the url then add .json to the end. Neither of which work

                1 Reply Last reply Reply Quote 0
                • V Offline
                  videogame95 @Gamble
                  last edited by May 1, 2023, 7:28 PM

                  @Gamble the weater open maps isn’t working .
                  Use a different module . If you configuration isn’t loading delet use the sample copy its rename it as a copy.
                  Change the sample
                  Config.js
                  Start again .
                  I deleted the weather module
                  Add found a different on the works modules .
                  Reinstall everything.
                  Once you get to a point of things working put an ad card adpter
                  In the pi with a new sd card make a copy.
                  This if you get stuck and can’t fix use your backup copy
                  But remember copy that one.

                  All bracks with a }, have to line up in your code config file.
                  .and try to line up module inline with others.

                  I hope this is some help
                  as in space x test flight go wrong well learn more evey time we fix it.
                  Good luck

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 3 / 3
                  • First post
                    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