This page last changed on Jan 13, 2014 by landlingerg.

Hello Boys and Girls,

Now i have a new project to read a value from my photovoltaik System.
The Pico 5.5 from Kostal have a webserver on which i have connection.
Now i have seen that it is possible to read the information about the different values directly from the http site.
But i have the problem with the correct command for regex!

a part of the html answer with get in open remote:
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<meta name="Generator" CONTENT="ChrisB">
<title>PV Webserver</title>
</head>
<body nof="(MB=(DefaultMasterborder, 65, 60, 150, 10), L=(HomeLayout, 700, 600))" bgcolor="#EAF7F7" text="#000000" link="#0033CC" vlink="#990099" alink="#FF0000" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
<form method="post" action="">
<table cellspacing="0" cellpadding="0" width="770" nof="ly">
<tr><td height="5"></td></tr>
<tr><td width="190" height="55"></td>
<td width="400">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif" size="+3">
PIKO 5.5
<br><font size="+1">
Piko (255)
</font>
</font>
</td>
<td><img alt="Logo" height="42" width="130" src="KSE.gif"></td>
</tr>
</table>

<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<table Border="0" width="100%"><tr>
<td width="150"></td>
<td> <hr> </td>
</tr></table>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td></td></tr>
<tr>
<td width="190"></td>
<td colspan="2">
<b>AC-Leistung</b></td>
<td>&nbsp</td>
<td>
<b>Energie</b></td></tr>
<tr><td height="10"></td></tr>

<tr>
<td width="190"></td>
<td width="100">
aktuell</td>
<td width="70" align="right" bgcolor="#FFFFFF">
x x x&nbsp</td>
<td width="140">&nbsp W</td>
<td width="100">
Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
11819</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
&nbsp</td>
<td width="70" align="right">
&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
Tagesenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
10.87</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
..........

now i need the information: 11819
Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
11819</td>

How i could get them with a regular expression?

I hope someone could help me.

Thanks for this great Project OpenRemote. I like it very much and had spend a lot of time in my own Remote Control Project.
When I am finish with my project i post the details!!!!!

(Remotecontrol Project: Neutrino, Pioneer VSX921, Vimar KNX System, Piko Photovoltaik,....)

Regards Günther


This regex should do it:

(?s)Gesamtenergie.*>\s*(\d+)</td>.*
Posted by aktur at Jan 13, 2014 16:56

Hello Michal

Thank you for your help but it does not work.
Regular expressions are realy crazy!

I have experience with vb, scripting and a lot of Other IT areas..... But this is a higher level. I spend a half day to understand regexp, but currently with moderate success.
I will not give up, as it is very interesting for me.

An additional information for you is that the value of "Gesamtenergie" changes every polling interval and the formatting of the html text display not correct in this forum. Missing blank....I think they are important for the regexp.

Tomorrow morning i will post a picture from the html text.

Additional i need the changeable variable from "aktuell". It is about "Gesamtenergie"

Can you explain me the way you defined the regexp?
How i can create regexp myself. Do you have any informations for me?
The most importand, used commands or something else.

Thank you very much for your help!
Best Regards Günther

Posted by landlingerg at Jan 13, 2014 21:05

Hello Michal

after a lot of read, try and error i think i have it:
but now i know that also your code is correct!

(?s)Gesamtenergie.?\s.?>\s*(\d+)</td>

Now i understand the format!

Can you give me a tip why i can show the information at the UI.
I tried it with an custom sensor. Which value i have to use?
i tried different setting but it do not work.

regards günther

Posted by landlingerg at Jan 14, 2014 01:11

I assume that you are asking how you can show the information in UI. Anyway, follow these steps:
1. create a command which reads a value from the device.
2. create a sensor which uses the command. Usually the best choice is a sensor of type custom.
3. in the UI designer place a label and link it to the sensor.

Tip: for regex design there is a very good page available http://www.regexplanet.com/advanced/java/index.html

Posted by aktur at Jan 14, 2014 08:20

