Originally posted by jon00
View Post
Announcement
Collapse
No announcement yet.
Jon00 DataScraper/JSON Parser Script For Homeseer 3 and Homeseer 4
Collapse
This topic is closed.
X
This is a sticky topic.
X
X
-
Read out electricity consumption?
Hi,
I Have an EMC that reads the electricity consumption and now I want to read the fourth value from this page (http://192.168.1.135:81/emcData.xml) and set it as a status on a virtual device. I also want to remove all the zeros in the beginning if possible?.
The page looks like this
HTML Code:<emcData> <emcRecord> 2017-08-27 11:20:27 0006802072 00001396 000252 000101 000003 000003 </emcRecord> </emcData>
Is this possible with Jon00 DataScraper Script?
Best Regards
Martin
Comment
-
Where To Download?
Where can I download this script? I keep seeing everyone asking for config help and saying what a great script this is but I do not see a download link
I am trying to pull the Air Quality Index from the below webpage:
https://airnow.gov/index.cfm?action=...0007&submit=Go
Comment
-
Originally posted by SilentWolf View PostWhere can I download this script? I keep seeing everyone asking for config help and saying what a great script this is but I do not see a download link
I am trying to pull the Air Quality Index from the below webpage:
https://airnow.gov/index.cfm?action=...0007&submit=GoHS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by SilentWolf View PostWhere can I download this script? I keep seeing everyone asking for config help and saying what a great script this is but I do not see a download link
I am trying to pull the Air Quality Index from the below webpage:
https://airnow.gov/index.cfm?action=...0007&submit=Go
Code:Pattern1=(?s)TblInvisible.*?"middle">(.*?)</td>
Comment
-
Jon,
It appears what we were filtering on changed...
<td class="AQDataSectionTitle">
Air Quality Index (AQI)<br>
<small>observed at 12:00 MDT</small>
</td>
</tr>
<tr>
<td align="center">
<table class="TblInvisible" cellpadding="0" cellspacing="0"><tr><td>
<table class="TblInvisible" cellpadding="0" cellspacing="0" width="50">
<tr style="color:black;text-align:center;font-weight:200">
<td background="/images/aqi_mod_lg.gif" style="text-align:center" height="38" width="50" >
75
</td>
</tr>
</table></td>
<td class="AQDataLg">Moderate</td>
</tr></table>
</td>
</tr>
Is it possible to look for "AQDataLg" and grab that 75 number above it? I have not found another unique identifier that wouldn't change.
Comment
-
Hi All,
Jon - Thanks for another great plugin.
Im trying to extract the "in house temp"22.3 into homeseer, but im getting no where with regex.
Can anyone shed some light?
Code:{"user mode":"clock","clock program":"auto","in house status":"ok","in house temp":22.3,"hot water active":true,"boiler indicator":"off","control":"weather","temp override duration":0,"current switchpoint":32,"ps active":false,"powersave mode":false,"fp active":false,"fireplace mode":false,"temp override":false,"holiday mode":false,"boiler block":null,"boiler lock":null,"boiler maintenance":null,"temp setpoint":20,"temp override temp setpoint":22,"temp manual setpoint":24,"hed enabled":null,"hed device at home":null,"outdoor temp":13,"outdoor source type":"virtual"}
Comment
-
Originally posted by SilentWolf View PostJon,
It appears what we were filtering on changed...
<td class="AQDataSectionTitle">
Air Quality Index (AQI)<br>
<small>observed at 12:00 MDT</small>
</td>
</tr>
<tr>
<td align="center">
<table class="TblInvisible" cellpadding="0" cellspacing="0"><tr><td>
<table class="TblInvisible" cellpadding="0" cellspacing="0" width="50">
<tr style="color:black;text-align:center;font-weight:200">
<td background="/images/aqi_mod_lg.gif" style="text-align:center" height="38" width="50" >
75
</td>
</tr>
</table></td>
<td class="AQDataLg">Moderate</td>
</tr></table>
</td>
</tr>
Is it possible to look for "AQDataLg" and grab that 75 number above it? I have not found another unique identifier that wouldn't change.
Try this pattern:
Code:Pattern1=(?s)TblInvisible.*?td background.*?>(.*?)</td>
Comment
-
Originally posted by OliP View PostHi All,
Jon - Thanks for another great plugin.
Im trying to extract the "in house temp"22.3 into homeseer, but im getting no where with regex.
Can anyone shed some light?
Code:{"user mode":"clock","clock program":"auto","in house status":"ok","in house temp":22.3,"hot water active":true,"boiler indicator":"off","control":"weather","temp override duration":0,"current switchpoint":32,"ps active":false,"powersave mode":false,"fp active":false,"fireplace mode":false,"temp override":false,"holiday mode":false,"boiler block":null,"boiler lock":null,"boiler maintenance":null,"temp setpoint":20,"temp override temp setpoint":22,"temp manual setpoint":24,"hed enabled":null,"hed device at home":null,"outdoor temp":13,"outdoor source type":"virtual"}
Code:Pattern1=(?s)"in house temp":(.*?),"hot water active"
Comment
Comment