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

Magic Mirror Default Weather Module

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 2 Posters 1.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.
  • B Offline
    bicolorbore586
    last edited by Oct 4, 2022, 11:17 AM

    I’m just getting started with my magicmirror project, and having varying success.
    I’ve tried a couple of 3rd Party weather modules, but have settled on the default on as I like the simplicity of it.

    I’ve managed to configure it to show the current weather, but want to be able to view a forecast. However following the config instructions etc, changing it to a forecast just results in it appearing as loading on the screen.

    I’m using weatherbit.io as the provider and config.js is set as follows

    module: "weather",
    position: "top_right",
    config: {
              apibase: "https://api.weatherbit.io/v2.0",
              weatherEndpoint: "/current",
              apiKey: "MY API KEY"
             lat: MY LATITUDE
             lon: MY LONGITUDE
    

    weather.js

    defaults: {
              weatherProvider: "weatherbit"
              type: "current",
    

    this results in the correct display on magicmirror, however changing the endpoint to “/forecast”, “/daily” or “/forecast/daily” and the type to “forecast”, “daily” or “forecast/daily” just results in the loading icon.

    Can anyone shed some light please?

    Thanks

    S 1 Reply Last reply Oct 4, 2022, 11:32 AM Reply Quote 0
    • S Offline
      sdetweil @bicolorbore586
      last edited by Oct 4, 2022, 11:32 AM

      @bicolorbore586 do not edit the base source files, all configuration is done in config.js

      remove the API base and endpoint, don’t need to set them, the code does that

      set the provider and type
      (use the lastest release, 2.21, as we fixed a couple configs to always use the type)

      also set the initialLoadDelay:1

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Oct 4, 2022, 1:26 PM Reply Quote 0
      • B Offline
        bicolorbore586 @sdetweil
        last edited by Oct 4, 2022, 1:26 PM

        @sdetweil Hi Sam, I’m probably not following this correctly, but I appear to be in a worse position than before in the fact that none of my modules now load.

        S 2 Replies Last reply Oct 4, 2022, 2:12 PM Reply Quote 1
        • S Offline
          sdetweil @bicolorbore586
          last edited by Oct 4, 2022, 2:12 PM

          @bicolorbore586 eh? sounds like a typo in the config

          in the MagicMirror folder do

          npm run config:check
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @bicolorbore586
            last edited by sdetweil Oct 4, 2022, 2:57 PM Oct 4, 2022, 2:46 PM

            @bicolorbore586 mine looks like

            		{
            			module:"weather",
            			position: "top_left",
            			config:{
            				type:"current",
            				weatherProvider:"weatherbit",
            				lat:30.956,
            				lon:-97.435,
            				initialLoadDelay:1,
                                            units:'imperial',
            				apiKey:"your key"
            			}
            		},
            

            both type:“current” and type:“forecast” work

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Oct 4, 2022, 3:21 PM Reply Quote 0
            • B Offline
              bicolorbore586 @sdetweil
              last edited by Oct 4, 2022, 3:21 PM

              @sdetweil all sorted now, I took the config out and put it back in fresh as I couldn’t work out where the typo/formatting error was. All tickety-boo now. Thanks for your help!

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              1 / 1
              • First post
                4/6
                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