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.

    Working Weather Underground module?

    Scheduled Pinned Locked Moved Troubleshooting
    63 Posts 9 Posters 33.8k Views 9 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.
    • C Offline
      chanster @sdetweil
      last edited by

      @sdetweil Thanks !

      I realized what the issue is but I don’t know why it’s happening. I was trying to git clone @Saabman 's fork but it keeps cloning the original MMM-WunderGround for some reason. I’ll manually download @Saabman 's version and try again.

      1 Reply Last reply Reply Quote 0
      • C Offline
        chanster @sdetweil
        last edited by

        @sdetweil @Saabman

        I’m pretty I’m running @Saabman 's fork now but I’m still running into a blank screen when MM loads. Here’s what I can see in the console :

        Load script: modules/MMM-WunderGround//MMM-WunderGround.js
        module.js:513 Module registered: MMM-WunderGround
        loader.js:148 Bootstrapping module: MMM-WunderGround
        loader.js:236 File already loaded: moment.js
        loader.js:153 Scripts loaded for: MMM-WunderGround
        loader.js:236 File already loaded: weather-icons.css
        loader.js:195 Load stylesheet: vendor/node_modules/weathericons/css/weather-icons-wind.css
        loader.js:195 Load stylesheet: modules/MMM-WunderGround/MMM-WunderGround.css
        loader.js:155 Styles loaded for: MMM-WunderGround
        translator.js:102 MMM-WunderGround - Load translation fallback: translations/en.json
        localhost/:2 Uncaught SyntaxError: Unexpected token / in JSON at position 4
            at JSON.parse (<anonymous>)
            at XMLHttpRequest.xhr.onreadystatechange (translator.js:22)
        
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @chanster
          last edited by

          @chanster edit the module
          translations/en.json

          and remove the comments
          // …
          or

          /*… */

          comments not allowed in json

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C S 2 Replies Last reply Reply Quote 0
          • C Offline
            chanster @sdetweil
            last edited by

            @sdetweil Thanks ! That did the trick!

            1 Reply Last reply Reply Quote 0
            • S Offline
              Saabman Project Sponsor @sdetweil
              last edited by

              @sdetweil Thanks for that I had seen the error but it didnt stop the application from running for me so didn’t look further into it.

              @chanster I had forked the orignal version and then only modified the Develop branch.

              If you just do a git clone you will get the Master branch not the develop branch - Im only learning my way around Github -so I might be doing something wrong as well. But from what I can work out if you use the following command it should get the the develop branch

              git clone --single-branch --branch Develop https://github.com/saabman/MMM-WunderGround.git
              
              S 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @Saabman
                last edited by

                @Saabman see the topic at the top.of troubleshooting about test fixes and develop.
                gives instructions

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  Saabman Project Sponsor @sdetweil
                  last edited by

                  @sdetweil Thanks Ill look into it.

                  Just got the module pulling the forecast info into it - only displays it in the console at the moment but its getting there

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Saabman
                    last edited by

                    @Saabman funny, one has to READ the message to reply properly…

                    git clone should get all branches, unless u specifically ask for depth=??1

                    u can get another branch with git fetch remotename remotebranch_name: localbranch_name
                    then git checkout localbranch_name should work

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      c1olli
                      last edited by

                      After the new installation of MM, I installed the module and I can see some weather data from my wether station - really good beginning.

                      @sdetweil Thanks for the fantastic installation script.

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        maxs
                        last edited by

                        Nice that some people are working on it. I want also my pws in the mirror, and willing to help, but im not able to program. But can test if necessary. I tried the module so far , and yes there are some signs of live in the module. Thanks already.

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          Saabman Project Sponsor
                          last edited by

                          Ive been spending some time working out how to use github a bit better. Thanks for the tips sdetweil.

                          So havent progressed any further on the module.

                          What I have noticed is the original module MMM-Wunderground has quiet a lot in it - been able to choose different icons/color moon phase etc. which is not stuff that your PWS will provide. So thinking of doing a cut down version that just provides current weather data as provided by your PWS.

                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            chanster @Saabman
                            last edited by

                            @Saabman Thanks again for all the work you have put into updating this module. Have you checked out MMM-Currentweather-MQTT ? I got it to work with my PWS. It takes an interesting approach of blending in data from PWS where available and supplements it with data from OpenWeather. It does require your PWS to publish its data via MQTT.

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              Saabman Project Sponsor @chanster
                              last edited by

                              @chanster I Wasnt aware of that one, That would definantly be another way to go and not rely on an external API that will probably change :lol:

                              My Weather station is about 20years old and I use a Raspberry pi runnig WEEWX to get the data of it and onto WunderGround and I just had a look and found a MQTT “plugin” for WEEWX so it would be simple enough to do. I already USE MQTT for energy Monitoring so Im half way there.

                              Thanks for that

                              C 1 Reply Last reply Reply Quote 0
                              • C Offline
                                chanster @Saabman
                                last edited by

                                @Saabman That’s great! Once I got my MQTT feed up, this module worked very well to display the data from my PWS.

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  c1olli
                                  last edited by

                                  I tried out the MMM-ioBroker and this works properly.
                                  IoBroker gets the Data directly from my WH4000ws Weatherstation with the module WLAN-Wetterstation from SBorg2014.

                                  Next Step ist to install MagicMirror and ioBroker on one Raspberry Pi.
                                  mmmiobrok.jpg

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    Saabman Project Sponsor @c1olli
                                    last edited by

                                    @c1olli Thats good to know there are some options.

                                    Im thinking doing something along the lines of pulling Data from one of those “offline” systems and seeing if it is possible to integrate it into the new MagicMirror weather module.

                                    The last couple of days Ive been re writing and simplifying the Wunderground module to just display the current PWS data pulled from WunderGround. more as an exercise in trying to understand NodeJS and gitHub.

                                    my head is just about exploding :lol: but its getting there. I am not a programer by any stretch of the imagination. Im just sitting down looking at the code and try and work it out.

                                    to start with I pick something obvious like Temperature and just look through the code and find where it appears and then try and work out where it comes from and where it goes.

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      c1olli
                                      last edited by c1olli

                                      It would be nice to have a better looking solution, combinated witch the “offline” data.
                                      I can understand, that your head ist exploding, for me is it the same - if you are a little bit older and you can’t program than it is not easy (for me) to learn such things.
                                      I’m happy when I can change little things and combinate such things that they are working for me.
                                      The ioBroker module for catching the data from the weatherstation is here (in german): WLAN-Wetterstation

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        Saabman Project Sponsor @c1olli
                                        last edited by

                                        @c1olli said in Working Weather Underground module?:

                                        The ioBroker module for catching the data from the weatherstation is here (in german): WLAN-Wetterstation

                                        thanks for that, in German explains why I couldn’t find it.

                                        Ive been working on the module just to display the weather station data with no forecast getting the data to display is no problem - getting it to display nicely is another story all together.

                                        So im working through trying to understand how the HTML works and Style sheets etc.

                                        I would encourage anyone to take some time to sit down and have a go at modifying a module. Its not easy when you first look at it but parts of it do start to make sense after a while.

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          Saabman Project Sponsor @Saabman
                                          last edited by

                                          OK I think I have got something worth having a look its basic but its there at least.

                                          Ive got some ideas on further customisation ie changeing sizes of the parameters etc. but ill add those as I go.

                                          https://github.com/saabman/MMM-WunderGround-PWS-Observations

                                          ![alt text](Screen Shot 2021-01-17 at 22.32.06.png image url)

                                          S 1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            c1olli
                                            last edited by

                                            Hey - looks pretty good :thumbs_up:

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • 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