HacklabMQ: Difference between revisions
Jump to navigation
Jump to search
Adding the initial bits of the occupancy system.
(Added missing queue for powergraph.) |
(Adding the initial bits of the occupancy system.) |
||
Line 12: | Line 12: | ||
* statistics.power - Fanout exchange, messages pushed to this exchange indicate power statistics that can be stored/reported by other systems | * statistics.power - Fanout exchange, messages pushed to this exchange indicate power statistics that can be stored/reported by other systems | ||
** 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. | |||
** 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. | |||
* tegh.services - Fanout exchange, messages sent to this exchange indicate that a 3D printer has either come online or that a previously online printer has gone offline. | * tegh.services - Fanout exchange, messages sent to this exchange indicate that a 3D printer has either come online or that a previously online printer has gone offline. | ||
** Format: JSON, TBD, The routing keys "tegh.service.up" and "tegh.service.down" are used to indicate 3D printers coming online and going offline respectively. | ** Format: JSON, TBD, The routing keys "tegh.service.up" and "tegh.service.down" are used to indicate 3D printers coming online and going offline respectively. | ||
Line 28: | Line 30: | ||
"Building Power System" [shape=house style=filled fillcolor="palevioletred1"] | "Building Power System" [shape=house style=filled fillcolor="palevioletred1"] | ||
"HackLab Power Monitor\npowermon" [shape=house style=filled fillcolor="palevioletred1"] | "HackLab Power Monitor\npowermon" [shape=house style=filled fillcolor="palevioletred1"] | ||
"WiFi Occupancy Sensors" [shape=house style=filled fillcolor="palevioletred1"] | |||
"LED Sign\nsign0" [shape=house style=filled fillcolor="palevioletred1"] | "LED Sign\nsign0" [shape=house style=filled fillcolor="palevioletred1"] | ||
"Stats Sign\nsign1" [shape=house style=filled fillcolor="palevioletred1"] | "Stats Sign\nsign1" [shape=house style=filled fillcolor="palevioletred1"] | ||
Line 39: | Line 42: | ||
"statistics.power" [shape=trapezium style=filled fillcolor="paleturquoise1"] | "statistics.power" [shape=trapezium style=filled fillcolor="paleturquoise1"] | ||
"statistics.bandwidth" [shape=trapezium style=filled fillcolor="paleturquoise1"] | "statistics.bandwidth" [shape=trapezium style=filled fillcolor="paleturquoise1"] | ||
"statistics.occupancy" [shape=trapezium style=filled fillcolor="paleturquoise1"] | |||
"eight" [shape=trapezium style=filled fillcolor="paleturquoise1"] | "eight" [shape=trapezium style=filled fillcolor="paleturquoise1"] | ||
Line 97: | Line 101: | ||
"statistics.bandwidth.statssign" -> "statssignd" | "statistics.bandwidth.statssign" -> "statssignd" | ||
"WiFi Occupancy Sensors" -> "occupancy_collector" -> "statistics.occupancy" | |||
"eight" -> "eight.signs" | "eight" -> "eight.signs" | ||
"eight.signs" -> "eight_feeder" | "eight.signs" -> "eight_feeder" |