Gateway v2 is scheduled to be released on 2022-06-01
-
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 pluginsIt 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 passwordThis 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
inGateway
directory
Naturally if you useEXT-UpdateNotification
: You have nothing to do, It’s automatic ! -
bugsounet
-
-
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? -
Hello!
An idea that could be implemented is the background theme, which can be chosen between black, white or another.
All the best!
-
Install with real time outpout of terminal !
-
@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
-
Restart and Stop facility !
-
-
Clic on install and :
Confirmation
Installation Complete !What to Delete ?
Too Simple !What about to restart or Stop MagicMirror ?
It will be cool this Gateway !
-
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 !
- Let’s Coding configuration part:
-
-
Look great , Can’t wait !!!
-
@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
And if needed, you can enter in edit mode (no yet coded) -
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 !
-
Yeah, we are now able to display default config with validation schema !
naturally, you can see result or modify code directly (and display if error) !
When config is valided,
Save
button will be available !
Validation schema is actually available for:
- EXT-Alert
- EXT-Background
- EXT-Bring
- EXT-Welcome
Save button code is not yet coded
-
Installed gateway v2.0, and it looks awesome!
Love the terminal output window -
Going to try it soon
-
/!\ 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 … -
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 !
-
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