HTTP request -> LCD??

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bastibasti
Normal user
Posts: 25
Joined: 31 Jul 2018, 11:41

HTTP request -> LCD??

#1 Post by bastibasti » 23 Jul 2019, 19:29

Hi,

is it possible to display the data received from a http request on a attached display? For example a rule runs every hour or so and requests http://whatever/display1234

the result will be plain text "123456"

can I display this value on the LCD or 7 segment??

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

Re: HTTP request -> LCD??

#2 Post by grovkillen » 23 Jul 2019, 22:24

Currently no. The standard way is to POST to the unit. But you're suggesting that the unit itself should GET?
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:

User avatar
dynamicdave
Normal user
Posts: 257
Joined: 30 Jan 2017, 20:25
Location: Hampshire, UK

Re: HTTP request -> LCD??

#3 Post by dynamicdave » 24 Jul 2019, 08:49

Hi,
I've been using MQTT to publish messages( i.e. temperature values and supporting text like "Too Hot", "OK", "Too Cold") to a miniature OLED I2C module (connected to an Wemos Mini D1 ESP8266).

I know it's not HTTP but MQTT works really well on the ESP8266 with ESP Easy (and a Raspberry Pi etc...).

I set the "Topic" entry of the MQTT-Out node in the Raspberry Pi to... <node_name>/cmd
e.g. wemos22/cmd

The MQTT-Out node was driven from a Function node (in the RPi) which setup the payload.
e.g. msg.payload = "oled,1,1,fred";
return msg;

The 1 and 1 are the row and column parameters for the OLED.
Please note the values for 'row' and 'col' start at 1 NOT 0 as in many array-element naming conventions,
Fred is just a piece of text.

If you wanted to send a value then use...

msg.payload = "oled, 0,0" + name_of_variable;
return msg;

You could put all the settings in the Function node and leave the MQTT node empty (apart from the MQTT server setting).
e.g.
msg.topic = "wemos22/cmd";
msg.payload="oled,0,0,hello world";
return msg;

Hope this helps.

bastibasti
Normal user
Posts: 25
Joined: 31 Jul 2018, 11:41

Re: HTTP request -> LCD??

#4 Post by bastibasti » 24 Jul 2019, 09:58

mmhh,

thanks. If GET isnt currently supported, I think I will implement this using the AT firmware and an external arduino or something.

Goal is to get displayed values from an existing server by http, tcp or udp telnet. Push is not possible, since the esp module is not inside my network ;-)

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests