Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved Migrate from MMM-TelegramBot to EXT-TelegramBot

    EXT-TelegramBot
    3
    11
    100
    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.
    • P
      papinist last edited by

      Hi, this morning I had an automatic update for MMM-GoogleAssistant and MMM-TelegramBot. The first completed successfully but telegrambot gave me an error:

      Update logs of MMM-TelegramBot:

      Error: Command failed: git --reset hard && git pull && npm install
      unknown option: --reset

      I was just thinking: is it correct to continue to upgrade MMM-TelegramBot even if you changed it to EXT-TelegramBot?

      Should I migrate manually from MMM to EXT or will it be done automatically? And how to do it manually, uninstalling MMM and installing EXT?

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by bugsounet

        Hi, this error is related to EXT-UpdateNotification

        Please verify for defaultCommand:
        it must be: defaultCommand: "git reset --hard && git pull && npm install",

        I think, you have configure this: defaultCommand: "git --reset hard && git pull && npm install",

        1 Reply Last reply Reply Quote 0
        • P
          papinist last edited by

          Yes the command is like the second one you have reported (with the “–” before “reset”), but I didn’t change anything… and until now it automatically upgrade other modules, even this morning just before the error with telegrambot.

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            So… ?

            what can I do for you, If you don’t want to change the defaultCommand of EXT-UpdateNoyification?

            MMM and EXT have not the same command to update

            that why defaultCommand exist

            1. correct the feature for MMM modules
            2. update
            3. I will never install a module/plugin or modify a config without interact confirmation of users
            1 Reply Last reply Reply Quote 0
            • P
              papinist last edited by

              Ok thank you.
              Should I update and keep MMM or migrate to EXT?

              How to migrate from MMM to EXT?

              1 Reply Last reply Reply Quote 0
              • P
                papinist last edited by

                Now I got this error:

                [08.03.2023 21:35.56.805] [LOG] [UN] [8/11] Scan: MMM-TelegramBot
                [08.03.2023 21:35.56.809] [LOG] [UN] Scan Infos: {
                module: ‘MMM-TelegramBot’,
                behind: 7,
                current: ‘master’,
                tracking: ‘origin/master’
                }
                [08.03.2023 21:35.56.819] [LOG] [NPM] Found: 0/10 @bugsounet library [EXT-Alert]
                [08.03.2023 21:35.56.827] [LOG] [NPM] Found: 1/10 @bugsounet library [Gateway]
                [08.03.2023 21:35.56.855] [LOG] [NPM] Found: 3/10 @bugsounet library [MMM-GoogleAssistant]
                [08.03.2023 21:35.56.877] [LOG] [NPM] Found: 3/10 @bugsounet library [EXT-Detector]
                [08.03.2023 21:35.56.893] [LOG] [NPM] Found: 0/10 @bugsounet library [EXT-Pir]
                [08.03.2023 21:35.56.897] [LOG] [NPM] Found: 0/10 @bugsounet library [EXT-Screen]
                [08.03.2023 21:35.56.903] [LOG] [NPM] Found: 0/10 @bugsounet library [EXT-UpdateNotification]
                [08.03.2023 21:35.56.908] [LOG] [NPM] Found: 0/10 @bugsounet library [MMM-TelegramBot]
                [08.03.2023 21:35.56.914] [LOG] [NPM] Found: 0/10 @bugsounet library [EXT-Governor]
                [08.03.2023 21:35.56.924] [LOG] [NPM] Found: 0/10 @bugsounet library [MMM-Tools]
                [08.03.2023 21:35.58.416] [ERROR] [UN] exec error: Error: Command failed: git reset --hard && git pull && npm install
                hint: Pulling without specifying how to reconcile divergent branches is
                hint: discouraged. You can squelch this message by running one of the following
                hint: commands sometime before your next pull:
                hint:
                hint: git config pull.rebase false # merge (the default strategy)
                hint: git config pull.rebase true # rebase
                hint: git config pull.ff only # fast-forward only
                hint:
                hint: You can replace “git config” with “git config --global” to set a default
                hint: preference for all repositories. You can also pass --rebase, --no-rebase,
                hint: or --ff-only on the command line to override the configured default per
                hint: invocation.
                Committer identity unknown

                *** Please tell me who you are.

                Run

                git config --global user.email “you@example.com”
                git config --global user.name “Your Name”

                to set your account’s default identity.
                Omit --global to set the identity only in this repository.

                fatal: unable to auto-detect email address (got ‘pi@magicmirror.(none)’)

                1 Reply Last reply Reply Quote 0
                • bugsounet
                  bugsounet Main Coder last edited by

                  you have this error just because some module are in EOL. so your git program don’t know what can do

                  P 1 Reply Last reply Reply Quote 0
                  • B
                    bitass last edited by

                    I noticed (on my setup) that EXT-TelegramBot is not listed in the plugin section on the gateway (V2.2.5). Install via Terminal is required.

                    1 Reply Last reply Reply Quote 0
                    • P
                      papinist @bugsounet last edited by

                      @bugsounet said in Migrate from MMM-TelegramBot to EXT-TelegramBot:

                      you have this error just because some module are in EOL. so your git program don’t know what can do

                      Ok, MMM-TelegramBot I believe is in EOL. So my first question comes back: How should I migrate to EXT? Should I install EXT, maybe copy configuration and remove MMM?

                      1 Reply Last reply Reply Quote 0
                      • bugsounet
                        bugsounet Main Coder last edited by

                        Can you read this part of wiki ?

                        I think it’s really not difficult to understand …

                        • just uninstall, disable or delete MMM-TelegramBot
                        • install `EXT-TelegramBot and compare each configuration (old and new configuration) and replace all needed values on the new plugin
                        • create new config from wiki (EXT-TeklegramBot)
                        • delete, disable or delete old config (MMM-TelegramBot)

                        I really don’t understand why you take your head over very simple things

                        1 Reply Last reply Reply Quote 0
                        • P
                          papinist last edited by

                          Thank you for clarifying all the steps.
                          Followed those and migrated successfully!

                          1 Reply Last reply Reply Quote 0
                          • Topic has been marked as solved  P papinist 
                          • First post
                            Last post
                          Powered by NodeBB | @bugsounet ©2022