• 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 13.3k 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @Gamble
    last edited by Mykle1 Aug 13, 2017, 9:26 PM Aug 13, 2017, 9:18 PM

    @Gamble said in Weather:

    I deleted the second newsfeed so now it’s error on line 51 but I don’t see a comma.

    Because you deleted it? :^)

    You should read this:
    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 0
    • G Offline
      Gamble @cowboysdude
      last edited by Gamble Aug 14, 2017, 3:54 AM Aug 14, 2017, 3:54 AM

      @cowboysdude said in Weather:

      go to line 51 you have it like this

      }],

      SHOULD BE

      },]

      Check the example here:

      https://github.com/MichMich/MagicMirror/tree/master/modules/default/newsfeed

      still not working :(

      M 1 Reply Last reply Aug 14, 2017, 12:50 PM Reply Quote 0
      • C Offline
        cowboysdude Module Developer
        last edited by Aug 14, 2017, 11:03 AM

        Just repost your entire config minus api keys…

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

          @Gamble said in Weather:

          still not working :(

          My suggestion:

          Start with a new config and get that working first.
          https://forum.magicmirror.builders/topic/4528/how-to-create-a-working-config-for-absolute-beginners

          Then when you want to add a module:
          https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners

          These tutorials walk you through the process. All you have to do is follow them line by line. There’s no guesswork. In the time that it takes you to read them, you’ll already be up and running, and you’ll learn something.

          Create a working config
          How to add modules

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

            i think my sample file is jacked up. do we have another one on here i can download or copy/paste the code?

            R 1 Reply Last reply Aug 15, 2017, 3:02 AM Reply Quote 0
            • R Offline
              ranger33 @Gamble
              last edited by Aug 15, 2017, 3:02 AM

              @Gamble your sample is corrupted? That’s odd…

              https://github.com/MichMich/MagicMirror/blob/master/config/config.js.sample

              Here’s the sample config!

              G 1 Reply Last reply Aug 15, 2017, 3:36 AM Reply Quote 0
              • G Offline
                Gamble @ranger33
                last edited by Aug 15, 2017, 3:36 AM

                @ranger33

                Thanks. I got it to work as default and started to changes things one by one like the weather and news
                But I put the trello app over the compliments module and it says invalid file. i put the compliments back in and now it’s all just a big black blank screen. i’m pretty confused here

                1 Reply Last reply Reply Quote 0
                • R Offline
                  ranger33
                  last edited by Aug 15, 2017, 4:03 AM

                  When you say put the trello app over compliments what do you mean? If you can explain a bit more we can certainly help yah just need to see what you’re seeing.

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gamble
                    last edited by Aug 15, 2017, 4:21 AM

                    I don’t want the compliments so i replaced the compliments text with the trello text. Every time I add the trello it says it’s not a valid file

                    So here is what I did. I started from scratch with the sample file and it works or at least it worked the first time. Seems nomatter what changes the weather doesn’t display at all. I also have a nightmare of a time exiting the magic mirror app. I’ll do a control f4 and it closes and reopens right away. Or i’ll go to terminal and do a controlx then alt F4 to close the magic mirror and it freezes EVERY time. i have to reboot this pi every time i want to change something, it’s incredibility slow

                    For the news. I’ve tried changing the URL to a google news, abc7, or anything else I find and it just says loading. i even tried changing one little thing at at time and it still doesn’t work. i’ll post the code in a min. the pi is still loading the browser.

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