@BKeyport Hi, can you make a screenshot of the things styled outside MagicMirror so we can see how it should look exactly?
Maybe you will need some additional classes in your module config to make it possible to select the different elements jn CSS.
Read the statement by Michael Teeuw here.
Posts
-
RE: Help restyling MMM-ValuesByNotification
-
RE: [MMM-MQTTbridge] A module to publish and receive MQTT messages
@Cr4z33 Hi, you will first need the URL of the RTSP stream of your camera.
In the next step you will need to subscribe to the topic in the file mqttDictionary.jsvar mqttHook = [ { mqttTopic: "DahuaVTO/VideoTalkLog/Event", mqttPayload: [ { jsonpath: "Action", conditions: [ { type: "eq", value: "Pulse" }, ], mqttNotiCmd: ["doorbell"] }, ], }, ]; var mqttNotiCommands = [ { commandId: "doorbell", notiID: "RTSP-PLAY", notiPayload: "YOUR-STREAM-URL" }, ];But you will need to find a way to stop the stream in any way.
-
RE: Help restyling MMM-ValuesByNotification
@BKeyport
Hi and sorry for the late reply.
I am not sure if I will have time to test your case the next days.I think your main problem is that you try to use “normal” styling directives for the layout but I use flexbox css as the basic.
You can find a short tutorial at:
https://css-tricks.com/snippets/css/a-guide-to-flexbox/Edit:
Had 5 minutes and did a quick check.
I think the following two statements are a good starting point:.MMM-ValuesByNotification .vbn .groupsWrapper { flex-direction: row; } .MMM-ValuesByNotification .vbn .valueWrapper { flex-direction: row; } -
RE: odd module load behaviour after upgrading to 2.28
@david6461
Hi,I am running version 2.28 of MagicMirror with multiple instances of MMM-TouchButtons and multiple instances of a couple of other of my modules.
I can’t confirm the problem.
No double messages and no increased CPU usage.
Are you sure you did not start a second instance of MagicMirror? -
RE: MMM-SynologySurveillance
@m3iaz Hi,
the Reolink cams provide a fluent and a high quality stream.
You can select three different stream types in the Surveillance Station. The MJPEG stream is generated of the one for reduced speed which in my setup is the fluent stream of the Reolink cam.
I can select a 640x stream in my Reolink but it may depend of the camera.I do not have much time to program at the moment but you may checkout my EmbedURL module. It is able to embed images and a refresh rate can be configured. Some people use it to embed JPEG of public webcams already.
-
RE: Problem with MMM-ValuesByNotification and MMM-CommandToNotification
@Jimmy1502
You will need to comment the try, too. Additionally the indention of the code needs to be changed.
The file will be look like this then:#!/bin/python3 #Install Dependencies: # pip3 install adafruit-circuitpython-dht # sudo apt-get install libgpiod2 import time import board import adafruit_dht import json import sys gpio_nr = 4 if len(sys.argv) > 1: gpio_nr = int(sys.argv[1]) # Initial the dht device, with data pin connected to: dhtDevice = adafruit_dht.DHT22(getattr(board, "D%d"%gpio_nr)) result = {} result["temperature_c"] = dhtDevice.temperature result["humidity"] = dhtDevice.humidity result["temperature_f"] = (result["temperature_c"]*1.8) + 32 result["error"] = False print(json.dumps(result)) -
RE: Problem with MMM-ValuesByNotification and MMM-CommandToNotification
@Jimmy1502 As the reuseCount is set to 100 the wrong value need to be caused by the script sending them.
It only sends 0.0 if a error occurs.You may remove the except block in the script and fire it very quickly on the shell to see what causes the error.
-
RE: Problem with MMM-ValuesByNotification and MMM-CommandToNotification
@Jimmy1502 I think the problem with the temperature is caused by the json path. The script outputs
temperature_candtemperature_fbut the json path causes the module to search fortemperatureonly.The problem with the humidity may be caused by the interval you query the sponsor values. 10 seconds is very short for the dht sensor. Maybe you can try a bigger interval.
-
RE: Problem with MMM-ValuesByNotification and MMM-CommandToNotification
@Jimmy1502
The script uses GPIO 4 in default but accepts any GPIO number as first argument.
At least GPIO 25 has no double function on raspberries and should work.You can call the script directly in the shell and check the output for debug purposes.
And make sure to check the comments in the first lines of the script if you need to. install any dependencies.Edit: Looks like you use GPIO 12 in your config which should work, too