Page 1 of 1

Read html or json...from website

Posted: 13 Sep 2018, 13:28
by budda85
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

Re: Read html or json...from website

Posted: 13 Sep 2018, 14:49
by grovkillen
Not currently. Please elaborate more :)

Re: Read html or json...from website

Posted: 13 Sep 2018, 16:01
by enesbcs
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?

Re: Read html or json...from website

Posted: 13 Sep 2018, 18:24
by grovkillen
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.

Re: Read html or json...from website

Posted: 13 Sep 2018, 20:39
by grovkillen
I just throw this link here for reference if this feature request get attention :)

https://forum.arduino.cc/index.php?topic=59917.0

Re: Read html or json...from website

Posted: 13 Sep 2018, 21:04
by budda85
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