PLC data minning

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
menyiv
Posts: 2
Joined: Wednesday 05 December 2018 17:20
Target OS: Linux
Domoticz version:
Contact:

PLC data minning

Post by menyiv »

Hi all,

I have PLC driver tecomat of home heating. I want to read some sensors values from its web page.
Is here somebody who can show me the right way how to do it.

In my point of wiew it should be possible to parse data from web page and post them for MQTT or use python script in domoticz.
Maybe something based on python?

PLC has a web page with login
http://<IP address>/syswww/login.xml

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="LOGIN.XSL" version="1.0"?>
<LOGIN>
  <USER VALUE=""/>
  <PASS VALUE=""/>
  <ACER VALUE="0"/>
</LOGIN>
after login it offers xml data file
http://<IP address>/PAGE13.XML

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="PAGE13.XSL?U=1495705247" version="1.0" ?>
<PAGE TITLE="                                  ">
<ACCESS PAGE_LEVEL="0" USER_LEVEL="0" UCID="1495705247" />
<INPUT NAME="__R113963.0_BOOL_i" VALUE="0" />
<INPUT NAME="__R69519.2_BOOL_i" VALUE="1" />
<INPUT NAME="__R69686_STRING[80]_s" VALUE="22:20" />
<INPUT NAME="__R69767_STRING[80]_s" VALUE="02.02.2021" />
<INPUT NAME="__R103490.2_BOOL_i" VALUE="0" />
<INPUT NAME="__R69407.2_BOOL_i" VALUE="1" />
<INPUT NAME="__R85466.0_BOOL_i" VALUE="0" />
<INPUT NAME="__R69067_REAL_.1f" VALUE="43.0" />
<INPUT NAME="__R69319_REAL_.1f" VALUE="40.0" />
<INPUT NAME="__R68812.1_BOOL_i" VALUE="1" />
<INPUT NAME="__R68938.1_BOOL_i" VALUE="0" />
<INPUT NAME="__R99656_STRING[20]_s" VALUE="Topná sezóna" />
<INPUT NAME="__R69317.1_BOOL_i" VALUE="0" />
<INPUT NAME="__R45504_STRING[7]_s" VALUE="Porucha" />
<INPUT NAME="__R44275_STRING[7]_s" VALUE="Provoz" />
<INPUT NAME="__R69309.1_BOOL_i" VALUE="0" />
<INPUT NAME="__R69355_REAL_.1f" VALUE="38.4" />
<INPUT NAME="__R69299.1_BOOL_i" VALUE="0" />
<INPUT NAME="__R114081_STRING[10]_s" VALUE="0.0 m/s" />
<INPUT NAME="__R113964_STRING[6]_s" VALUE="0°C" />
<INPUT NAME="__R114044_STRING[12]_s" VALUE="0 / 0°C" />
<INPUT NAME="__R72240_REAL_.1f" VALUE="2.1" />
<INPUT NAME="__R69301.1_BOOL_i" VALUE="0" />
<INPUT NAME="__R68936.1_BOOL_i" VALUE="0" />
<INPUT NAME="__R113180_UINT_u" VALUE="48" />
<INPUT NAME="__R5989.1_BOOL_i" VALUE="0" />
<INPUT NAME="__R113230_STRING[80]_s" VALUE="" />
</PAGE>
interesting values
"__R72240_REAL_.1f" VALUE="2.1"
"__R69319_REAL_.1f" VALUE="40.0"
"__R69067_REAL_.1f" VALUE="43.0"
menyiv
Posts: 2
Joined: Wednesday 05 December 2018 17:20
Target OS: Linux
Domoticz version:
Contact:

Re: PLC data minning

Post by menyiv »

Ok,

I have answer. Use MODBUS plugin. :lol:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest