@spospordo yeh, the change was a year ago… but I understand…
thats why I post and pin resolutions to known problems at the top of the troubleshooting section.
@spospordo yeh, the change was a year ago… but I understand…
thats why I post and pin resolutions to known problems at the top of the troubleshooting section.
the two parts of a module talk to each other thru socket notification events…
the node_helper can interact with the system ,but not the dom, and the module (js) interacts with the dom and not the system…
the two sides would use the sendSocketNotification(event_id, buffer) method…
each would have a method called socketNotificationReceived(event_id, buffer) that will be called when the event arrives…
the buffer can be any kind of data. formatted or not.
to open the socket the first time, the module.js MUST be the first side to sendSocketNotification().
typically the module sends the config info to the node_helper when its starts up.
this is another event notification, which is called notificationReceived(event, buffer, sender)
there are a a few builtin events, I use the ‘ALL_MODULES_STARTED’ event to send my module config to my helper and open the socket.
see the doc here for the additional specifics
https://github.com/MichMich/MagicMirror/tree/master/modules
the event id strings for socketnotification are completely up to you… the MM system does not send socket notifications. it DOES send notifications (notice no ‘socket’) to the notificationReceived() method
but summary
create both files (per the doc)
when module receives the ‘ALL_MODULES_STARTED’ event, send a socket notification from the module to the helper to open the communications channel
when the node_helper gets new data, it sends a socket notification (will ONLY be to the module(js)) with the data
the module(js) uses the data to update the dom
if the module(js) decides when there should be new data, then the module sends a socket notification to the helper, and the helper responds with a socket notification with the new data (if any).
in an attempt to limit spammers from registering and posting goo, we have enabled a higher level of reputation required to fill out the ‘About me’ and signature fields in the use profile.
edit: and the website and picture content as well
no more free advertising
sorry. I know this will be trouble for some
@ZiggidyZ the pm2 error in remote control is a module packaging problem
it demands the library to be able to do the job, but didn’t install it (see package json does not list it as a dependency
do this
change to the module folder and do
npm install pm2
then restart mm and try again
@justjim1220 others noted that you will also have to edit the index.html to add the regions and the main.js
var updateWrapperStates = function() {
var positions = [“top_bar”, “top_left”, “top_center”, “top_right”, “upper_third”, “middle_center”, “lower_third”, “bottom_left”, “bottom_center”, “bottom_right”, “bottom_bar”, “fullscreen_above”, “fullscreen_below”];
which lists all the known regions
@SymmetriC what url did u provide?
if using the mm web server
http://localhost:8080/modules/MMM-Text/filename
for reading from filename in the module folder
if some other file NOT using the mm web server
file:///full_path_to_filename
and of course if on some server someplace else
http{s}://server name/path?parms_if_any
@ahmed245275111 your node/npm level is below the required for this module
mm 2.26 requires node version 18 or above
if you used my mm install or upgrade scripts it would have handled that for you.
see
https://github.com/sdetweil/MagicMirror_scripts
I deleted the duplicate topic
@buzzkc that is why u prefix any names with your module name to restrict your settings to your module
@crisvdn there are really a list of issues here
most importantly, most modules are created by someone for their own use, and shared
but then they go on to other life things
maybe for a while they hang around and take issues and PRs.
but life goes on.
some modules haven’t been updated in 5-6 years. mm has been active for 10.
I would guess that 99% of the authors are not programmers, and have other day jobs. never experiencing the details , or life cycle.
as this is open source, there is no commitment to maintain a module.
we get waves of new authors maybe 5-6 a year.
without fork, there is no way to ‘fix’ an abandoned module.
now we are at the 'where do I find modules ’ problem. there is one voluntary list. others are trying to improve the usability of the list, but it’s still voluntary.
we keep up the core with issues and PRs and changelog and test cycles. but not any of the 3rd party modules.
I’m a moderator here, never a professional programmer. I do it all for for fun. I keep my stuff up to date. but I don’t list my modules in the 3rd party list.
I don’t use the Developer or Contributor tags on my ID cause I show my support thru my actions. I don’t need an outside label to differentiate myself… I’m no better than anyone else here.
@james1787 fantastic! 2fer… fixes and like more