Bugsounet Coding

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

    Gateway v2 is scheduled to be released on 2022-06-01

    Gateway
    9
    55
    640
    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.
    • bugsounet
      bugsounet Main Coder last edited by bugsounet

      Hi guys,

      I have some good news for you 😉

      I’m really like you… I lazy for update … I’m lazy for configure too

      For auto updating modules and plugins, yeah I have coded EXT-UpdateNotification !
      But I have not coded something for configure kindly your EXT plugins

      It will be solved soon will Gateway v2 !

      Gateway will be able to install and configure your EXT plugins !

      Kindly ? how ?

      You don’t have to connect to your pi !
      Gateway v2 will have an web app for doing job !
      This web app will be reachable from all device from your local network
      So Gateway will be available from an http link 😉
      Naturally, it will be protect with an username and password

      This app will detect:

      • actual MM config
      • actual EXT plugins installed (in MM)
      • actual EXT plugins configured (in config)

      I have planned this:

      • [Done] create an entire module config (module, position, disabled, configDeepMerge, config)
        • [Done] make a real interface to configure it !
        • [Done] make description of all features !
      • [Done] install EXT plugin need with an (fake) terminal callback
      • [Done] save new config to MagicMirror (with old config saving)
      • [Done] modify config of an EXT
      • [Done] restart your mirror
      • [95% Done] add multi-language
      • Add callback for EXT-Alert (login/ bad login) will not be coded
      • [Done] add nologin feature
      • [Done] manage config of Gateway with setting
      • [Done] move all callbacks (error/success) to top navbar
      • make an safe app to load last best conf?
      • [Done] finish to Code all EXT schema/template
      • code some post install needed for EXT
      • [Done] check if webwiew code is enabled in MM Config

      You want to follow my job ?

      Try the Gateway v2 branch for beta testing (during coding !)

      cd ~/MagicMirror/modules/Gateway
      git checkout -f v2
      npm run update
      

      follow the link offer in console, something like this:

      [23.04.2022 12:09.52.198] [LOG]   [GATEWAY] Start listening on http://192.168.0.167:8081
      

      default login and password: admin

      You want to quit this version and go to master branch:

      cd ~/MagicMirror/modules/Gateway
      git checkout -f master
      npm run update
      

      Notes:

      • Tell me what do you think about this 🙂
      • Any help is welcome !
      • There is an nighlty build (everyday ?)

      config: (since rev 22/05/07)

      {
        module: "Gateway",
        config : {
          debug: false, // debug mode ?
          port: 8081, // connecting port for HTML
          username: "admin", // your username for connecting
          password: "admin", // your prefered password
          usePM2: false, // if you use pm2 app for start MagicMirror set it to `true` !
          PM2Id: 0 // ID of the pm2 app [ `pm2 status` can help to define it ]
        }
      },
      

      It can be changed directly in the app !

      Update:

      use npm run update in Gateway directory
      Naturally if you use EXT-UpdateNotification: You have nothing to do, It’s automatic !

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

        Screenshot_20220409_180732.jpg

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

          IMG_20220412_122410_307.jpg

          EXT Explorer will have faculty to install/delete, configure and modify config file of all plug-ins!

          It will be like Child’s games!

          Edit:
          Do you want special features for admin Html interface? Or any idea?

          1 Reply Last reply Reply Quote 1
          • The Dev3l
            The Dev3l last edited by

            Hello!

            An idea that could be implemented is the background theme, which can be chosen between black, white or another.

            All the best!

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

              image.png

              Install with real time outpout of terminal !

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

                @The-Dev3l said in Gateway v2.0 is under coding !:

                Hello!

                An idea that could be implemented is the background theme, which can be chosen between black, white or another.

                All the best!

                Yes, why not

                In all case, I just finish to Code auto install and delete EXT plug-ins!

                Now let’s code configure part 😉

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

                  image.png

                  Restart and Stop facility !

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

                    image.png

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

                      image.png

                      Clic on install and :

                      eaf7287a-775b-42db-bb26-58275c11d97e-image.png

                      Confirmation 🙂
                      89a3e9cb-b5b0-43b3-9180-ce130436dfb9-image.png
                      Installation Complete !

                      What to Delete ?
                      92214f86-f6f4-4f5e-8889-ad2650cea4ba-image.png
                      8f193c13-acb0-475f-89cb-9da37253fe0b-image.png
                      c2cc11af-d824-4858-9bd2-4e50c1635a9a-image.png
                      Too Simple !

                      What about to restart or Stop MagicMirror ?

                      a1049ec7-c39c-47e8-b2c6-9050c0204353-image.png

                      😂 😂 😂

                      It will be cool this Gateway !

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

                        What do you think about it ?

                        In all case: I will continue…

                        • Let’s Coding configuration part: configure, modify, delete and push it to main MagicMirror config !
                        1 Reply Last reply Reply Quote 1
                        • F
                          Fabaude Donators last edited by

                          👍👍👍👍

                          1 Reply Last reply Reply Quote 0
                          • pitchx
                            pitchx BetaTester Helpers last edited by

                            Look great , Can’t wait !!!

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

                              @dvbit send me an idea 😉
                              Full config of Magicmirror modules config with save
                              So i start to code it !

                              On first I open a full displayer of all modules
                              image.png
                              And if needed, you can enter in edit mode (no yet coded)

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

                                You want to follow my job ?

                                try the Gateway v2 branch

                                cd ~/MagicMirror/modules/Gateway
                                git checkout -f v2
                                npm run update
                                

                                follow the link offer in console, something like this:

                                [23.04.2022 12:09.52.198] [LOG]   [GATEWAY] Start listening on http://192.168.0.167:8081
                                

                                default login and password: admin

                                You want to quit this version and go to master branch:

                                cd ~/MagicMirror/modules/Gateway
                                git checkout -f master
                                npm run update
                                

                                Notes:

                                • it’s not really ready for a phone, actually only for desktop
                                • Tell me what do you think about this 🙂
                                • Any help is welcome !
                                1 Reply Last reply Reply Quote 0
                                • bugsounet
                                  bugsounet Main Coder last edited by

                                  Yeah, we are now able to display default config with validation schema !

                                  image.png

                                  naturally, you can see result or modify code directly (and display if error) !

                                  image.png

                                  When config is valided, Save button will be available !
                                  54793dea-2e6d-424a-a66e-3ec907e20b21-image.png

                                  Validation schema is actually available for:

                                  • EXT-Alert
                                  • EXT-Background
                                  • EXT-Bring
                                  • EXT-Welcome

                                  Save button code is not yet coded

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

                                    Installed gateway v2.0, and it looks awesome!
                                    Love the terminal output window

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dvbit Donators last edited by

                                      Going to try it soon

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

                                        /!\ WARN /!\

                                        I’m coding the configure / modify and delete part of EXT config for MM config

                                        Please don’t validate (Save) your configuration !
                                        I will be back when it’s really coded 😉
                                        (I detect some bug when value transit from HTML to Gateway js app)
                                        In all case, Original file config is saved in backup directory of Gateway …
                                        but i prefer prevent …

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

                                          Yeah it’s Corrected 😉
                                          Added:

                                          • modify/delete EXT configuration
                                          • restart / stop MagicMirror

                                          Now, I have to code all schema of EXT configuration file ( EXT-Alert, EXT-Background, EXT-Bring, EXT-Welcome is ready to use for testing !)

                                          This is Gateway v2 plugin configuration !

                                          {
                                            module: "Gateway",
                                            config : {
                                              debug: false, // debug mode ?
                                              useApp: true, // use HTML configuration
                                              port: 8081, // connecting port for HTML
                                              username: "admin", // your username for connecting
                                              password: "admin", // your prefered password
                                              usePM2: false, // if you use pm2 app for start MagicMirror set it to `true` !
                                              PM2Id: 0 // ID of the pm2 app [ `pm2 status` can help to define it ]
                                            }
                                          },
                                          

                                          Happy testing !

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

                                            Yeah, just test remotely from another PC and from internet
                                            My Pi4 have really a good react!
                                            All features coded works perfectly.
                                            It’s really to simple 😉

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | @bugsounet ©2022