Read the statement by Michael Teeuw here.
Gosund SP111
-
@lordhelix updateinterval is the interval for an update of the module DOM in ms, so 60 seconds. Can not be the source of error.
-
Gosund SP 111 and SP112
i tried with localhost first, but nothing happens. I will try out with your tips.
-
@lavolp3 said in Gosund SP111:
npm start dev
pi@raspberrypi:~/MagicMirror $ npm start dev > magicmirror@2.11.0 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev" [2020-06-21 00:39:48.599] [LOG] Starting MagicMirror: v2.11.0 [2020-06-21 00:39:48.613] [LOG] Loading config ... [2020-06-21 00:39:48.623] [LOG] Loading module helpers ... [2020-06-21 00:39:48.663] [LOG] Initializing new module helper ... [2020-06-21 00:39:48.665] [LOG] Module helper loaded: MMM-Admin-Interface [2020-06-21 00:39:48.668] [LOG] No helper found for module: alert. [2020-06-21 00:39:48.739] [LOG] Initializing new module helper ... [2020-06-21 00:39:48.740] [LOG] Module helper loaded: updatenotification [2020-06-21 00:39:48.741] [LOG] No helper found for module: clock. [2020-06-21 00:39:49.470] [LOG] Initializing new module helper ... [2020-06-21 00:39:49.472] [LOG] Module helper loaded: calendar [2020-06-21 00:39:49.474] [LOG] No helper found for module: currentweather. [2020-06-21 00:39:49.476] [LOG] No helper found for module: weatherforecast. [2020-06-21 00:39:49.477] [LOG] No helper found for module: MMM-WiFiPassword. [2020-06-21 00:39:49.481] [LOG] Initializing new module helper ... [2020-06-21 00:39:49.482] [LOG] Module helper loaded: MMM-BurnIn [2020-06-21 00:39:49.486] [LOG] Initializing new module helper ... [2020-06-21 00:39:49.487] [LOG] Module helper loaded: MMM-COVID19 [2020-06-21 00:39:49.749] [LOG] Initializing new module helper ... [2020-06-21 00:39:49.750] [LOG] Module helper loaded: MMM-Tasmota [2020-06-21 00:39:49.751] [LOG] No helper found for module: MMM-MQTT. [2020-06-21 00:39:49.752] [LOG] All module helpers loaded. [2020-06-21 00:39:49.955] [LOG] Starting server on port 8080 ... [2020-06-21 00:39:49.985] [INFO] You're using a full whitelist configuration to allow for all IPs [2020-06-21 00:39:50.000] [LOG] Server started ... [2020-06-21 00:39:50.012] [LOG] Connecting socket for: MMM-Admin-Interface [2020-06-21 00:39:50.016] [LOG] Starting node helper for: MMM-Admin-Interface [2020-06-21 00:39:50.147] [LOG] Connecting socket for: updatenotification [2020-06-21 00:39:50.149] [LOG] Connecting socket for: calendar [2020-06-21 00:39:50.151] [LOG] Starting node helper for: calendar [2020-06-21 00:39:50.153] [LOG] Connecting socket for: MMM-BurnIn [2020-06-21 00:39:50.155] [LOG] Connecting socket for: MMM-COVID19 [2020-06-21 00:39:50.156] [LOG] Starting node helper for: MMM-COVID19 [2020-06-21 00:39:50.158] [LOG] Connecting socket for: MMM-Tasmota [2020-06-21 00:39:50.166] [LOG] Sockets connected & modules started ... [2020-06-21 00:39:50.299] [LOG] Whoops! There was an uncaught exception... [2020-06-21 00:39:50.300] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080 at Server.setupListenHandle [as _listen2] (net.js:1226:14) at listenInCluster (net.js:1274:12) at GetAddrInfoReqWrap.doListen [as callback] (net.js:1413:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:65:10) { code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '127.0.0.1', port: 8080 } [2020-06-21 00:39:50.314] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [2020-06-21 00:39:50.316] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [2020-06-21 00:39:50.323] [LOG] Launching application.
Sorry, i cant read this information. There is an issus, but i cant located them.
-
@lordhelix you have the mirror running via pm2 already.
You need to dopm2 stop all npm start dev
-
@lavolp3 Thank you. It looks like the topic isn’t subscribed.
My MQTT-DATA
09:31:09 MQT: tele/Testdose/STATE = {"Time":"2020-06-21T09:31:09","Uptime":"0T10:37:28","UptimeSec":38248,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":3,"POWER":"OFF","Wifi":{"AP":2,"SSId":"XXX2,4GHz","BSSId":"44:4E:6D:94:88:30","Channel":1,"RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:03"}} 09:31:09 MQT: tele/Testdose/SENSOR = {"Time":"2020-06-21T09:31:09","ENERGY":{"TotalStartTime":"2020-06-20T19:39:40","Total":0.195,"Yesterday":0.195,"Today":0.000,"Period":0,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":0,"Current":0.000}} 09:31:11 MQT: stat/Testdose/RESULT = {"POWER":"ON"} 09:31:11 MQT: stat/Testdose/POWER = ON 09:31:16 MQT: stat/Testdose/RESULT = {"POWER":"OFF"} 09:31:16 MQT: stat/Testdose/POWER = OFF 09:36:09 MQT: tele/Testdose/STATE = {"Time":"2020-06-21T09:36:09","Uptime":"0T10:42:28","UptimeSec":38548,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":3,"POWER":"OFF","Wifi":{"AP":2,"SSId":"XXX2,4GHz","BSSId":"44:4E:6D:94:88:30","Channel":1,"RSSI":96,"Signal":-52,"LinkCount":1,"Downtime":"0T00:00:03"}} 09:36:09 MQT: tele/Testdose/SENSOR = {"Time":"2020-06-21T09:36:09","ENERGY":{"TotalStartTime":"2020-06-20T19:39:40","Total":0.195,"Yesterday":0.195,"Today":0.000,"Period":0,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":0,"Current":0.000}}
pi@raspberrypi:~ $ pm2 stop all [PM2] Applying action stopProcessId on app [all](ids: 0) [PM2] [MagicMirror](0) ✓ ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 0 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ pi@raspberrypi:~ $ cd MagicMirror pi@raspberrypi:~/MagicMirror $ npm start dev > magicmirror@2.11.0 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev" [2020-06-21 10:29:22.516] [LOG] Starting MagicMirror: v2.11.0 [2020-06-21 10:29:22.528] [LOG] Loading config ... [2020-06-21 10:29:22.537] [LOG] Loading module helpers ... [2020-06-21 10:29:22.572] [LOG] Initializing new module helper ... [2020-06-21 10:29:22.574] [LOG] Module helper loaded: MMM-Admin-Interface [2020-06-21 10:29:22.577] [LOG] No helper found for module: alert. [2020-06-21 10:29:22.654] [LOG] Initializing new module helper ... [2020-06-21 10:29:22.654] [LOG] Module helper loaded: updatenotification [2020-06-21 10:29:22.656] [LOG] No helper found for module: clock. [2020-06-21 10:29:23.293] [LOG] Initializing new module helper ... [2020-06-21 10:29:23.294] [LOG] Module helper loaded: calendar [2020-06-21 10:29:23.295] [LOG] No helper found for module: currentweather. [2020-06-21 10:29:23.296] [LOG] No helper found for module: weatherforecast. [2020-06-21 10:29:23.297] [LOG] No helper found for module: MMM-WiFiPassword. [2020-06-21 10:29:23.301] [LOG] Initializing new module helper ... [2020-06-21 10:29:23.302] [LOG] Module helper loaded: MMM-BurnIn [2020-06-21 10:29:23.305] [LOG] Initializing new module helper ... [2020-06-21 10:29:23.306] [LOG] Module helper loaded: MMM-COVID19 [2020-06-21 10:29:23.541] [LOG] Initializing new module helper ... [2020-06-21 10:29:23.543] [LOG] Module helper loaded: MMM-Tasmota [2020-06-21 10:29:23.544] [LOG] All module helpers loaded. [2020-06-21 10:29:23.723] [LOG] Starting server on port 8080 ... [2020-06-21 10:29:23.739] [INFO] You're using a full whitelist configuration t o allow for all IPs [2020-06-21 10:29:23.752] [LOG] Server started ... [2020-06-21 10:29:23.754] [LOG] Connecting socket for: MMM-Admin-Interface [2020-06-21 10:29:23.756] [LOG] Starting node helper for: MMM-Admin-Interface [2020-06-21 10:29:23.874] [LOG] Connecting socket for: updatenotification [2020-06-21 10:29:23.876] [LOG] Connecting socket for: calendar [2020-06-21 10:29:23.877] [LOG] Starting node helper for: calendar [2020-06-21 10:29:23.878] [LOG] Connecting socket for: MMM-BurnIn [2020-06-21 10:29:23.879] [LOG] Connecting socket for: MMM-COVID19 [2020-06-21 10:29:23.881] [LOG] Starting node helper for: MMM-COVID19 [2020-06-21 10:29:23.882] [LOG] Connecting socket for: MMM-Tasmota [2020-06-21 10:29:23.888] [LOG] Sockets connected & modules started ... [2020-06-21 10:29:24.008] [LOG] Launching application. [2020-06-21 10:29:29.805] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/XXXXXXXX/basic.ics - Interval: 300000 [2020-06-21 10:29:31.246] [LOG] MMM-Tasmota: "Connected to host: http://localhost:1883" [2020-06-21 10:29:31.248] [LOG] MMM-Tasmota: "Subscribing to topic: stat/Testdose/#" [2020-06-21 10:29:31.296] [LOG] MMM-Tasmota: "Subscribed to topic: stat/Testdose/#" [2020-06-21 10:31:12.139] [LOG] MMM-Tasmota: "Received message from: stat/Testdose/RESULT" [2020-06-21 10:31:12.145] [LOG] MMM-Tasmota: "Received message from: stat/Testdose/POWER"
-
@lordhelix Can you please do a
git pull
and do the whole thing again (npm start dev)?
I have increased debugging output so we can see the data that has been transferred to the module.Thank you!
-
Hello @lavolp3 ,
i try the git pull…
pi@raspberrypi:~ $ cd MagicMirror/modules/MMM-Tasmota pi@raspberrypi:~/MagicMirror/modules/MMM-Tasmota $ git pull error: Objektdatei .git/objects/e3/ac23aabf6431dd82b8c207f734f8c046831f05 ist leer. error: Objektdatei .git/objects/e3/ac23aabf6431dd82b8c207f734f8c046831f05 ist leer. fatal: Loses Objekt e3ac23aabf6431dd82b8c207f734f8c046831f05 (gespeichert in .git/objects/e3/ac23aabf6431dd82b8c207f734f8c046831f05) ist beschädigt. fatal: Die Gegenseite hat unerwartet abgebrochen.
I change the node-helper.js manually. Error. i delete the module and clone new.
pi@raspberrypi:~/MagicMirror $ npm start dev > magicmirror@2.11.0 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev" [2020-06-22 19:22:16.259] [LOG] Starting MagicMirror: v2.11.0 [2020-06-22 19:22:16.275] [LOG] Loading config ... [2020-06-22 19:22:16.284] [LOG] Loading module helpers ... [2020-06-22 19:22:16.325] [LOG] Initializing new module helper ... [2020-06-22 19:22:16.326] [LOG] Module helper loaded: MMM-Admin-Interface [2020-06-22 19:22:16.329] [LOG] No helper found for module: alert. [2020-06-22 19:22:16.399] [LOG] Initializing new module helper ... [2020-06-22 19:22:16.400] [LOG] Module helper loaded: updatenotification [2020-06-22 19:22:16.401] [LOG] No helper found for module: clock. [2020-06-22 19:22:17.118] [LOG] Initializing new module helper ... [2020-06-22 19:22:17.119] [LOG] Module helper loaded: calendar [2020-06-22 19:22:17.120] [LOG] No helper found for module: currentweather. [2020-06-22 19:22:17.122] [LOG] No helper found for module: weatherforecast. [2020-06-22 19:22:17.123] [LOG] No helper found for module: MMM-WiFiPassword. [2020-06-22 19:22:17.126] [LOG] Initializing new module helper ... [2020-06-22 19:22:17.127] [LOG] Module helper loaded: MMM-BurnIn [2020-06-22 19:22:17.131] [LOG] Initializing new module helper ... [2020-06-22 19:22:17.132] [LOG] Module helper loaded: MMM-COVID19 [2020-06-22 19:22:17.406] [LOG] Initializing new module helper ... [2020-06-22 19:22:17.407] [LOG] Module helper loaded: MMM-Tasmota [2020-06-22 19:22:17.408] [LOG] All module helpers loaded. [2020-06-22 19:22:17.611] [LOG] Starting server on port 8080 ... [2020-06-22 19:22:17.629] [INFO] You're using a full whitelist configuration to allow for all IPs [2020-06-22 19:22:17.642] [LOG] Server started ... [2020-06-22 19:22:17.645] [LOG] Connecting socket for: MMM-Admin-Interface [2020-06-22 19:22:17.647] [LOG] Starting node helper for: MMM-Admin-Interface [2020-06-22 19:22:17.780] [LOG] Connecting socket for: updatenotification [2020-06-22 19:22:17.781] [LOG] Connecting socket for: calendar [2020-06-22 19:22:17.783] [LOG] Starting node helper for: calendar [2020-06-22 19:22:17.784] [LOG] Connecting socket for: MMM-BurnIn [2020-06-22 19:22:17.785] [LOG] Connecting socket for: MMM-COVID19 [2020-06-22 19:22:17.786] [LOG] Starting node helper for: MMM-COVID19 [2020-06-22 19:22:17.788] [LOG] Connecting socket for: MMM-Tasmota [2020-06-22 19:22:17.795] [LOG] Sockets connected & modules started ... [2020-06-22 19:22:17.933] [LOG] Launching application. [2020-06-22 19:22:24.276] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/XXXXXXX/basic.ics - Interval: 300000 [2020-06-22 19:22:25.493] [LOG] MMM-Tasmota: "Connected to host: http://localhost:1883" [2020-06-22 19:22:25.495] [LOG] MMM-Tasmota: "Subscribing to topic: stat/Testdose/#" [2020-06-22 19:22:25.545] [LOG] MMM-Tasmota: "Subscribed to topic: stat/Testdose/#" [2020-06-22 19:25:12.232] [LOG] MMM-Tasmota: "Received message from stat/Testdose/RESULT: {\"POWER\":\"ON\"}" [2020-06-22 19:25:12.342] [LOG] MMM-Tasmota: "Received message from stat/Testdose/POWER: ON"
-
@lordhelix what is your mqtt configuration in the devices? Especially the telemetry interval? It seems you see a message that power state has changed but no state and power data that gets distributed in intervals. Have you waited long enough?
-
Hello @lavolp3 ,
i wait 25 minutes yesterday.
interval: 300 // 5 minutes, i don´t change it, this is default.
I change the Period to 10 seconds, but the same problem.
-
@lordhelix we should track this on github to not spam here, can you please open an issue?
I’m currently out of ideas, but will follow up on github. I need your input to see that my module works for others :-)