also tried to search, but no luck
is possible to read (JSON in my case) from some webpage (by HTTP GET) and get values from it?
I am still using my ESP's standalone without any "brain" (except sending data to web (and display them (and web provide last data in simple JSON)))
parse data from simple page [feature request]
Moderators: grovkillen, Stuntteam, TD-er
Re: parse data from simple page [feature request]
Located in Belgium, Bruges. Working on a full DIY domoticz setup with ESPEasy.
-
- New user
- Posts: 8
- Joined: 03 May 2017, 18:42
Re: parse data from simple page [feature request]
Possible, yes. I'm doing it on a new plugin that I'm developing but the problem is the possible complexity.
Could you give us a URL of a existing page and what EXACTLY you would like to read from it?
Re: parse data from simple page [feature request]
From *nix use wget and awk to parse the json.
If you want to use the variable in your script just use declare.
Regards,
Code: Select all
wget -qO- http://<device_ip>/json | awk '!/TaskName/ && /: /{x=gsub("[\",]","",$0);gsub(": ","=",$0);print}'
Code: Select all
declare $(wget -qO- http://<device_ip>/json | awk '!/TaskName/ && /: /{x=gsub("[\",]","",$0);gsub(": ","=",$0);print}')
Re: parse data from simple page [feature request]
https://tmep.mikrom.cz/loznice/vystup-json.php for examplesjfaustino wrote: ↑16 May 2017, 20:55Possible, yes. I'm doing it on a new plugin that I'm developing but the problem is the possible complexity.
Could you give us a URL of a existing page and what EXACTLY you would like to read from it?
Re: parse data from simple page [feature request]
dear all,
I saw this old post about "parse data from simple page", I'm interested about this, can you tell me if the plugin it was developed? If so can you tell me how I can do to implement it on ESPeasy?
thank you so much
ricc
I saw this old post about "parse data from simple page", I'm interested about this, can you tell me if the plugin it was developed? If so can you tell me how I can do to implement it on ESPeasy?
thank you so much
ricc
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 45 guests