Read html or json...from website

Moderators: Voyager, BertB, rtenklooster, Stuntteam, Martinus, grovkillen, TD-er

Post Reply
Message
Author
budda85
Normal user
Posts: 5
Joined: 29 Mar 2017, 20:24

Read html or json...from website

#1 Post by budda85 » 13 Sep 2018, 13:28

Hi,
is there a way to read html or json or another text from a website?
for example: i want to read every 15 seconds a website and if there is an event or an special text/value, i want to switch on a lamp.

thanks and greetings
Jan

User avatar
grovkillen
Normal user
Posts: 1897
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Read html or json...from website

#2 Post by grovkillen » 13 Sep 2018, 14:49

Not currently. Please elaborate more :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
enesbcs
Normal user
Posts: 202
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Read html or json...from website

#3 Post by enesbcs » 13 Sep 2018, 16:01

Interesting idea. Such a plugin can be made in my opinion. Question is how to make it generally usable one.
Can you concretize with some examples?

User avatar
grovkillen
Normal user
Posts: 1897
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Read html or json...from website

#4 Post by grovkillen » 13 Sep 2018, 18:24

I've been thinking about this one and it would be a really useful feature I think. It might be two different plugins, one JSON parser and one RegEx parser.

Please add it as a feature request on GitHub.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Normal user
Posts: 1897
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Read html or json...from website

#5 Post by grovkillen » 13 Sep 2018, 20:39

I just throw this link here for reference if this feature request get attention :)

https://forum.arduino.cc/index.php?topic=59917.0
Attachments
Regexp.zip
(15.26 KiB) Downloaded 3 times
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Sponsor ESP Easy, we need you :idea: :idea: :idea:

budda85
Normal user
Posts: 5
Joined: 29 Mar 2017, 20:24

Re: Read html or json...from website

#6 Post by budda85 » 13 Sep 2018, 21:04

Oh nice, there is interest. :)

I work at a fire department and in an case of an alert in the night, i can send automatic an event or an value to an website.
So i can build some ESPs an give it to my mates. Every ESP is checking the website and when there is an alert, the ESP can switch on an little light so nobody stumbles through the house at night.

I find your ideas with JSON parser and the RegEx parser very well.

I will add an request tommorow in the morning. :D

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests