The following project:
I have 5x ESP8255 scattered in and out of the house. All of them are equipped with ESP_Easy.
They measure temperature, humidity, air pressure, light and water temperatures from hot water, heating (VL/RL) and solar (VL/RL).
All data is sent via MQTT to a Raspi4 and for years in to ThingSpeak.
IOBroker and Grafana are installed on the Raspi. Since the Raspi is equipped with a SSD instead of SD, everything runs stable.
Now I installed another ESP8266 with ESP_Easy and "Display - pxlBlck " 32x8. At the moment only the time is displayed.
Using the browser, messages can also be displayed, which scroll across the 8x32LEDs in a kind of ticker. http://192.168.0.120/tools?cmd=pbrntxt, ... estMessage,
Now I want, if e.g. the outside temperature from the ESP8266 http://192.168.0.37 (sensor) BMx280 are sent via MQTT to the Raspi, that they also go via Rules to the pxlBlck-ESP.
Unfortunately unsuccessful so far. Not even with a "Test Message" it works.
on MQTT#Connected do
SendToHTTP 192.168.0.120/tools?cmd=pbrntxt,0,0,255,0,0,0,50,0,TestMessage,
Endon
I have no experience with the rules.
What should it look like correctly?
pxlBlck Rules
Moderators: grovkillen, Stuntteam, TD-er
Re: pxlBlck Rules
The command are a bit picky in regard to having the correct number of arguments, and you have to provide the correct arguments as well, so your code could look like this:
But if the matrix display is connected to the same ESP, then you can leave out the SendToHTTP command, and use the 'pbrntxt...' directly.
Btw, where have you obtained that pxlBlck driver, or is it a RPiEasy driver, as I can't find it in the current ESPEasy of ESPEasyPluginPlayground repositories?
Code: Select all
on MQTT#Connected do
SendToHTTP 192.168.0.120,80,"/control?cmd=pbrntxt,0,0,255,0,0,0,50,0,TestMessage"
Endon
Btw, where have you obtained that pxlBlck driver, or is it a RPiEasy driver, as I can't find it in the current ESPEasy of ESPEasyPluginPlayground repositories?
/Ton (PayPal.me)
-
- New user
- Posts: 3
- Joined: 12 Apr 2020, 19:45
Re: pxlBlck Rules
Thank you very much, that works wonderfully.
What must the code look like if only the temperature value is to be displayed? (see attachment/image)
The pxlBlck driver is included in this image:
https://github.com/Nerdiyde/pxlBlck/blo ... lck_4M.bin
Thanks for the help!
What must the code look like if only the temperature value is to be displayed? (see attachment/image)
The pxlBlck driver is included in this image:
https://github.com/Nerdiyde/pxlBlck/blo ... lck_4M.bin
Thanks for the help!
- Attachments
-
- BMP.JPG (43.31 KiB) Viewed 9226 times
Re: pxlBlck Rules
In the data you are sending out, you can include sensor data by using this pattern:
So for your temperature you could use
The names are not case-sensitive.
Please have a look at the documentation on Rules, you can find the latest by clicking the (i) button at the top of the Rules page (the ? leads to the outdated wiki docs).
Edit: I not sure if the pxlBlck firmware is fully up to date with the latest ESPEasy version, so probably not all new features are available to you. The documentation link I'm referring to is this one: https://espeasy.readthedocs.io/en/lates ... Rules.html
Code: Select all
[<SensorName>#<ValueName>]
Code: Select all
[BME#Temperature]
Please have a look at the documentation on Rules, you can find the latest by clicking the (i) button at the top of the Rules page (the ? leads to the outdated wiki docs).
Edit: I not sure if the pxlBlck firmware is fully up to date with the latest ESPEasy version, so probably not all new features are available to you. The documentation link I'm referring to is this one: https://espeasy.readthedocs.io/en/lates ... Rules.html
/Ton (PayPal.me)
-
- New user
- Posts: 3
- Joined: 12 Apr 2020, 19:45
Re: pxlBlck Rules
Very nice, that's how it works:
Now I will try if I can get the Paspberry pi to send messages to the ESP8266 using Blockly.
Code: Select all
on MQTT#Connected do
SendToHTTP 192.168.0.120,80,"/control?cmd=pbrntxt,0,0,255,0,0,50,0,--->the-outside-temperature-->[BMP#Temperature]C"
Endon
Who is online
Users browsing this forum: No registered users and 2 guests