• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Gosund SP111

Scheduled Pinned Locked Moved Requests
15 Posts 2 Posters 1.7k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    lordhelix
    last edited by Jun 12, 2020, 12:10 PM

    Hello,

    i´m new in this community. i search a module for my Gosund SP111 without flashing Tasmota.

    This one https://forum.magicmirror.builders/topic/13030/mmm-tasmota-beta?_=1591963282471 from @lavolp3 is for Tasmota only.

    Everybody can do it for the original firmware?

    best regards

    L 1 Reply Last reply Jun 12, 2020, 12:14 PM Reply Quote 0
    • L Offline
      lavolp3 Module Developer @lordhelix
      last edited by Jun 12, 2020, 12:14 PM

      @lordhelix Go flash it with Tasmota, use mine and have fun!
      :-)
      Bummer that you can’t use it.

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      1 Reply Last reply Reply Quote 0
      • L Offline
        lordhelix
        last edited by Jun 20, 2020, 9:19 PM

        Hello @lavolp3 ,

        i have flashed 5 pieces with tasmota. My MQTT broker also runs on the Raspian Pi. I have access to it with MQTT fx. But I don’t get any values. I tried two possible ports: 1883 and 8033. Can you help me a little, please.

        {
            module: "MMM-Tasmota",
            position: "top_right",
            config: {
                host: 'http://192.168.178.94:1883',  // also i try http://192.168.178.94:8033
                updateInterval: 60 * 1000,
                devices: [
                    {
                      topic: 'Testdose', name: 'dose', showPowerStats: true,
                    }
                ],
                chartxAxisFormat: "dd HH:mm",
            }
        },
        

        other question: What time means the updateInterval 60*1000? seconds, minutes or milliseconds?

        L 2 Replies Last reply Jun 20, 2020, 10:15 PM Reply Quote 0
        • L Offline
          lavolp3 Module Developer @lordhelix
          last edited by Jun 20, 2020, 10:15 PM

          @lordhelix what models have you flashed?
          If the broker runs on the pi, i guess you should use http://localhost:1883 as host.
          Also try to set debug: true in your config, start the mirror with npm start dev and have a look at the console messages.

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          1 Reply Last reply Reply Quote 0
          • L Offline
            lavolp3 Module Developer @lordhelix
            last edited by Jun 20, 2020, 10:17 PM

            @lordhelix updateinterval is the interval for an update of the module DOM in ms, so 60 seconds. Can not be the source of error.

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 0
            • L Offline
              lordhelix
              last edited by Jun 20, 2020, 10:31 PM

              Gosund SP 111 and SP112

              i tried with localhost first, but nothing happens. I will try out with your tips.

              1 Reply Last reply Reply Quote 0
              • L Offline
                lordhelix
                last edited by Jun 20, 2020, 10:44 PM

                @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.

                L 1 Reply Last reply Jun 21, 2020, 6:58 AM Reply Quote 0
                • L Offline
                  lavolp3 Module Developer @lordhelix
                  last edited by Jun 21, 2020, 6:58 AM

                  @lordhelix you have the mirror running via pm2 already.
                  You need to do

                  pm2 stop all
                  npm start dev
                  

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    lordhelix
                    last edited by lordhelix Jun 21, 2020, 9:00 AM Jun 21, 2020, 8:54 AM

                    @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"
                    
                    L 1 Reply Last reply Jun 22, 2020, 8:29 AM Reply Quote 0
                    • L Offline
                      lavolp3 Module Developer @lordhelix
                      last edited by lavolp3 Jun 22, 2020, 9:19 AM Jun 22, 2020, 8:29 AM

                      @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!

                      How to troubleshoot modules
                      MMM-soccer v2, MMM-AVStock

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy