mqtt import value on display

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
vito3
Normal user
Posts: 10
Joined: 30 Jun 2018, 20:13

mqtt import value on display

#1 Post by vito3 » 30 Jun 2018, 20:29

hello,
I need to take a temperature value from a mqtt broker
I used to test test.mosquitto.org.
With mqtt import I managed to import the value.
How can I now send the value to the display connected to espeasy?
attached images
thanks
Attachments
ESP_device.png
ESP_device.png (51.25 KiB) Viewed 7279 times
esp_controller.png
esp_controller.png (48.01 KiB) Viewed 7279 times

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt import value on display

#2 Post by grovkillen » 30 Jun 2018, 20:34

And you have studied the wiki?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

vito3
Normal user
Posts: 10
Joined: 30 Jun 2018, 20:13

Re: mqtt import value on display

#3 Post by vito3 » 30 Jun 2018, 20:50

yes

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt import value on display

#4 Post by grovkillen » 30 Jun 2018, 22:03

Given that your display is an OLED:
https://www.letscontrolit.com/wiki/inde ... LEDDisplay

Given that your display is (simple) LCD:
https://www.letscontrolit.com/wiki/index.php/LCDDisplay

Use the commands together with rules:
https://www.letscontrolit.com/wiki/inde ... rial_Rules
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

vito3
Normal user
Posts: 10
Joined: 30 Jun 2018, 20:13

Re: mqtt import value on display

#5 Post by vito3 » 30 Jun 2018, 22:45

can you help me with the rules?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt import value on display

#6 Post by grovkillen » 30 Jun 2018, 22:46

First off, what display of are you using?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

vito3
Normal user
Posts: 10
Joined: 30 Jun 2018, 20:13

Re: mqtt import value on display

#7 Post by vito3 » 30 Jun 2018, 23:05

The 2004

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt import value on display

#8 Post by grovkillen » 01 Jul 2018, 07:43

Code: Select all

On extmqtt#Value1 do
  LCD,1,1,[extmqtt#Value1] //LCD,<row>,<col>,<text>
EndOn
But as you see here: https://www.letscontrolit.com/wiki/index.php/LCDDisplay you can do this directly in the LCD settings page as well.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

vito3
Normal user
Posts: 10
Joined: 30 Jun 2018, 20:13

Re: mqtt import value on display

#9 Post by vito3 » 01 Jul 2018, 07:53

Thanks

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 26 guests