MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    FYI new weather_plus onecall module

    Troubleshooting
    3
    17
    949
    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
      scumbelly last edited by

      Hi,

      I downloading the new weather_plus onecall module to test it out.

      Once configured, etc. I rebooted and the screen area where I assigned it was blank.

      No loading error, nothing.

      I toggled the developers tool and saw 1 error (1 warning re: Electron security). Console showed an error for "Uncaught SyntaxError: Unexpected token ‘:’ module.js:43.

      I opened up the .js file and noticed that defaults had 2 showHumidity listed, one false and one true. I edited out the false showHumidity.

      The apiBase: was set as https:://api.openweathermap.org/data/, so I edited it to “https:://api.openweathermap.org/data/”,

      Ultimately I made additional changes to the .js
      - Define required scripts. Removed “font-awesome.css” (font-awesome already loaded).
      - Define required translations. deleted en&ro.json and made return false (en.json error).

      The weather_plus.css contains 2 addresses. I deleted these as 5.14.0 is a 404 error.

      @import url(“https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/font-awesome.min.css”);
      @import url(“https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.10/css/weather-icons.min.css”);

      I think that’s everything I did.

      My config is -

      {
      module: “weather_plus”,
      position: “top_right”,
      config: {
      lat: “xx.xxxxxx”,
      lon: “-xx.xxxxxx”,
      showWindDirectionAsArrow: false,
      appid: “bunchofnumbers”,
      }
      },

      I’m not sure if I had to do all the changes but it’s loading.

      Nice module Hangorazvan.

      Cheers

      H 1 Reply Last reply Reply Quote 0
      • H
        hango @scumbelly last edited by hango

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S
          scumbelly last edited by

          @hango

          Hi.

          I deleted my existing weather_plus module and did a “git clone”.

          On the reboot the module came up “loading”.

          Developers Tool showed 2 errors and 1 warning.

          First error was “Failed to load resource the server responded with a staus of 404 font-awesome.min.css:1”
          Second error was “Error on loading stylesheet: modules/weather_plus/weather_plus.css loader.js:215”

          The warning was the Electron security message.

          I removed the 404 error "import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/font-awesome.min.css");" from the .css file.

          On reboot the module loaded.

          I tried to visit “https://cdnjs.cloudflare.com/ajax” to update the link but a “resources not found” message was returned.

          Only “https://cdnjs.cloudflare.com/” exists.

          Cheers.

          H 1 Reply Last reply Reply Quote 0
          • H
            hango @scumbelly last edited by

            This post is deleted!
            S 1 Reply Last reply Reply Quote 0
            • S
              scumbelly @hango last edited by scumbelly

              @hango

              Hi,

              The latest https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/fontawesome.min.css did not throw a 404 error

              https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.12/css/weather-icons.min.css returns a 404 error. For fun I tried 2.0.11 to no avail. However 2.0.10 still works.

              Another odd thing is that with showSun: true and onlyTemp: false there is no sunriseSunsetIcon displayed.

              Cheers.

              H 1 Reply Last reply Reply Quote 0
              • H
                hango @scumbelly last edited by

                This post is deleted!
                S 1 Reply Last reply Reply Quote 0
                • S
                  scumbelly @hango last edited by

                  @hango

                  O.K. The time is displayed just no icon.

                  Thanks for the information.

                  Regards.

                  H 1 Reply Last reply Reply Quote 0
                  • H
                    hango @scumbelly last edited by

                    This post is deleted!
                    S 2 Replies Last reply Reply Quote 0
                    • S
                      scumbelly @hango last edited by

                      @hango

                      Hi,

                      Adding the space worked. Icon now presented.

                      Cheers.

                      cowboysdude 1 Reply Last reply Reply Quote 0
                      • cowboysdude
                        cowboysdude Module Developer @scumbelly last edited by

                        Capture.PNG

                        S 1 Reply Last reply Reply Quote -1
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy