forked from andig/canprogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVZ_config2.xml
executable file
·29 lines (29 loc) · 1.2 KB
/
VZ_config2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8" ?>
<VZ>
<!-- supported formats (ElsterTable.inc):
et_dec_val signed short / 10.0 (Auflösung: xx.x)
et_byte signed char
et_little_endian
et_zeit
et_datum
-->
<device Name="can0" />
<mysql User="pi"
Password="raspberry"
DB="volkszaehler" />
<ip_address Name="192.168.1.116" />
<!-- sleep in seconds -->
<sleep Name="54" />
<channel Name="Rücklaufist"
query="INSERT data(channel_id, timestamp, value) VALUES(1, unix_timestamp("${ts}"), ${value});"
can_msg="31 00 fa 00 16"
format="et_dec_val" />
<channel Name="Aussentemperatur"
query="INSERT data(channel_id, timestamp, value) VALUES(3, unix_timestamp("${ts}"), ${value});"
can_msg="31 00 fa 00 0c"
format="et_dec_val" />
<channel Name="Verdichter"
query="INSERT data(channel_id, timestamp, value) VALUES(2, unix_timestamp("${ts}"), ${value});"
can_msg="a1 00 fa 07 a8"
format="et_dec_val" />
</VZ>