HacklabMQ: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Adding the new consumer for occupancy graphing and removing tegh, since that never happened.)
No edit summary
Line 13: Line 13:
** Format: JSON, 'meter_id' key for what circuit or area is being metered (using standard lab electrical system identifiers), 'watts' for how many watts are in use at the time of reporting, 'cost' for cost per hour at the present time based on the wattage in use
** Format: JSON, 'meter_id' key for what circuit or area is being metered (using standard lab electrical system identifiers), 'watts' for how many watts are in use at the time of reporting, 'cost' for cost per hour at the present time based on the wattage in use
* statistics.occupancy - Fanout exchange, messages pushed to this exchange indicate which areas of the lab are occupied at the present time.
* statistics.occupancy - Fanout exchange, messages pushed to this exchange indicate which areas of the lab are occupied at the present time.
** Format: JSON, 'area' for which area the report is for, 'occupied' for whether this area is presently occupied, 'change' for whether this is a change in the occupied status from the last report.
** Format: JSON, 'area' for which area the report is for, 'occupied' for whether this area is presently occupied, 'last_detected' for the number of minutes ago movement was last detected in the area, 'change' for whether this is a change in the occupied status from the last report.
* eight - Fanout exchange, messages sent to this exchange indicate the number 8 should be printed full-screen (white text on a black background) and/or announced verbally. See also: [https://www.youtube.com/watch?v=87H6m2v4zNs 8].
* eight - Fanout exchange, messages sent to this exchange indicate the number 8 should be printed full-screen (white text on a black background) and/or announced verbally. See also: [https://www.youtube.com/watch?v=87H6m2v4zNs 8].
** Format: {eight: 8}
** Format: {eight: 8}
56

edits

Navigation menu