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

MMM-weatherchart sdetweil fork

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 2 Posters 3.3k Views 2 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.
  • S Away
    sdetweil @MajorC
    last edited by Jun 28, 2021, 2:34 PM

    @majorc said in MMM-weatherchart sdetweil fork:

    customiseSVG: true, // change colours in hex values or “default” for no change
    background_colour: “#666666”,

    those parms are not used by the module…

    u will probably have to fiddle with css…

    the http:// address thing looks like u set a property in config.js

    these are the ones the module uses

    		country: 'Germany',
    		area: 'North_Rhine-Westphalia',
    		city: 'Duisburg',
    		updateInterval: 60 * 60 * 1000, // every hour
    		hideBorder: true,
    		negativeImage: true,
    		retryDelay: 2500,
    		domain: "www.yr.no",
    		path: "/place/",
    		mmDirectory: "/home/pi/MagicMirror/", // not sure whether it is possible to ask MM for this path?
    		hoursToShow: -1
    

    I’m guessing domain is the one u changed

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    M 1 Reply Last reply Jun 28, 2021, 3:43 PM Reply Quote 0
    • M Offline
      MajorC Project Sponsor @sdetweil
      last edited by Jun 28, 2021, 3:43 PM

      @sdetweil thank you.
      I cleaned up my configuration. Only MMM-weatherchart is in.

      	{
      			module: 'mmm-weatherchart',
      			position: 'bottom_right', // this can be any of the regions
      			config: {
      				country: 'Germany', // as determined above
      				area: 'Berlin', // as determined above
      				city: 'Berlin', // as determined above
      				updateInterval: 60 * 60 * 1000, // update every hour
      				hideBorder: true, // whether or not a border with city name should be shown
      				negativeImage: true, // whether or not the default white image should be inverted
      				retryDelay: 2500,
      				domain: "www.yr.no",
      				path: "/place/",
      				mmDirectory: "/home/pi/MagicMirror/", // not sure whether it is possible to ask MM for this path?
      				hoursToShow: 24
      			}
      		},
      

      the error message is:

      undefined:1 GET http://192.168.2.16:8080/undefined 404 (Not Found)
      

      I don’t know how I can provide better information to solve this?!?

      M S 2 Replies Last reply Aug 29, 2021, 1:13 PM Reply Quote 0
      • M Offline
        MajorC Project Sponsor @MajorC
        last edited by Aug 29, 2021, 1:13 PM

        I would like to open this topic again.

        The error:

        undefined:1 GET http://192.168.2.16:8080/undefined 404 (Not Found)
        

        is still present. Any advise is highly appreciated.

        1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @MajorC
          last edited by Aug 29, 2021, 1:26 PM

          @majorc where do u see that error? npm start or developers window?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Aug 29, 2021, 1:28 PM Reply Quote 0
          • S Away
            sdetweil @sdetweil
            last edited by Aug 29, 2021, 1:28 PM

            @sdetweil where is your mm installed? (path from root)

            /home/pi/MagicMirror

            ??

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Aug 29, 2021, 2:38 PM Reply Quote 0
            • M Offline
              MajorC Project Sponsor @sdetweil
              last edited by Aug 29, 2021, 2:38 PM

              @sdetweil

              I see the error in the developers window in google chrome if I connect remotely to the pi.

              /home/pi/MagicMirror is correct for my setup.

              S 1 Reply Last reply Aug 29, 2021, 2:42 PM Reply Quote 0
              • S Away
                sdetweil @MajorC
                last edited by Aug 29, 2021, 2:42 PM

                @majorc the code tries to build the url from these settings

                var mapLocal = this.config.path + this.config.country + "/" + this.config.area + "/" + this.config.city + "/meteogram.png";
                

                the defaults are

                		country: 'Germany',
                		area: 'North_Rhine-Westphalia',
                		city: 'Duisburg',
                		path: "/place/",
                

                no spaces allowed in any

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Aug 29, 2021, 4:32 PM Reply Quote 0
                • M Offline
                  MajorC Project Sponsor @sdetweil
                  last edited by Aug 29, 2021, 4:32 PM

                  @sdetweil

                  that is my config:

                  		{
                  			module: 'mmm-weatherchart',
                  			position: 'bottom_right', // this can be any of the regions
                  			config: {
                  				country: 'Germany', // as determined above
                  				area: 'Berlin', // as determined above
                  				city: 'Berlin', // as determined above
                  				updateInterval: 60 * 60 * 1000, // update every hour
                  				hideBorder: true, // whether or not a border with city name should be shown
                  				negativeImage: false, // whether or not the default white image should be inverted
                  				retryDelay: 2500,
                  				domain: "www.yr.no",
                  				path: "/place/",
                  				mmDirectory: "/home/pi/MagicMirror/", // not sure whether it is possible to ask MM for this path?
                  				hoursToShow: 36
                  			}
                  		},
                  

                  Ich wechsle mal kurz ins Deutsche. Das interessante ist, dass mir die Grafik auch angezeigt wird. Also gefühlt läuft der Code ohne Fehler. Mich wundert nur die Fehlermeldung, die in Chrome, wenn ich mich remote auf den Pi/MM einwähle, kommt. Als ob er noch irgend was versucht abzurufen, was nicht gefunden werden kann.

                  S 1 Reply Last reply Aug 29, 2021, 4:50 PM Reply Quote 0
                  • S Away
                    sdetweil @MajorC
                    last edited by Aug 29, 2021, 4:50 PM

                    @majorc das Interessante ist die Adresse
                    192.168.2.16 MUSS in Ihrem lokalen Netzwerk sein und ist vielleicht die Adresse des PI. Der Code versucht, Dinge auf der ned_helper-Seite zwischenzuspeichern, und ich weiß nicht, wie diese Informationen verwendet werden.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Aug 30, 2021, 12:45 PM Reply Quote 0
                    • M Offline
                      MajorC Project Sponsor @sdetweil
                      last edited by Aug 30, 2021, 12:45 PM

                      @sdetweil you are right. 192.168.2.16 is the IP adress of my PI.

                      S 1 Reply Last reply Aug 30, 2021, 12:47 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • 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