A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
How to send notification with MMM-EasyPix
-
How can I send notifications with the MMM-EasyPix module?
I triedimage.onerror = this.sendNotification('Pic is not exisiting');
but nothing happened.
If I doimage.onerror = console.log('Pic is not exisiting');
it logs ‘Pic is not existing’ in the console.
Any Ideas?
-
@Sven1894 where are u trying to send the notification?
this only works in the modulename.js
not in the node_helper -
@sdetweil In the MMM-EasyPix.js
-
@Sven1894 what module are u sending it to?
and you know what ‘this.’ means.
sometimes you have to take special care.have you debugged w the developer window ?
ctrl-shift-i, select the sources tab, find the module source, click
put a stop on the line where it is about to send and examine the ‘this.’ pointerif it’s in a callback it might be pointing to somewhere unexpected