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

New Weather Module - Migration

Scheduled Pinned Locked Moved Forum
19 Posts 4 Posters 2.7k Views 4 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
    Canguingo
    last edited by Apr 2, 2022, 10:21 AM

    Hi there,

    I have made the latest update of MM and got an error because the Weather Module is Deprecated (wonder whether this could be updated in the last update of MM as it is an standard module, anyway).

    I am trying to add the config file the following code:

    {
    module: “weather”,
    position: “top_right”,
    config: {
    type: “forecast”,
    location: “Amsterdam,Netherlands”,
    locationID: “”,
    apiKey: “abcde12345abcde12345abcde12345ab”
    }
    }

    as suggested in https://docs.magicmirror.builders/modules/weatherforecast.html#migration.

    but this doesn’t solve the issue.

    Is there any way to migrate from the old version of Weather Module to the new one?

    Many thanks in advance!

    D J 2 Replies Last reply Apr 2, 2022, 10:35 AM Reply Quote 0
    • D Offline
      DarrenHill @Canguingo
      last edited by DarrenHill Apr 2, 2022, 10:42 AM Apr 2, 2022, 10:35 AM

      @Canguingo You need to put in your key (which used to be in the appid entry in your old config) into the apiKey entry there. What is listed is just a default dummy one in the example you quote.

      I’m actually just doing the update myself at the moment, and now tweaking the newer module to emulate the appearance of the old two.

      Can you post your old config.js entries for the modules (removing key strings and anything else you want to keep private) and then we can try to get your new version transposed across. Just finished mine, now minor tweaks ongoing.

      C 1 Reply Last reply Apr 4, 2022, 6:42 AM Reply Quote 0
      • J Offline
        JerryP @Canguingo
        last edited by Apr 2, 2022, 7:55 PM

        @Canguingo said in New Weather Module - Migration:

        Hi there,

        I have made the latest update of MM and got an error because the Weather Module is Deprecated (wonder whether this could be updated in the last update of MM as it is an standard module, anyway).

        I am trying to add the config file the following code:

        {
        module: “weather”,
        position: “top_right”,
        config: {
        type: “forecast”,
        location: “Amsterdam,Netherlands”,
        locationID: “”,
        apiKey: “abcde12345abcde12345abcde12345ab”
        }
        }

        as suggested in https://docs.magicmirror.builders/modules/weatherforecast.html#migration.

        but this doesn’t solve the issue.

        Is there any way to migrate from the old version of Weather Module to the new one?

        Many thanks in advance!

        		{
        			module: "weather",
        			disabled: false, //false, true
        			position: "top_right",
        			config: {
        					type: 'forecast',
        					location: "Heemskerk",
        					locationID: "2754696",
        					apiKey: "https://openweathermap.org/api",
        					fade: false,
        					colored: true,
        		}},
        
        C 1 Reply Last reply Apr 4, 2022, 6:44 AM Reply Quote 0
        • C Offline
          Canguingo @DarrenHill
          last edited by Apr 4, 2022, 6:42 AM

          @DarrenHill said in New Weather Module - Migration:

          @Canguingo You need to put in your key (which used to be in the appid entry in your old config) into the apiKey entry there. What is listed is just a default dummy one in the example you quote.

          I’m actually just doing the update myself at the moment, and now tweaking the newer module to emulate the appearance of the old two.

          Can you post your old config.js entries for the modules (removing key strings and anything else you want to keep private) and then we can try to get your new version transposed across. Just finished mine, now minor tweaks ongoing.

          Hey Darren,

          Many thanks. I did the update of the MagicMirror, and changed the code in the config file. Do I need to update in anyway the Weather Module as well, or with the code in config file is enough?

          I have added the api etc indeed, and I only see “data uploading” but nothing else.

          Any suggestions?

          Many thanks!

          D 1 Reply Last reply Apr 4, 2022, 7:14 AM Reply Quote 0
          • C Offline
            Canguingo @JerryP
            last edited by Apr 4, 2022, 6:44 AM

            @JerryP said in New Weather Module - Migration:

            @Canguingo said in New Weather Module - Migration:

            Hi there,

            I have made the latest update of MM and got an error because the Weather Module is Deprecated (wonder whether this could be updated in the last update of MM as it is an standard module, anyway).

            I am trying to add the config file the following code:

            {
            module: “weather”,
            position: “top_right”,
            config: {
            type: “forecast”,
            location: “Amsterdam,Netherlands”,
            locationID: “”,
            apiKey: “abcde12345abcde12345abcde12345ab”
            }
            }

            as suggested in https://docs.magicmirror.builders/modules/weatherforecast.html#migration.

            but this doesn’t solve the issue.

            Is there any way to migrate from the old version of Weather Module to the new one?

            Many thanks in advance!

            		{
            			module: "weather",
            			disabled: false, //false, true
            			position: "top_right",
            			config: {
            					type: 'forecast',
            					location: "Heemskerk",
            					locationID: "2754696",
            					apiKey: "https://openweathermap.org/api",
            					fade: false,
            					colored: true,
            		}},
            

            Hi Jerry,

            I indeed added the IDs and apikey. But nothing is loading. Do I need to update the Weather Module as well? I thought this was done automatically.

            The rest of the code is same as yours but with my location and apikey.

            Many thanks!

            @JerryP said in New Weather Module - Migration:

            @Canguingo said in New Weather Module - Migration:

            Hi there,

            I have made the latest update of MM and got an error because the Weather Module is Deprecated (wonder whether this could be updated in the last update of MM as it is an standard module, anyway).

            I am trying to add the config file the following code:

            {
            module: “weather”,
            position: “top_right”,
            config: {
            type: “forecast”,
            location: “Amsterdam,Netherlands”,
            locationID: “”,
            apiKey: “abcde12345abcde12345abcde12345ab”
            }
            }

            as suggested in https://docs.magicmirror.builders/modules/weatherforecast.html#migration.

            but this doesn’t solve the issue.

            Is there any way to migrate from the old version of Weather Module to the new one?

            Many thanks in advance!

            		{
            			module: "weather",
            			disabled: false, //false, true
            			position: "top_right",
            			config: {
            					type: 'forecast',
            					location: "Heemskerk",
            					locationID: "2754696",
            					apiKey: "https://openweathermap.org/api",
            					fade: false,
            					colored: true,
            		}},
            
            1 Reply Last reply Reply Quote 0
            • D Offline
              DarrenHill @Canguingo
              last edited by DarrenHill Apr 4, 2022, 7:15 AM Apr 4, 2022, 7:14 AM

              @Canguingo Nothing needs to be done in the module, it should already have been there in parallel to the old ones for the last few versions of MM.

              All you need to do is make the changes in config.js as detailed on the migration/depreciation part of the documentation. That will switch you over from the old modules to the new one.

              What has happened with the 2.19 update is the old modules have basically been removed and just replaced with the notification that you see on the mirror screen now (and that will also presumably be removed going forward).

              The config.js entry should look something like the template version you posted originally, except of course you will need to use your own specific API key rather than the abcde12345 placeholder and your specific location (unless you happen to be in Amsterdam).

              J C 2 Replies Last reply Apr 4, 2022, 10:39 AM Reply Quote 0
              • J Offline
                JerryP @DarrenHill
                last edited by Apr 4, 2022, 10:39 AM

                @DarrenHill
                The config is “apiKey” and in the old config i’ts “appi”

                So please check the typing.

                C 1 Reply Last reply Apr 4, 2022, 2:40 PM Reply Quote 0
                • C Offline
                  Canguingo @DarrenHill
                  last edited by Apr 4, 2022, 2:38 PM

                  @DarrenHill said in New Weather Module - Migration:

                  @Canguingo Nothing needs to be done in the module, it should already have been there in parallel to the old ones for the last few versions of MM.

                  All you need to do is make the changes in config.js as detailed on the migration/depreciation part of the documentation. That will switch you over from the old modules to the new one.

                  What has happened with the 2.19 update is the old modules have basically been removed and just replaced with the notification that you see on the mirror screen now (and that will also presumably be removed going forward).

                  The config.js entry should look something like the template version you posted originally, except of course you will need to use your own specific API key rather than the abcde12345 placeholder and your specific location (unless you happen to be in Amsterdam).

                  thanks.
                  So i did what you suggested. just added/changed the config.js and it looks exactly like yours.
                  still not working. do i need to ask for a new api key? i already had one for the previous version.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Canguingo @JerryP
                    last edited by Apr 4, 2022, 2:40 PM

                    @JerryP said in New Weather Module - Migration:

                    @DarrenHill
                    The config is “apiKey” and in the old config i’ts “appi”

                    So please check the typing.

                    yes i just mixed up the terms in this threat. do you mean i need a new apikey different than the old appi i already had?

                    S 1 Reply Last reply Apr 4, 2022, 2:51 PM Reply Quote 0
                    • S Offline
                      sdetweil @Canguingo
                      last edited by Apr 4, 2022, 2:51 PM

                      @Canguingo you are just changing the label of the apikey value in config.js

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      C 1 Reply Last reply Apr 4, 2022, 3:01 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        10/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