You would have to add a node helper that checks the URL and then send the data through the socketNotification. I think best is if you would look at the magicmirror documentation and take an example from Paviro’s syslog module.
Read the statement by Michael Teeuw here.
Posts
-
RE: How to change time (alarm) in AlarmClock Module on web (like syslog module)
-
RE: MM-Navbar - Navigation Bar for Touchscreens to hide/show modules
@chrisyy first of all I want to say that your module looks really nice, unfortunate that my mirror won’t have touch ;(. This module could be used in conjunction with my ProfileSwitcher module. This way you won’t have to bother with showing/hiding certain modules and others won’t have to modify your code. :)
-
RE: MM to periodically run a python or JS script?
@zichao92 ah nice, that’s way easier aswell. Thanks for letting me know, might come in handy once!
-
MMM-ProfileSwitcher, A Profile/User/Layout Switching Module
This Module adds the ability to have different layouts for different profiles. I noticed that other were looking for it aswell and might not want to have Paviro’s Facial Recognition Module with it.
This module uses the configured module’s classes and hides/shows them according to the current active profile.Features
- Set any number of modules per profile
- Use module name as profile
- Configure multiple profiles
- Set module for every profile
- Set multiple custom messages for each profile (randomly chosen)
You can find it here.
[card:tosti007/MMM-ProfileSwitcher]
Version 1
- First version and implementation
- Bug fixes and minor changes
- Added random chosen message
Version 2
- Added configurable timers!
- Add the use of lockstrings (thanks to @Jopyth)
- Support older browsers
- Added Spanish translations (thanks to @roramirez)
Version 2.1
- Added possibility to set a timer on the default class
- Added French translation (thanks to @PatriceG)
If you have any questions or requests for future features, don’t hesitate to ask!
Note: If you use this module in combination with Paviro’s Facial Recognition Module and you update his then don’t forget to update this module and read the line numbers again. -
RE: MM to periodically run a python or JS script?
I am not sure if you still need it, but just in case:
As far as I know there is the “python-shell” library which lets you do exactly that.
Paul-Vincent Roll used it in his facial recognition module, that’s how I found out.
link: https://github.com/paviro/MMM-Facial-Recognition