I know The steps to create command and sensor, but how i can define the custom parameter at the sensor?
Name= ????
Value= ???

With which command i can read the group1, group2....
Which value i need for the sensor.

Posted by landlingerg at Jan 14, 2014 08:30

You may use the custom sensor without string name and value. The received string is than just passed through
Designer 2.0 - Create Custom Sensor

PS: I read somewhere on a Dutch website that people did read data directly in a database. They did use some information from the supplier under a non disclosure agreement. Getting at the raw data instead of parsing a webpage is a more robust solution for the future. You may look around on other fora. You need some skills to do this however.

I was fortunate enough to get a logger from a small company who were willing to place some raw data in an XML file on the logger and added some extra data for me.

Posted by pz1 at Jan 14, 2014 09:20

OK but now i get an error in the sensor.log

WARN 2014-01-14 10:35:29,704 : Event producer bound to sensor (ID = 3,694,921) returned a value that is not consistent with sensor's datatype : setting sensor value to 'N/A'

Any idea?
Could it be that the regexp is not correct?

regards

Posted by landlingerg at Jan 14, 2014 09:43

What result do you get from regex test that Michal suggested? A screendump from your sensor definition may help too.

Posted by pz1 at Jan 14, 2014 10:55

I think i test since 10 hours! Now i learned a lot of new things about regex.
The problem i couldn's solve!

The last Test i made with the following Regex: (I think it should work but i get no value - always
(?s)Gesamtenergie.?\s.?>\s*(\d+)</td>

dev.log:

2014-01-14 14:12:40,568 DEBUG [Polling Sensor Thread ID = 3694920, Name ='og alle raff sensor']: Polling device status for [FRAME] L_Data.req 0.0.0 -> 1/7/210 Data: 0x00
2014-01-14 14:12:40,568 INFO [Polling Sensor Thread ID = 3694920, Name ='og alle raff sensor']: KNX connection not available.
2014-01-14 14:12:40,569 WARN [Polling Sensor Thread ID = 3694920, Name ='og alle raff sensor']: Event producer bound to sensor (ID = 3,694,920) returned a value that is not consistent with sensor's datatype :   setting sensor value to 'N/A'
2014-01-14 14:12:40,570 TRACE [Polling Sensor Thread ID = 3694920, Name ='og alle raff sensor']: Processed , received N/A
2014-01-14 14:12:40,852 INFO [Polling thread for sensor: Gesamtertrag Sensor]: received message: <!DOCtype HTML PUBLIC "-//W3C//Dtd HTML 4.0 Transitional//EN">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<meta name="Generator" CONTENT="ChrisB">
<title>PV Webserver</title>
</head>
<body nof="(MB=(DefaultMasterborder, 65, 60, 150, 10), L=(HomeLayout, 700, 600))" bgcolor="#EAF7F7" text="#000000" link="#0033CC" vlink="#990099" alink="#FF0000" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
<form method="post" action="">
<table cellspacing="0" cellpadding="0" width="770" nof="ly">
<tr><td height="5"></td></tr>
<tr><td width="190" height="55"></td>
<td width="400">
  <font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif" size="+3">
  PIKO 5.5
<br><font size="+1">                 
  Piko (255)
</font>
</font>
</td>
<td><img alt="Logo" height="42" width="130" src="KSE.gif"></td>
</tr>
</table>

<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<table Border="0" width="100%"><tr>
<td width="150"></td>
<td> <hr> </td>
</tr></table>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td></td></tr>
<tr>
<td width="190"></td>
<td colspan="2">
  <b>AC-Leistung</b></td>
<td>&nbsp</td>
<td>
  <b>Energie</b></td></tr>
<tr><td height="10"></td></tr>

<tr>
<td width="190"></td>
<td width="100">
  aktuell</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  145</td>
<td width="140">&nbsp W</td>
<td width="100">
  Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  11821</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  &nbsp</td>
<td width="70" align="right">
  &nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  Tagesenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  2.42</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="5"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Status</td>
<td colspan="4">
  Einspeisen MPP</td>
<td>&nbsp</td></tr>
<tr height="8"><td></td></tr>
<tr><td colspan="7">
<table align="top" width="100%"><tr>
<td width="182"></td>
<td><hr size="1"></font></td></tr>
<tr><td height="5"></td></tr></table>
</td></tr>
<tr>
<td width="190"></td>
<td colspan="2">
  <b>PV-Generator</b></td>
<td width="140">&nbsp</td>
<td colspan="2">
  <b>Ausgangsleistung</b></td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr><td height="10"></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 1</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="95">
  <u>L1</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  289</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  225</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  0.32</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  0</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 2</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L2</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  293</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  228</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  0.32</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  0</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 3</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L3</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  0</td>
<td width="140">&nbsp
  V</td>
<td width="95">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  228</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="95">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  0.00</td>
<td width="140">&nbsp
A</td>
<td width="95">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  145</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>

<tr><td height="15"></td></tr>
<tr><td colspan="7">
<table align="top" width="100%">
<tr><td width="182"></td>
<td><hr size="1"></font></td>
</tr><tr><td height="5"></td></tr></table>
</td></tr></table>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
<b>RS485 Kommunikation</b></td></tr>
<tr><td height="8"></td></tr>
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
Wechselrichter&nbsp
<input type="Text" name="edWrNr" value="255" size="3" maxlength="3">
<input type="submit" value="Anzeigen/Aktualisieren">
</td></tr><tr><td height="10"></td></tr>
</table>
</td></tr></table></font>

<hr>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td height="5"></td></tr>
<tr><td width="190"></td>
<td width="330">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="LogDaten.dat">Historie</a>
&nbsp &nbsp &nbsp
<a href="Info.fhtml">Infoseite</a></font></td>
<td align="right">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="Solar2.fhtml">Einstellungen</a></font></td>
<td width="50"></td>
</tr></table></font>
</form>
</body>
</html>
2014-01-14 14:12:40,859 INFO [Polling thread for sensor: Gesamtertrag Sensor]: result of regex evaluation: Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  11821</td>
2014-01-14 14:12:40,860 TRACE [Polling thread for sensor: Gesamtertrag Sensor]: Processed Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  11821</td>, received Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  11821</td>
2014-01-14 14:12:41,048 DEBUG [Polling Sensor Thread ID = 3694922, Name ='eg alle lamelle sensor']: Polling device status for [FRAME] L_Data.req 0.0.0 -> 1/6/1 Data: 0x00
2014-01-14 14:12:41,049 INFO [Polling Sensor Thread ID = 3694922, Name ='eg alle lamelle sensor']: KNX connection not available.
2014-01-14 14:12:41,050 WARN [Polling Sensor Thread ID = 3694922, Name ='eg alle lamelle sensor']: Event producer bound to sensor (ID = 3,694,922) returned a value that is not consistent with sensor's datatype :   setting sensor value to 'N/A'
2014-01-14 14:12:41,051 TRACE [Polling Sensor Thread ID = 3694922, Name ='eg alle lamelle sensor']: Processed , received N/A

sensor.log: with a lot off Errors

:12:35,187 : Started polling thread for sensor (ID = 3,694,922, name = eg alle lamelle sensor).
INFO 2014-01-14 14:12:35,187 : Started polling thread for sensor (ID = 3,694,737, name = kueche licht sensor).
INFO 2014-01-14 14:12:35,198 : Started polling thread for sensor (ID = 3,694,921, name = eg alle raff sensor).
INFO 2014-01-14 14:12:35,197 : Started polling thread for sensor (ID = 3,694,920, name = og alle raff sensor).
WARN 2014-01-14 14:12:35,259 : Event producer bound to sensor (ID = 3,694,920) returned a value that is not consistent with sensor's datatype :   setting sensor value to 'N/A'
WARN 2014-01-14 14:12:35,265 : Event producer bound to sensor (ID = 3,694,921) returned a value that is not consistent with sensor's datatype :   setting sensor value to 'N/A'
WARN 2014-01-14 14:12:35,287 : Event producer bound to sensor (ID = 3,694,922) returned a value that is not consistent with sensor's datatype :   setting sensor value to 'N/A'
WARN 2014-01-14 14:12:35,288 : Event producer bound to sensor (ID = 3,694,737) returned a value that is not consistent with sensor's datatype :   setting sensor value to 'N/A'
WARN 2014-01-14 14:12:35,810 : Event producer bound to sensor (ID = 3,694,737) returned a value that is not consistent with sensor's datatype :   setting sensor value to 'N/A'

Could it be that OpenRemote do not know that they should use the Group and not the whole Kontext??

I Test the Regex with "The Regex Coach"

I hope everybody could help me.

regards
Günther

Posted by landlingerg at Jan 14, 2014 13:23

Could you please edit your last post and enclose your code fragments within {code}..{code} tags (see markup instructions). That makes it easier to read. Do not place a / inside the end tag.

Posted by pz1 at Jan 14, 2014 13:30

Can you show the command definition (protocol and fields) which you are using?

Posted by aktur at Jan 14, 2014 14:36

Code now readable

Posted by landlingerg at Jan 14, 2014 15:11

picture are posted

Posted by landlingerg at Jan 14, 2014 17:06

Result with the regex from Michal suggested:

2014-01-14 23:14:23,455 INFO [Polling thread for sensor: Gesamtertrag Sensor]: received message: <!DOCtype HTML PUBLIC "-//W3C//Dtd HTML 4.0 Transitional//EN">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<meta name="Generator" CONTENT="ChrisB">
<title>PV Webserver</title>
</head>
<body nof="(MB=(DefaultMasterborder, 65, 60, 150, 10), L=(HomeLayout, 700, 600))" bgcolor="#EAF7F7" text="#000000" link="#0033CC" vlink="#990099" alink="#FF0000" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
<form method="post" action="">
<table cellspacing="0" cellpadding="0" width="770" nof="ly">
<tr><td height="5"></td></tr>
<tr><td width="190" height="55"></td>
<td width="400">
  <font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif" size="+3">
  PIKO 5.5
<br><font size="+1">                 
  Piko (255)
</font>
</font>
</td>
<td><img alt="Logo" height="42" width="130" src="KSE.gif"></td>
</tr>
</table>

<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<table Border="0" width="100%"><tr>
<td width="150"></td>
<td> <hr> </td>
</tr></table>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td></td></tr>
<tr>
<td width="190"></td>
<td colspan="2">
  <b>AC-Leistung</b></td>
<td>&nbsp</td>
<td>
  <b>Energie</b></td></tr>
<tr><td height="10"></td></tr>

<tr>
<td width="190"></td>
<td width="100">
  aktuell</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp W</td>
<td width="100">
  Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  11821</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  &nbsp</td>
<td width="70" align="right">
  &nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  Tagesenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  2.59</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="5"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Status</td>
<td colspan="4">
  Aus</td>
<td>&nbsp</td></tr>
<tr height="8"><td></td></tr>
<tr><td colspan="7">
<table align="top" width="100%"><tr>
<td width="182"></td>
<td><hr size="1"></font></td></tr>
<tr><td height="5"></td></tr></table>
</td></tr>
<tr>
<td width="190"></td>
<td colspan="2">
  <b>PV-Generator</b></td>
<td width="140">&nbsp</td>
<td colspan="2">
  <b>Ausgangsleistung</b></td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr><td height="10"></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 1</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="95">
  <u>L1</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 2</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L2</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 3</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L3</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp
  V</td>
<td width="95">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="95">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp
A</td>
<td width="95">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>

<tr><td height="15"></td></tr>
<tr><td colspan="7">
<table align="top" width="100%">
<tr><td width="182"></td>
<td><hr size="1"></font></td>
</tr><tr><td height="5"></td></tr></table>
</td></tr></table>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
<b>RS485 Kommunikation</b></td></tr>
<tr><td height="8"></td></tr>
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
Wechselrichter&nbsp
<input type="Text" name="edWrNr" value="255" size="3" maxlength="3">
<input type="submit" value="Anzeigen/Aktualisieren">
</td></tr><tr><td height="10"></td></tr>
</table>
</td></tr></table></font>

<hr>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td height="5"></td></tr>
<tr><td width="190"></td>
<td width="330">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="LogDaten.dat">Historie</a>
&nbsp &nbsp &nbsp
<a href="Info.fhtml">Infoseite</a></font></td>
<td align="right">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="Solar2.fhtml">Einstellungen</a></font></td>
<td width="50"></td>
</tr></table></font>
</form>
</body>
</html>
2014-01-14 23:14:23,462 INFO [Polling thread for sensor: Gesamtertrag Sensor]: result of regex evaluation: Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  11821</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  &nbsp</td>
<td width="70" align="right">
  &nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  Tagesenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  2.59</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="5"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Status</td>
<td colspan="4">
  Aus</td>
<td>&nbsp</td></tr>
<tr height="8"><td></td></tr>
<tr><td colspan="7">
<table align="top" width="100%"><tr>
<td width="182"></td>
<td><hr size="1"></font></td></tr>
<tr><td height="5"></td></tr></table>
</td></tr>
<tr>
<td width="190"></td>
<td colspan="2">
  <b>PV-Generator</b></td>
<td width="140">&nbsp</td>
<td colspan="2">
  <b>Ausgangsleistung</b></td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr><td height="10"></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 1</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="95">
  <u>L1</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 2</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L2</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 3</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L3</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp
  V</td>
<td width="95">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="95">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp
A</td>
<td width="95">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>

<tr><td height="15"></td></tr>
<tr><td colspan="7">
<table align="top" width="100%">
<tr><td width="182"></td>
<td><hr size="1"></font></td>
</tr><tr><td height="5"></td></tr></table>
</td></tr></table>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
<b>RS485 Kommunikation</b></td></tr>
<tr><td height="8"></td></tr>
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
Wechselrichter&nbsp
<input type="Text" name="edWrNr" value="255" size="3" maxlength="3">
<input type="submit" value="Anzeigen/Aktualisieren">
</td></tr><tr><td height="10"></td></tr>
</table>
</td></tr></table></font>

<hr>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td height="5"></td></tr>
<tr><td width="190"></td>
<td width="330">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="LogDaten.dat">Historie</a>
&nbsp &nbsp &nbsp
<a href="Info.fhtml">Infoseite</a></font></td>
<td align="right">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="Solar2.fhtml">Einstellungen</a></font></td>
<td width="50"></td>
</tr></table></font>
</form>
</body>
</html>
2014-01-14 23:14:23,463 TRACE [Polling thread for sensor: Gesamtertrag Sensor]: Processed Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  11821</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  &nbsp</td>
<td width="70" align="right">
  &nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  Tagesenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  2.59</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="5"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Status</td>
<td colspan="4">
  Aus</td>
<td>&nbsp</td></tr>
<tr height="8"><td></td></tr>
<tr><td colspan="7">
<table align="top" width="100%"><tr>
<td width="182"></td>
<td><hr size="1"></font></td></tr>
<tr><td height="5"></td></tr></table>
</td></tr>
<tr>
<td width="190"></td>
<td colspan="2">
  <b>PV-Generator</b></td>
<td width="140">&nbsp</td>
<td colspan="2">
  <b>Ausgangsleistung</b></td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr><td height="10"></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 1</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="95">
  <u>L1</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 2</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L2</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 3</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L3</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp
  V</td>
<td width="95">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="95">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp
A</td>
<td width="95">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>

<tr><td height="15"></td></tr>
<tr><td colspan="7">
<table align="top" width="100%">
<tr><td width="182"></td>
<td><hr size="1"></font></td>
</tr><tr><td height="5"></td></tr></table>
</td></tr></table>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
<b>RS485 Kommunikation</b></td></tr>
<tr><td height="8"></td></tr>
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
Wechselrichter&nbsp
<input type="Text" name="edWrNr" value="255" size="3" maxlength="3">
<input type="submit" value="Anzeigen/Aktualisieren">
</td></tr><tr><td height="10"></td></tr>
</table>
</td></tr></table></font>

<hr>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td height="5"></td></tr>
<tr><td width="190"></td>
<td width="330">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="LogDaten.dat">Historie</a>
&nbsp &nbsp &nbsp
<a href="Info.fhtml">Infoseite</a></font></td>
<td align="right">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="Solar2.fhtml">Einstellungen</a></font></td>
<td width="50"></td>
</tr></table></font>
</form>
</body>
</html>
, received Gesamtenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  11821</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  &nbsp</td>
<td width="70" align="right">
  &nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  Tagesenergie</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  2.59</td>
<td width="50">&nbsp kWh</td>
<td>&nbsp</td></tr>
<tr height="5"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Status</td>
<td colspan="4">
  Aus</td>
<td>&nbsp</td></tr>
<tr height="8"><td></td></tr>
<tr><td colspan="7">
<table align="top" width="100%"><tr>
<td width="182"></td>
<td><hr size="1"></font></td></tr>
<tr><td height="5"></td></tr></table>
</td></tr>
<tr>
<td width="190"></td>
<td colspan="2">
  <b>PV-Generator</b></td>
<td width="140">&nbsp</td>
<td colspan="2">
  <b>Ausgangsleistung</b></td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr><td height="10"></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 1</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="95">
  <u>L1</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 2</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L2</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp V</td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="100">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp A</td>
<td width="100">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>
<tr height="22"><td></td></tr>
<tr>
<td width="190"></td>
<td width="100">
  <u>String 3</u></td>
<td width="70">&nbsp</td>
<td width="140">&nbsp</td>
<td width="100">
  <u>L3</u></td>
<td width="70">&nbsp</td>
<td width="30">&nbsp</td>
<td>&nbsp</td></tr>
<tr>
<td width="190"></td>
<td width="100">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp
  V</td>
<td width="95">
  Spannung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp V</td>
<td>&nbsp</td></tr>
<tr height="2"><td></td></tr>
<tr valign="top" align="left">
<td width="190">&nbsp</td>
<td width="95">
  Strom</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="140">&nbsp
A</td>
<td width="95">
  Leistung</td>
<td width="70" align="right" bgcolor="#FFFFFF">
  x x x&nbsp</td>
<td width="30">&nbsp W</td>
<td>&nbsp</td></tr>

<tr><td height="15"></td></tr>
<tr><td colspan="7">
<table align="top" width="100%">
<tr><td width="182"></td>
<td><hr size="1"></font></td>
</tr><tr><td height="5"></td></tr></table>
</td></tr></table>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
<b>RS485 Kommunikation</b></td></tr>
<tr><td height="8"></td></tr>
<tr><td width="190"></td>
<td><font face="Arial,Helvetica,Geneva,Sans-serif">
Wechselrichter&nbsp
<input type="Text" name="edWrNr" value="255" size="3" maxlength="3">
<input type="submit" value="Anzeigen/Aktualisieren">
</td></tr><tr><td height="10"></td></tr>
</table>
</td></tr></table></font>

<hr>
<table cellspacing="0" cellpadding="0" width="770">
<tr><td height="5"></td></tr>
<tr><td width="190"></td>
<td width="330">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="LogDaten.dat">Historie</a>
&nbsp &nbsp &nbsp
<a href="Info.fhtml">Infoseite</a></font></td>
<td align="right">
<font face="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
<a href="Solar2.fhtml">Einstellungen</a></font></td>
<td width="50"></td>
</tr></table></font>
</form>
</body>
</html>
Posted by landlingerg at Jan 14, 2014 22:19

Posted by landlingerg at Jan 14, 2014 22:32

It seems that this command does not return group when regex match but rather the whole match. Therefore the only option for 5 digit number would be to regex

\d{5}

However, as you are fetching the whole page this can give you false match(es).

Posted by aktur at Jan 15, 2014 08:53

Sorry it do not work correct!
I test it i think with 50 different Regex Commands! Allways the same misstake!

Could it be that Regex for HTTP is faulty?
Could it be thet Regex for HTTP in OpenRemote only can handle one Array??

I test the Regex Syntax with different Tester and always i get the correct result!

Can i use Xpath for an HTML Site????

Can you say me if the groups of the following Test are OK?


Posted by landlingerg at Jan 15, 2014 09:17

I've checked the code and the HTTP protocol indeed returns matcher.group(), i.e. the whole match and not a group. The code need to be changed for your needs. This patch in HttpGetCommand.java should do it:

          Pattern regexPattern = Pattern.compile(regex);
          Matcher matcher = regexPattern.matcher(readValue);
          if (matcher.find()) {
            String result;   
            if (matcher.groupCount() > 0) {
              result = matcher.group(1);
            } else {
              result = matcher.group();
            }
            logger.info("result of regex evaluation: " + result);
            sensor.update(result);
          } else {
            logger.info("regex evaluation did not find a match");
            sensor.update("N/A");
          }
Posted by aktur at Jan 16, 2014 09:11

Interesting thread! As I stated in an earlier post here, harvesting data from a webpage has some dangers. However sometimes it is the only choice one has.
This is good basic material for a "How To Use HTML Data Sources" page comaparable to the one on XML.

Posted by pz1 at Jan 16, 2014 10:49

Fyi

The path at the synology

/volume1/@appstore/OpenRemote/webapps/controller/WEB-INF/classes/org/openremote/controller/protocol/http/HttpGetCommand.class

Posted by landlingerg at Jan 16, 2014 15:04

Good Morning Michal,

Can i make the patch myself? I try it and now i will hang when i try to compile HttpGetCommand.java.
I'm only a developer with basic knowledge.
Additional i have see that different appache files required to compile the changed HttpGetCommand.java file.

regards Günther

Posted by landlingerg at Jan 17, 2014 07:55

Yes, you can do it yourself. You need to make a custom build. The steps how to do it are here http://www.openremote.org/display/docs/Building+OpenRemote+2.0+Developer+Releases
The page is a bit out-of-date but can you give some hints. The process is actually very simple:

1. svn checkout the source code you want to use for build
2. modify the java file(s)
3. run ant
4. in the output directory you will find the zip file of the new controller build.

Posted by aktur at Jan 17, 2014 10:00

It is really tricky.
How i can compile at a win7 pc a new controller build for the synology212j?
When i copy the new compiled build to the synology nothing is working.

Posted by landlingerg at Jan 18, 2014 00:29

FWIW: Are you aware of the Synology thrid party developers guide It may have platform relevant information. It was helpful for me as a total noob for the compilation of Zwave drivers a couple of years ago.

Posted by pz1 at Jan 18, 2014 08:15

When i copy the new compiled build to the synology nothing is working.

Please be more specific about "nothing". Myself, I am very weak in helping solving absolutes

Even better, describe what you did, what you expected to achieve and what was the result.

Posted by aktur at Jan 18, 2014 09:29

Hi Michal,

Now i solved all problems. Thank you very much for your help.

The first problem was the java Version! I used java 6 at the synology and compiled it with my windows pc with java 7.
Now i use a nx8220 HP Notebook as OR Controller.
It is more easier for me because my linux know how could be better.
The nx8220 Laptop is installed with win7 and needs 18W Power.(for me this is perfect)

I made the source changes and compile a new OR System...... Now it works perfect.

For all new OR-Users i think it is important to work with java6. I had big problems with java7.
When i defined a rule all sensors of the controller blocked!
With java6 it works perfect.

Regards Günther

Posted by landlingerg at Jan 25, 2014 15:31
Document generated by Confluence on Jun 05, 2016 09:38