Jump to content

DataLogger Plugin: Difference between revisions

From LinuxMCE
Initial page about the datalogger plugin.
 
added note about needing to select the dt 1949 for datalogger plugin.
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category: Programmer's Guide]]
The datalogger plugin watches events of power usage, CO2 changes etc.
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.
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.



Latest revision as of 18:52, 31 October 2011

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.