DataLogger Plugin

From LinuxMCE
Jump to: navigation, search

The datalogger plugin watches events of power usage, CO2 changes etc.

Installation

Add a new device of device template 1949 below the DCERouter device using the web admin.

Example Of Usage

To record a power usage event, send a message to the Device ID of the Event Manager (-1001), from the device in question that has the power usage.

For example:

# from-device-id needs to be replaced with the ID of the device which wants to record
# power usage.
# The 2 is for emitting an event.
# 85 is the event id for power usage changed (look at table pluto_main.Event for more)
# 69 is the event parameter for current watts per hour (look at table pluto_main.Event_EventParameter for more)
# 1234 is the current watts per hour reported.
/usr/pluto/bin/MessageSend dcerouter <from-deviceid> -1001 2 85 69 1234

The same works for co2 reporting, and others.

To view the recorded information, go into web admin, Energy Monitor.