HacklabMQ: Difference between revisions

Jump to navigation Jump to search
1,206 bytes added ,  18 March 2016
Updating docs since door.entry is now JSON, not XML.
(Added missing queue for powergraph.)
(Updating docs since door.entry is now JSON, not XML.)
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
== Exchanges ==
== Exchanges ==
* door.entry - Fanout exchange, one message gets pushed to the exchange
* door.entry - Fanout exchange, one message gets pushed to the exchange
** Format: XML format described on the [[doorbot]] page each time a card is swiped at the door.
** Format: JSON message each time a card is swiped at any door associated with the HackLab.
* notification.graphic - Fanout exchange, messages pushed to this exchange indicate animated graphics which should be sent to lab occupants somehow (e.g. LED sign)
* notification.graphic - Fanout exchange, messages pushed to this exchange indicate animated graphics which should be sent to lab occupants somehow (e.g. LED sign)
** Format: Name of the animation to display. Currently "ostrich" is the only supported animation.
** Format: Name of the animation to display. Currently "ostrich" is the only supported animation.
* notification.general - Fanout exchange, messages pushed to this exchange indicate graphics which should be sent to lab occupants somehow (e.g. LED sign, twitter, doorbot)
* notification.general - Fanout exchange, messages pushed to this exchange indicate graphics which should be sent to lab occupants somehow (e.g. LED sign, twitter, doorbot)
** Format: JSON, 'text' and 'image' keys, images referenced should be in NFS user home directories
** Format: JSON, 'text' and 'image' keys, images referenced should be in NFS user home directories, 'public' key says whether to hide or show this message in public spaces
* statistics.bandwidth - Fanout exchange, messages pushed to this exchange indicate bandwidth statistics that can be stored/reported by other systems
* statistics.bandwidth - Fanout exchange, messages pushed to this exchange indicate bandwidth statistics that can be stored/reported by other systems
** Format: TBD
** Format: TBD
* 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
* 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.
* statistics.occupancy - Fanout exchange, messages pushed to this exchange indicate which areas of the lab are occupied at the present time.
** 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, '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}
Line 28: Line 28:
   "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 40:
   "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"]
  "statistics.hvac" [shape=trapezium style=filled fillcolor="paleturquoise1"]
   "eight" [shape=trapezium style=filled fillcolor="paleturquoise1"]
   "eight" [shape=trapezium style=filled fillcolor="paleturquoise1"]
    
    
Line 50: Line 53:
   "statistics.power.statssign" [shape=box style=filled fillcolor="palegreen1"]
   "statistics.power.statssign" [shape=box style=filled fillcolor="palegreen1"]
   "statistics.bandwidth.statssign" [shape=box style=filled fillcolor="palegreen1"]
   "statistics.bandwidth.statssign" [shape=box style=filled fillcolor="palegreen1"]
   "statistics.power.powergraph" [shape=box style=filled fillcolor="palegreen1"]
   "statistics.power.graph" [shape=box style=filled fillcolor="palegreen1"]
  "statistics.occupancy.graph" [shape=box style=filled fillcolor="palegreen1"]
  "statistics.occupancy.hacktouch" [shape=box style=filled fillcolor="palegreen1"]
  "statistics.occupancy.hvac" [shape=box style=filled fillcolor="palegreen1"]
   "eight.signs" [shape=box style=filled fillcolor="palegreen1"]
   "eight.signs" [shape=box style=filled fillcolor="palegreen1"]


Line 57: Line 63:
   "IRC #hacklabto (recv)" [shape=hexagon style=filled fillcolor="royalblue1"]
   "IRC #hacklabto (recv)" [shape=hexagon style=filled fillcolor="royalblue1"]
   "IRC #hacklabto (send)" [shape=hexagon style=filled fillcolor="royalblue1"]
   "IRC #hacklabto (send)" [shape=hexagon style=filled fillcolor="royalblue1"]
  "HTTP API\nBAYweb Cloud HVAC" [shape=hexagon style=filled fillcolor="royalblue1"]


   "Service"
   "Service"
Line 91: Line 98:
   "statistics.power" -> "statistics.power.statssign"
   "statistics.power" -> "statistics.power.statssign"
   "statistics.power.statssign" -> "statssignd"
   "statistics.power.statssign" -> "statssignd"
   "statistics.power" -> "statistics.power.powergraph" -> "powergraph" -> "HTTP Frontend\nHackLab Power Graphs"
   "statistics.power" -> "statistics.power.graph" -> "powergraph" -> "HTTP Frontend\nHackLab AMQP Graphs"


   "Firewall SNMP" -> "bandwidth_feeder" -> "statistics.bandwidth"  
   "Firewall SNMP" -> "bandwidth_feeder" -> "statistics.bandwidth"  
Line 97: Line 104:
   "statistics.bandwidth.statssign" -> "statssignd"
   "statistics.bandwidth.statssign" -> "statssignd"
    
    
  "WiFi Occupancy Sensors" -> "occupancy_collector" -> "statistics.occupancy"
  "statistics.occupancy" -> "statistics.occupancy.graph" -> "occupancygraph" -> "HTTP Frontend\nHackLab AMQP Graphs"
  "statistics.occupancy" -> "statistics.occupancy.hacktouch" -> "hacktouch_occupancy_powersave"
  "statistics.occupancy" -> "statistics.occupancy.hvac" -> "hvac_occupancy_adjuster" -> "HTTP API\nBAYweb Cloud HVAC"
  "HTTP API\nBAYweb Cloud HVAC" -> "hvac_stats_feeder" -> "statistics.hvac"
   "eight" -> "eight.signs"
   "eight" -> "eight.signs"
   "eight.signs" -> "eight_feeder"
   "eight.signs" -> "eight_feeder"
56

edits

Navigation menu