Smart Led Messenger
Moderators: leecollings, remb0
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Smart Led Messenger
I bought Smart Led Messenger. Someone can tell me how to set them up in DOMOTICZ.
I want to see the temperature, the clock, the on / off switch, and more.
https://www.smartledmessenger.com
I want to see the temperature, the clock, the on / off switch, and more.
https://www.smartledmessenger.com
-
elmortero
- Posts: 248
- Joined: Sunday 29 November 2015 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: Smart Led Messenger
Hi,
This Page (in French) says that you can send your text using
http://ip_address/?message=TEXT&intensity=AA&speed=BB
where ip_address is the ip of your messenger
TEXT = the text you want to display
AA = the brightness
BB = the scroll speed is the how fast your text moves
So, with this you can use your favorite scripting language to get the info from Domoticz and send it to the smart led messenger
This Page (in French) says that you can send your text using
http://ip_address/?message=TEXT&intensity=AA&speed=BB
where ip_address is the ip of your messenger
TEXT = the text you want to display
AA = the brightness
BB = the scroll speed is the how fast your text moves
So, with this you can use your favorite scripting language to get the info from Domoticz and send it to the smart led messenger
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
Can also be used in blockly?
-
elmortero
- Posts: 248
- Joined: Sunday 29 November 2015 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: Smart Led Messenger
I never tried that, but according to this topic https://www.domoticz.com/forum/viewtopic.php?t=17006 it should work
With dzvents and bash I could help you but not blockly.
With dzvents and bash I could help you but not blockly.
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
Thank you it works for me perfectly. As it moves, it sends the text to the messenger and displays the digital clock sleep after 5 seconds.
Now I need to figure out how to send the temperature information. This may require a script.

Now I need to figure out how to send the temperature information. This may require a script.

Last edited by laco on Thursday 26 March 2020 9:29, edited 1 time in total.
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
Can you please create a script that sends temperature information every 5 minutes?
-
elmortero
- Posts: 248
- Joined: Sunday 29 November 2015 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: Smart Led Messenger
The script I am posting is for dzVents.
I understand that you are not yet familiar with it so please read these hints from waaren
Please let me know if you know more command, I have ordered a Smart Led Messenger too 
I understand that you are not yet familiar with it so please read these hints from waaren
This script (change to match your setup):by waaren
using dzVents would be an option. See below how that could look like. From your profile I cannot see which domoticz version you use.
When not yet familiar with dzVents please start with reading Get started Before implementing (~ 5 minutes). Special attention please for "In Domoticz go to Setup > Settings > Other and in the section EventSystem make sure the checkbox 'dzVents disabled' is not checked. Also make sure that in the Security section in the settings you allow 127.0.0.1 to not need a password. dzVents uses that port to send certain commands to Domoticz. Finally make sure you have set your current location in Setup > Settings > System > Location, otherwise there is no way to determine nighttime/daytime state."
More info on dzVents:
https://www.domoticz.com/wiki/DzVents:_ ... _scripting
Code: Select all
return {
on = {
timer = { 'every 5 minutes'}
},
execute = function(domoticz, triggerItem)
local smart_led_ip = '192.168.1.28' --replace by the ip address of your smart led messenger
local static = 1 -- change to 0 if you want scrolling text
local sensor = domoticz.devices('thermometer') -- replace thermometer by the EXACT name of your sensor
local tempe = sensor.temperature
local url = 'http://'..smart_led_ip..'/?message='..tempe..'&static='..static
domoticz.openURL(url)
--domoticz.openURL('http://'..smart_led_ip..'static=0&local=0').afterSec(30)
-- remove the -- from line above if you want to turn off the screen after 30 seconds
end
}
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
It works great. Displays the temperature to 10 decimal places. This should be rounded to 1 decimal place or not. It would be good to add text about what temperature it is, exterior or interior.
Thank you very much for the great work.
VIDEO:
https://photos.app.goo.gl/c7QJSLhMCCAyLJrs9
Thank you very much for the great work.
VIDEO:
https://photos.app.goo.gl/c7QJSLhMCCAyLJrs9
-
elmortero
- Posts: 248
- Joined: Sunday 29 November 2015 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: Smart Led Messenger
1: easy: change "local tempe = sensor.temperature" to local tempe = domoticz.utils.round(sensor.temperature,1)laco wrote: Sunday 08 September 2019 17:19 It works great. Displays the temperature to 10 decimal places. This should be rounded to 1 decimal place or not. It would be good to add text about what temperature it is, exterior or interior.
2: even easier:
In the line
Code: Select all
local url = 'http://'..smart_led_ip..'/?message='..tempe..'&static='..staticCode: Select all
local url = 'http://'..smart_led_ip..'/?message=Hall: '..tempe..'&static='..static- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
Everything works but not rounding.
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
Sorry it works. I had it badly written.
Video:
https://photos.app.goo.gl/cNHTgj6Fy1shPoiV7
Function code dzVents:
Video:
https://photos.app.goo.gl/cNHTgj6Fy1shPoiV7
Function code dzVents:
Code: Select all
return {
on = {
timer = { 'every 5 minutes'}
},
execute = function(domoticz, triggerItem)
local smart_led_ip = '192.168.1.28' --replace by the ip address of your smart led messenger
local static = 0 -- change to 0 if you want scrolling text
local sensor = domoticz.devices('Sklenník') -- replace thermometer by the EXACT name of your sensor
local tempe = domoticz.utils.round(sensor.temperature,1)
local url = 'http://'..smart_led_ip..'/?message=Sklennik:'..tempe..'°C&static='..static
domoticz.openURL(url)
domoticz.openURL('http://'..smart_led_ip..'/?static=1&local=0').afterSec(10)
-- remove the -- from line above if you want to turn off the screen after 10 seconds
end
}
Last edited by laco on Thursday 12 September 2019 18:50, edited 3 times in total.
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
It might be good to send data only when the temperature changes.
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
I need to round the result to an integer.
I get 10.0 on the display and only need 10.
I ask for help.
I get 10.0 on the display and only need 10.
I ask for help.
Code: Select all
return {
on = {
timer = { 'every 1 minutes'}
},
execute = function(domoticz, triggerItem)
local smart_led_ip = '192.168.1.146' --replace by the ip address of your smart led messenger
local static = 0 -- change to 0 if you want scrolling text
local sensor1 = domoticz.devices('Corona nakazení SK')
local tempe1 = domoticz.utils.round(sensor1.counter)
local sensor2 = domoticz.devices('Corona nakazení vo svete')
local tempe2 = domoticz.utils.round(sensor2.counter)
local url = 'http://'..smart_led_ip..'/?message=Corona-nakazeni-SK:'..tempe1..'_ludi_Corona-SVET:'..tempe2..'_ludi&intensity=1&speed=50&static='..static
domoticz.openURL(url)
--domoticz.openURL('http://'..smart_led_ip..'static=0&local=0').afterSec(30)
-- remove the -- from line above if you want to turn off the screen after 30 seconds
end
}- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Smart Led Messenger
Can you try this ?laco wrote: Wednesday 25 March 2020 19:15 I need to round the result to an integer.
I get 10.0 on the display and only need 10.
Code: Select all
return {
on = {
timer = { 'every 1 minutes'}
},
execute = function(domoticz)
local smart_led_ip = '192.168.1.146' --replace by the ip address of your smart led messenger
local static = 0 -- change to 0 if you want scrolling text
local sensor1 = domoticz.devices('Corona nakazení SK')
local tempe1 = math.floor(sensor1.counter + 0.5)
local sensor2 = domoticz.devices('Corona nakazení vo svete')
local tempe2 = math.floor(sensor2.counter + 0.5)
local url = 'http://'..smart_led_ip..'/?message=Corona-nakazeni-SK:'..tempe1..'_ludi_Corona-SVET:'..tempe2..'_ludi&intensity=1&speed=50&static='..static
domoticz.openURL(url)
--domoticz.openURL('http://'..smart_led_ip..'static=0&local=0').afterSec(30)
-- remove the -- from line above if you want to turn off the screen after 30 seconds
end
}Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
Perfect thank you very much.
- laco
- Posts: 86
- Joined: Tuesday 30 October 2018 12:57
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: Slovensko
- Contact:
Re: Smart Led Messenger
I added a reading from Custom Sensor, how do I set it up correctly?
Reporting error
2020-03-26 18:56:00.449 Error: dzVents: Error: (3.0.1) An error occurred when calling event handler Script #9 SLM CORONA
2020-03-26 18:56:00.449 Error: dzVents: Error: (3.0.1) ...ripts/dzVents/generated_scripts/Script #9 SLM CORONA.lua:15: attempt to perform arithmetic on a nil value (field 'customsensor')
Code: Select all
local sensor3 = domoticz.devices('Dnes nakazený SK')
local tempe3 = math.floor(sensor3.customsensor + 0.5)Reporting error
2020-03-26 18:56:00.449 Error: dzVents: Error: (3.0.1) An error occurred when calling event handler Script #9 SLM CORONA
2020-03-26 18:56:00.449 Error: dzVents: Error: (3.0.1) ...ripts/dzVents/generated_scripts/Script #9 SLM CORONA.lua:15: attempt to perform arithmetic on a nil value (field 'customsensor')
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Smart Led Messenger
you can dolaco wrote: Thursday 26 March 2020 18:57 I added a reading from Custom Sensor, how do I set it up correctly?
Code: Select all
local sensor3 = domoticz.devices('Dnes nakazený SK')
local tempe3 = math.floor(tonumber(sensor3.rawData[1]) + 0.5)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: Google [Bot] and 1 guest