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

Struggling with Weather... module

Scheduled Pinned Locked Moved Solved Troubleshooting
34 Posts 5 Posters 7.8k 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.
  • S Offline
    sdetweil @thgmirror
    last edited by Jun 27, 2022, 7:19 PM

    @thgmirror yes, but his API key is to a different service…

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • D Offline
      D3dl3g @sdetweil
      last edited by Jun 27, 2022, 8:17 PM

      @sdetweil

      ce169421-e550-4506-82ec-9468556769d4-image.png

      1 Reply Last reply Reply Quote 0
      • D Offline
        D3dl3g @thgmirror
        last edited by Jun 27, 2022, 8:23 PM

        @thgmirror I’d gladly try, but I’d need an API key, my friend.
        without an API for that particular weather service, it will just come up with “loading” as the server will not give the info to you.

        i saw the post of yours earlier, but as it didnt match my issue with UK Met Office weather service.

        K 1 Reply Last reply Jun 27, 2022, 10:09 PM Reply Quote 0
        • D Offline
          D3dl3g @sdetweil
          last edited by Jun 27, 2022, 9:34 PM

          @sdetweil said in Struggling with Weather... module:

          you can do pm2 flush to empty the log and then start again (pm2 restart all)

          bf704162-d1b7-46ef-adea-3bda155af77d-image.png

          S 1 Reply Last reply Jun 27, 2022, 10:39 PM Reply Quote 0
          • K Offline
            kayakbabe @D3dl3g
            last edited by kayakbabe Jun 27, 2022, 10:10 PM Jun 27, 2022, 10:09 PM

            @D3dl3g if you get a free api key from openweathermap and then you can test with a known weather api that we all know works. (openweathermap works for me ). then you’ll narrow down the possibilities of why your particular setup isn’t working. 1) if it is the way you have installed the module, or 2) if the problem is with the weather endpoint you are trying to use. 3) maybe the uk weather api isn’t availble to you if you aren’t physically in the uk, 4) something else…

            but getting the module working first in a known working configuration… will narrow down a lot of possibilities. it doesn’t mean that you can’t use the api you want later (unless that’s the issue).

            D 1 Reply Last reply Jun 29, 2022, 7:49 AM Reply Quote 0
            • S Offline
              sdetweil @D3dl3g
              last edited by Jun 27, 2022, 10:39 PM

              @D3dl3g try lines=50

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Jun 28, 2022, 7:12 AM Reply Quote 0
              • D Offline
                D3dl3g @sdetweil
                last edited by Jun 28, 2022, 7:12 AM

                @sdetweil
                many restarts as i was modifying and testing layouts and features
                8c0b4cd7-65aa-481a-b183-060cb0ef9ca5-image.png

                couple of syntax errors, when i was playing around last night.
                daa33a85-88ae-4317-9374-a71ea4d61c43-image.png

                (blanked out sensitve info on calendar line)
                d5285b65-22af-483d-a9cf-5ebb1831694d-image.png

                S 1 Reply Last reply Jun 28, 2022, 11:29 AM Reply Quote 0
                • S Offline
                  sdetweil @D3dl3g
                  last edited by Jun 28, 2022, 11:29 AM

                  @D3dl3g hm. should have had some info…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 2 Replies Last reply Jun 28, 2022, 12:34 PM Reply Quote 0
                  • D Offline
                    D3dl3g @sdetweil
                    last edited by Jun 28, 2022, 12:34 PM

                    @sdetweil
                    :grinning_face_with_smiling_eyes: always the way.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      D3dl3g @sdetweil
                      last edited by D3dl3g Jun 28, 2022, 2:03 PM Jun 28, 2022, 1:56 PM

                      @sdetweil

                      could it be *js file setup.

                      been poking around on the Met Office website

                      is this “request” something that could be used

                      GET https://api-metoffice.apiconnect.ibmcloud.com/v0/forecasts/point/hourly?latitude=52.################&longitude=-1.################
                      Headers:
                      Accept: application/json
                      X-IBM-Client-Id: e52######################
                      X-IBM-Client-Secret: *********
                      

                      a “Header”

                      cache-control: no-cache, no-store, max-age=0, must-revalidate
                      content-length: 3634
                      content-type: application/json
                      expires: 0
                      pragma: no-cache
                      x-global-transaction-id: 9####################
                      x-ratelimit-limit: name=rate-limit-1,360;
                      x-ratelimit-remaining: name=rate-limit-1,358;
                      

                      theres also a “Body” that starts

                      {
                          "type": "FeatureCollection",
                          "features": [
                              {
                                  "type": "Feature",
                                  "geometry": {
                                      "type": "Point",
                                      "coordinates": [
                                          -1.###,
                                          52.###,
                                          ###
                                      ]
                                  },
                                  "properties": {
                                      "requestPointDistance": 736.6499,
                                      "modelRunDate": "2022-06-28T13:00Z",
                                      "timeSeries": [
                                          {
                                              "time": "2022-06-28T13:00Z",
                                              "screenTemperature": 19.6,
                                              "maxScreenAirTemp": 19.6,
                                              "minScreenAirTemp": 19.1,
                                              "screenDewPointTemperature": 7.7,
                                              "feelsLikeTemperature": 16.83,
                                              "windSpeed10m": 5.1,
                                              "windDirectionFrom10m": 200,
                                              "windGustSpeed10m": 11.3,
                                              "max10mWindGust": 13.42,
                                              "visibility": 24714,
                                              "screenRelativeHumidity": 46.06,
                                              "mslp": 101420,
                                              "uvIndex": 4,
                                              "significantWeatherCode": 3,
                                              "precipitationRate": 0,
                                              "totalPrecipAmount": 0,
                                              "totalSnowAmount": 0,
                                              "probOfPrecipitation": 1
                      

                      i hashed out sensitive info BTW, the Long/lat and API Keys

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