hi folks,
i use an bananapi for pimatic. In the bananian-OS U can display SOC and PMU Temperature, so i decided to make two shellsensor-Devices, like this:
{
"id": "soc-temperature",
"name": "SOC Temp.",
"class": "ShellSensor",
"attributeName": "temperature",
"attributeType": "number",
"attributeUnit": "°C",
"command": "soctemp | awk {'print $2'} | cut -c 1-4"
},
{
"id": "pmu-temperature",
"name": "PMU Temp.",
"class": "ShellSensor",
"attributeName": "temperature",
"attributeType": "number",
"attributeUnit": "°C",
"command": "pmutemp | awk {'print $2'} | cut -c 1-4"
},
i hope it’s helpfull for some one else
greetings
jensebub