• 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 module config

Scheduled Pinned Locked Moved Troubleshooting
19 Posts 2 Posters 3.9k 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 Offline
    sdetweil
    last edited by Apr 28, 2020, 7:52 PM

    @mrlowndes said in Weather module config:

    index):1 Refused to apply style from ‘http://localhost:8080/css/custom.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

    ok, don’t know for the slow network.

    but for this one

    do

    touch ~/MagicMirror/css/custom.css
    

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • M Offline
      mrlowndes @sdetweil
      last edited by Apr 28, 2020, 7:53 PM

      @sdetweil Thanks for the tip. The errors were at the bottom. This is what I found:

      Failed to load resource: the server responded with a status of 400 ()
      weathergov.js:55 Could not load data ...  
      XMLHttpRequest
      weather.js:151 New weather information available.
      main.js:301 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://localhost:8080/vendor/node_modules/weathericons/font/weathericons-regular-webfont.woff
      api.openweathermap.o…xxxxxxxxxxxxxxxx:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
      weatherforecast.js:266 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint.
      (index):1 Refused to apply style from 'http://localhost:8080/css/custom.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
      
      1 Reply Last reply Reply Quote 0
      • M Offline
        mrlowndes
        last edited by Apr 28, 2020, 8:02 PM

        @sdetweil do you know where I could get an appid for weathergov? The documentation for the module is very thin

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil
          last edited by Apr 28, 2020, 8:10 PM

          no key required for that point… only works for US locations

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Apr 28, 2020, 8:12 PM Reply Quote 0
          • M Offline
            mrlowndes @sdetweil
            last edited by Apr 28, 2020, 8:12 PM

            @sdetweil Do you have any suggestions as to what I should try next?

            S 1 Reply Last reply Apr 28, 2020, 8:20 PM Reply Quote 0
            • S Offline
              sdetweil @mrlowndes
              last edited by sdetweil Apr 28, 2020, 8:21 PM Apr 28, 2020, 8:20 PM

              @mrlowndes u can test that the api works from your location

              put this in your browser

              https://api.weather.gov/points/LAT,LON/forecast
              

              replace the LAT,LON
              by the values from the google maps (maps.google.com) of your location…
              in the url, you will see two numbers xx.yyyyyy,-uu.zzzzzz
              just cut/paste that whole set of numbers and paste over the LAT,LON (notice the comma comes with the numbers too)

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                mrlowndes
                last edited by Apr 28, 2020, 8:28 PM

                @sdetweil Thanks so much, the documentation doesn’t make that clear at all

                S 1 Reply Last reply Apr 28, 2020, 8:29 PM Reply Quote 0
                • S Offline
                  sdetweil @mrlowndes
                  last edited by Apr 28, 2020, 8:29 PM

                  @mrlowndes no, this is just a test… making sure the api would work as called by the module

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Apr 28, 2020, 8:32 PM Reply Quote 0
                  • M Offline
                    mrlowndes @sdetweil
                    last edited by Apr 28, 2020, 8:32 PM

                    @sdetweil yeah, no dice. This came up in my browser

                    "title": "Data Unavailable For Requested Point",
                        "type": "https://api.weather.gov/problems/InvalidPoint",
                        "status": 404,
                        "detail": "Unable to provide data for requested point 34.5444,119.7913",
                        "instance": "https://api.weather.gov/requests/8199fbe2-ac6c-4c7c-b109-ed162794f780"
                    
                    S 1 Reply Last reply Apr 28, 2020, 8:33 PM Reply Quote 0
                    • S Offline
                      sdetweil @mrlowndes
                      last edited by Apr 28, 2020, 8:33 PM

                      @mrlowndes as I said, only works for US locations

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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