MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Cr4z33
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 1
    • Followers 1
    • Topics 16
    • Posts 461
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-MPlayer

      @myfingersarecold said in MMM-MPlayer:

      I couldnt get the EXT-FreeboxTV module to work on my magic mirror

      Out of curiosity what was the issue with it?

      I use that module all the time to watch the TV channels of my Enigma2 decoder.

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @wishmaster270 here is the code of my RTSPStream module thanks. 🙂

      I replaced my video doorbell RTSP stream with some testing live HTTPS camera one as I couldn’t find a working RTSP testing stream.

      Take your time as long as it takes. 👍🏼

      {
      			module: "MMM-RTSPStream",
      			position: "middle_center",
      			disabled: false,
      			config: {
      				autoStart: false,
      				rotateStreams: true,
      				rotateStreamTimeout: 10,
      				moduleWidth: 500,
      				moduleHeight: 281,
      				localPlayer: 'vlc',
      				moduleOffset: { left: -170, top: -125 },
      				remotePlayer: 'ffmpeg',
      				showSnapWhenPaused: false,
      				remoteSnaps: false,
      				shutdownDelay: 12,
      				stream1: {
      						name: 'Videocitofono',
      						url: 'https://99663300.hopto.org:19526/Jpeg/1?authToken=7f9c4ca8-e776-40c9-b242-6882b7b4775e&1727250645145',
      						frameRate: 'undefined',
      						width: 500,
      						height: 281,
      						muted: true,
      						ffmpegPort: 9999,
      						},
      				}
      		},
      
      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @wishmaster270 said in [MMM-MQTTbridge] A module to publish and receive MQTT messages:

      @Cr4z33 Hi,

      think I found the problem.
      You need to send streamX as value where X is the number of the stream in the configuration of MMM-RTSPStream.
      You will need to configure the camera information in the MMM-RTSPStream module and only will be able to start the stream by notification

      Hi mate I am coming back after a long time because real life was very busy lately and I could get back at this only in the last 2 days.

      So based on your reply I set mqttDictionary.js like this

      var mqttHook = [
        {
          mqttTopic: "zigbee2mqtt/BTicino F20T60A",
          mqttPayload: [
            {
              payloadValue: "",
              mqttNotiCmd: ["POWERMETER"],
              mqttPayload: ""
            },
          ],
        },
        {
            mqttTopic: "DahuaVTO/VideoTalkLog/Event",
            mqttPayload: [
              {
                 jsonpath: "Action", 
                 conditions: [
                             {
                               type: "eq",
                               value: "Pulse"
                             },
                           ],
                mqttNotiCmd: ["videocitofono"]
              },
            ],
          },
      ];
      
      var mqttNotiCommands = [
        {
          commandId: "POWERMETER",
          notiID: "POWERMETER_VALUES",
        },
        {
            commandId: "videocitofono",
            notiID: "RTSP-PLAY",
            notiPayload: "stream1" 
          },
      ];
      
      module.exports = { mqttHook,  mqttNotiCommands};
      

      Although stream1 is the one and only stream used in MMM-RTSPStream I still get no playback when the doorbell button is pressed, but if I start the stream by clicking on the module’s playback button then it works.

      I paste here also the PM2 log line (note that sensitive data have been censored) when the doorbell button is pressed:

      [23.09.2024 12:36.03.216] [LOG]   [MQTT bridge] MQTT message received. Topic: DahuaVTO/VideoTalkLog/Event, message: {
          "Action": "Pulse",
          "Code": "VideoTalkLog",
          "Data": {
              "EndState": "Missed",
              "LocalNumber": "9901",
              "LocaleTime": "2024-09-23 12:36:03",
              "RealUTC": 1727087763,
              "TalkTime": 0,
              "UTC": 1727091363.0
          },
          "Index": 0,
          "deviceType": "DHI-VTO2202F-P-S2",
          "serialNumber": "*******"
      }
      

      Can you please see why it’s not working yet? 🙏🏼

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @sdetweil said in [MMM-MQTTbridge] A module to publish and receive MQTT messages:

      @Cr4z33 said in [MMM-MQTTbridge] A module to publish and receive MQTT messages:

      although I can see the MQTT event if running MM by npm start

      if using pm2 to autolaunch MM, then

      pm2 logs --lines=xxxx
      

      will show you the last xxxx of the output

      @wishmaster270 said in [MMM-MQTTbridge] A module to publish and receive MQTT messages:

      @Cr4z33 Hi,

      think I found the problem.
      You need to send streamX as value where X is the number of the stream in the configuration of MMM-RTSPStream.
      You will need to configure the camera information in the MMM-RTSPStream module and only will be able to start the stream by notification

      Thank you both will do as soon as I am back at home again!

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @wishmaster270 thank you again!

      However nothing happens in the MagicMirror frontend (although I can see the MQTT event if running MM by npm start

      [23.07.2024 17:15.55.132] [LOG]   [MQTT bridge] MQTT message received. Topic: DahuaVTO/VideoTalkLog/Event, message: {"Action":"Pulse","Data":{"EndState":"Missed","LocalNumber":"9901","LocaleTime":"2024-07-23 17:15:55","RealUTC":1721747755,"TalkTime":0,"UTC":1721751355}}
      

      I suspect that I am entering the wrong data at

      "YOUR-STREAM-URL"
      

      What shall I enter? Just the IP address or something like ie.

      rtsp://username:password@IPADDRESS/cam/realmonitor?channel=1&subtype=1#backchannel=0
      
      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @wishmaster270 sorry to bother you again.

      Right now my mqtt Dictionary.js looks like this

      var mqttHook = [
        {
          mqttTopic: "zigbee2mqtt/BTicino F20T60A",
          mqttPayload: [
            {
              payloadValue: "",
              mqttNotiCmd: ["POWERMETER"],
              mqttPayload: ""
            },
          ],
        },
      ];
      
      var mqttNotiCommands = [
        {
          commandId: "POWERMETER",
          notiID: "POWERMETER_VALUES",
        },
      ];
      
      module.exports = { mqttHook,  mqttNotiCommands};
      

      so how should I add the new piece of code please?

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @wishmaster270 thank you mate!

      Yeah I will add a timeout command as I don’t think it will take much to search for it. 🙂

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages

      @wishmaster270 I would like to intercept the MQTT event of when my Dahua video doorbell is pressed and send the stream to MMM-RTSPStream, but I don’t really know how to get the two modules to “talk” to each other… 😅

      So looking at DahuaVTO2MQTT registry this comes out when the doorbell button is pressed:

      MQTT message published, Topic: DahuaVTO/VideoTalkLog/Event, Payload: {"Action":"Pulse","Data":{"EndState":"Missed","LocalNumber":"9901","LocaleTime":"2024-07-22 10:09:27","RealUTC":1721635767,"TalkTime":0,"UTC":1721639367}}
      

      Now looking at MMM-RTSPStream readme this is the section where it explains how to control it from other modules (aka MMM-MQTTbridge), but as I said above it didn’t make sense to me.

      Can you please help me (at least on your module’s side)?

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: MMM-BMW-DS (A different kind of weather module)

      @gonzonia alright thanks anyway for giving it a try. :)

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: MMM-BMW-DS (A different kind of weather module)

      @gonzonia did you check this?

      Are you sure? :crying_face:

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: MMM-BMW-DS (A different kind of weather module)

      @gonzonia any chance you might adapt it for Tomorrow.io (former ClimaCell) users too? :)

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: Wooden Vertical Magic Mirror

      Nice, but… why didn’t you hide the power supply and the cables BEHIND the mirror?

      There’s plenty of room for that! :D

      posted in Show your Mirror
      Cr4z33C
      Cr4z33
    • RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons

      @wishmaster270 exactly what I wanted thanks!

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons

      @wishmaster270 sorry for bothering you again… :grinning_face_with_sweat:

      What if I want no border?

      Would I have to edit the module’s CSS or can I just add something to custom.css?

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons

      @wishmaster270 I wanted to move your module way more to the left so to align it with my other modules (Google Assistant, clock and Spotify).

      However nevermind as I opted to have your module on top instead. ;)

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons

      @wishmaster270 thanks I applied that instead.

      Anyway to add some offset to the module to be aligned with the other modules on the left?
      Immagine 2022-10-04 171613.png

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons

      @wishmaster270 thank you it worked at first try!

      Now I can go on with some aesthetic changes like icons, etc. :D

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons

      @wishmaster270 said in [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons:

      Does your powermeter send the data via MQTT already?

      Yes

      Do you have the MMM-MQTTbridge module configured to connect to your MQTT broker, subscribe for the topic(s) and send the data via notification?

      Nope, but I will set it up as soon as I finish posting this reply! :thumbs_up_light_skin_tone:

      How does the data look like? Is it plain text or is it a JSON object?

      I’ve got Zigbee2MQTT running in a Docker and if I look at its logs it shows lines like

      Zigbee2MQTT:info  2022-10-04 15:45:08: MQTT publish: topic 'zigbee2mqtt/BTicino F20T60A', payload '{"device":{"applicationVersion":0,"dateCode":" \u000020180829\u0000\u0000\u0000\u0000\u0000","friendlyName":"BTicino F20T60A","hardwareVersion":1,"ieeeAddr":"0x000474000089a3e4","manufacturerID":4129,"manufacturerName":" Legrand\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","model":"412015","networkAddress":16238,"powerSource":"Mains (single phase)","softwareBuildID":"016\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0002\u0000\u0001\u0000 \u0002\u0000\u0002\u0000!\u0012\u0000\u0000\u0000\u0000  \u0003\u0000\u0010\u0002\u0001\u0004\u0000\u0018\u0002\u0000  !","stackVersion":64,"type":"Router","zclVersion":2},"linkquality":90,"power":645,"power_alarm":null,"power_alarm_active":true,"power_alarm_active_value":2}'
      
      Zigbee2MQTT:info  2022-10-04 15:45:10: MQTT publish: topic 'zigbee2mqtt/BTicino F20T60A', payload '{"device":{"applicationVersion":0,"dateCode":" \u000020180829\u0000\u0000\u0000\u0000\u0000","friendlyName":"BTicino F20T60A","hardwareVersion":1,"ieeeAddr":"0x000474000089a3e4","manufacturerID":4129,"manufacturerName":" Legrand\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","model":"412015","networkAddress":16238,"powerSource":"Mains (single phase)","softwareBuildID":"016\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0002\u0000\u0001\u0000 \u0002\u0000\u0002\u0000!\u0012\u0000\u0000\u0000\u0000  \u0003\u0000\u0010\u0002\u0001\u0004\u0000\u0018\u0002\u0000  !","stackVersion":64,"type":"Router","zclVersion":2},"linkquality":90,"power":610,"power_alarm":null,"power_alarm_active":true,"power_alarm_active_value":2}'
      

      If it is JSON how is the data structured and which values do you want to display?

      I want to display the power value.

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons

      @wishmaster270 soooo I gave a deep reading at your readme, but I am not quite sure whether I can already insert my MQTT based power meter with your first release or not? :slightly_smiling_face:

      posted in Utilities
      Cr4z33C
      Cr4z33
    • RE: BME280 sensor with esp 8266

      @sdetweil said in BME280 sensor with esp 8266:

      @jeromeguill I replied in discord, don’t u check ?

      Out of topic what’s on Discord?

      A MagicMirror channel or just something private? 😅

      posted in Utilities
      Cr4z33C
      Cr4z33
    • 1 / 1