Hi all,
and Thanks all for the Ideas.
I solve it an testet 2 different ways.
Way one i have runing snmp deamon on the PI with the DHT22 an added the Sensor like this.
{
"id": "Carport-humi",
"name": "Carport Luftfeuchte",
"class": "ShellSensor",
"attributeName": "Luftfeuchte",
"attributeType": "number",
"attributeUnit": "%",
"command": "snmpget -c public -v1 10.x.x.x.1.3.6.1.2.1.25.1.8.1 | cut -c 35,36",
"interval": 500000
},
Problem is on this way i didn’t know enough to cut the better then in my commandline
Way to is to pars e Text file.
My Pi with the DHT22 writes humidy and temp to a textfile on m NAS to use this on a python Gui on a other pi so why not use this.
{
"id": "Carport-humi",
"name": "Carport Luftfeuchte",
"class": "ShellSensor",
"attributeName": "Luftfeuchte",
"attributeType": "number",
"attributeUnit": "%",
"command": "cat /mnt/NASSHARE/humid.txt",
"interval": 500000
},
This works Great
The WebAPI option sounds nice so i would read more about the WebAPI also i will build a kivy interface to controll the pimatic with a Pi on the livingrom witch has the 7" raspberry Display attached.
Greats nsession