Skip to main content

TEMPer / PCsensor temperature sensors

The temper node-type reads out temperature and humidity measurements from TEMPer USB senors. These sensors are sold by PCsensor.

The implementation is tested against the following products:

  • TEMPer2* eg. TEMPer2V1.3 (VID/PID 0x0c45/0x7401)
  • TEMPerV1.4 (VID/PID 0x0c45/0x7401)
  • TEMPerHUM (VID/PID 0x0c45/0x7402)

Prerequisites

This node-type requires libusb (>= 1.0.23).

Implementation

The source code of the node-type is available here: https://github.com/VILLASframework/node/blob/master/lib/nodes/temper.cpp

Configuration

object
bus
integer

A filter applied to the USB bus number for selecting a specific sensor if multiple are available.

port
integer

A filter applied to the USB port number for selecting a specific sensor if multiple are available.

object (Input configuration (received by VILLASnode))
vectorize
integer
Default: 1

This setting allows to send multiple samples in a single message to the destination nodes.

The value of this setting determines how many samples will be combined into one packet.

Array of Hook Object (object) or Hook Name (string) (hook_list)
builtin
boolean (Builtin hook functions)
Default: true

By default, each node and paths has a couple of default hooks attached to them. With this setting the attachment of built-in hooks can be disabled.

object (Output configuration (sent out by VILLASnode))
{
  • "calibration": {
    },
  • "bus": 0,
  • "port": 0,
  • "in": {
    },
  • "vectorize": 1,
  • "hooks": [
    ],
  • "builtin": true,
  • "out": {
    }
}

Example

node/etc/examples/nodes/temper.conf
nodes = {
temper_node = {
type = "temper"

calibration = {
scale = 1.0
offset = 0.0
}

bus = 0x1
port = 0x1
}
}