Bewaak je WAN IP met openHAB

(Dit artikel heb ik in het Engels eerder geplaatst op het openHAB forum en in de openHAB wiki) Het probleem De meeste Internet Service Providers (ISP) voorzien je van een dynamisch IP-adres. Dit adres kan in de loop van de tijd veranderen. Als je op dit adres vertrouwt, bijvoorbeeld om een computer binnen je thuisnetwerk te benaderen, wil je dit adres misschien in de gaten houden. De oplossing Websites zoals icanhazip geven je publieke IP-adres terug als platte tekst. Deze kun je met openHAB prima verwerken en bijhouden in een item. Een ‘rule’ (regel) bewaakt wijzigingen van het item en acteert daarop. ...

2 mei 2017

Include Raspberry Pi System Temperature in openHAB

(This post is also contributed to the openHAB wiki) The Systeminfo Binding enables you to read system information through Sigar. The system information provided through this library can be extended with some additional important features. For example, reading system temperatures for your Raspberry Pi. CPU temperature The CPU temperature can be read with a terminal command: $ cat /sys/class/thermal/thermal_zone0/temp 46540 This output can be captured using the Exec binding. The value returned represents millidegrees Celsius. (I’m not sure if another OS localization returns Fahrenheit). So the actual needed CPU temperature is computed through a Javascript transformation. ...

13 mei 2016