GenericThermometer

This module is a part of the NetHomeServer. The GenericThermometer is a Thermometer Item designed for integration with home made sensors. There is no Item generating the actual sensor data, instead this must be updated by some external script or program sending events with sensor data to the Item.

This is typically done by a script or program connection to a TCPCommandPort and sending an event with sensor data update. The command to send to the port would be:

event,Temperature_Message,Address,[address],Value,[value]

Where [address] would be the address specified in the GenericThermometer-Item and [value] would be the new thermometer value. The address is an arbitrary string that you self choose to identify the thermometer item from the external script.

An example of a shell script sending such an event would be:

echo 'event,Temperature_Message,Address,1,Value,230' | nc -u -w 0 127.0.0.1 8005

Note that the sent value is multiplied but the “K” attribute and added to the “M” attribute of the item to form the presented value. The default value for K is 0.1 so in the above example the presented value would be 23 degrees.

Attributes

See also

NetHomeServer, Command Port Syntax