MuMaBus: Difference between revisions

From The Munich Maker Lab's Wiki
Jump to navigation Jump to search
mNo edit summary
 
(21 intermediate revisions by 7 users not shown)
Line 15: Line 15:


== Bus details ==
== Bus details ==
* MQTT Broker: mqtt.tiefpunkt.com
* MQTT Broker: <code>mqtt.munichmakerlab.de</code>
** Note: Old nodes in the bus still use mqtt.tiefpunkt.com. Both brokers are bridged, so messages sent to one broker will be received by devices connected to the other as well. But new devices should always use mqtt.munichmakerlab.de
* Port: 1883 (unencrypted), 8883 (SSL, using a CACert certificate)
* Port: 1883 (unencrypted), 8883 (SSL, using a CACert certificate)
* Anonymous read access to <code>mumalab/#</code>
* Anonymous read access to <code>mumalab/#</code>
* For write access, contact [[User:Tiefpunkt|tiefpunkt]]
* For write access, contact [[User:Siedi|Matthias]] or [[User:Tiefpunkt|Severin]]


=== Topics ===
=== Topics ===
{| class="wikitable"
{| class="wikitable sortable"
! Topic !! Description !! Possible values !! Devices
! Topic !! Description !! Possible values !! Devices !! Status
|-
| mumalab/DMX/1/controller || MAC and IP of DMX controller, comma separated || || || Unknown
|-
| mumalab/DMX/1/set || interface to set DMX channels || Accepts list of DMX id:state, comma separated. State is int between 0-255 (0 is off), or 1000 (toggle between on and off) || || Unknown
|-
|-
| mumalab/DMX/1/controller || MAC and IP of DMX controller, comma separated || ||
| mumalab/DMX/1/state || list of current state of DMX ids with state, comma separeted || e.g.: "0:0,1:0,2:255,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0" || || Unknown
|-
|-
| mumalab/DMX/1/set || interface to set DMX channels || Accepts list of DMX id:state, comma separated. State is int between 0-255 (0 is off), or 1000 (toggle between on and off) ||
| mumalab/mccafe/1/buttonpress || Button presses on the fastfood remotes || e.g. "B2" || [[Fastfood Remotes]] || Unknown
|-
|-
| mumalab/DMX/1/state || list of current state of DMX ids with state, comma separeted || e.g.: "0:0,1:0,2:255,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0" ||
| mumalab/mpd/command || Control the MPD via MQTT ||play, pause, next, previous, toggle, volume up, volume down || [[SpaceMusic]] || Dead/Currently not connected
|-
|-
| mumalab/mccafe/1/buttonpress || Button presses on the fastfood remotes || e.g. "B2" || [[Fastfood Remotes]]
| mumalab/room/status || Status of the lab || 0 for closed, 1 for open, ? for unknown || [[StartYourEngines]] || Likely working
|-
|-
| mumalab/mpd/command || Control the MPD via MQTT ||play, pause, next, previous, toggle, volume up, volume down || [[SpaceMusic]]
| mumalab/room/door/status || Status of the door of the main room || 0 for closed, 1 for open, ? for unknown || || Dead/Currently not connected
|-
|-
| mumalab/room/status || Status of the lab || 0 for closed, 1 for open, ? for unknown || [[StartYourEngines]]
| mumalab/room/sensors/# || Sensors across the space || plain numeric values || [[SensorNode]] || Dead/Currently not connected
|-
|-
| mumalab/room/sensors/# || Sensors across the space || plain numeric values || [[SensorNode]]
| mumalab/fridge/# || Lights and Sensors of the drinks fridge || tbd || [[Fridge]] || Unknown
|-
|-
| mumalab/room/lights/# || Light control system || tbd || [[LightsOut]]
| mumalab/room/lights/# || Light control system || tbd || [[LightsOut]] || Dead/Currently not connected
|-
|-
| mumalab/room/lights/hanging_lights/state || Hanging lights above the worktables || 0, 1 || [[LightsOut]]
| mumalab/room/lights/hanging_lights/state || Hanging lights above the worktables || 0, 1 || [[LightsOut]] || Dead/Currently not connected
|-
|-
| mumalab/room/lights/whiteboard/state || Light tube around the whiteboard || 0, 1 || [[LightsOut]]
| mumalab/room/lights/whiteboard/state || Light tube around the whiteboard || 0, 1 || [[LightsOut]] || Dead/Currently not connected
|-
|-
| mumalab/room/lights/chandelier/state || Chandelier incl. RGB LED || 0, 1 || [[LightsOut]]
| mumalab/room/lights/chandelier/state || Chandelier incl. RGB LED || 0, 1 || [[LightsOut]] || Dead/Currently not connected
|-
|-
| mumalab/room/lights/ceiling/command || RGB ceiling lights || off, red, green, blue, white ||  
| mumalab/room/lights/ceiling/command || RGB ceiling lights || off, red, green, blue, white || || Dead/Currently not connected
|-
|-
| mumalab/room/display || VFD Display in the space || Text || [[Cash Register Display]]
| mumalab/room/display || VFD Display in the space || Text || [[Cash Register Display]] || Dead/Currently not connected
|-
|-
| mumalab/room/network/devices || No. of devices on the space network || 0...255 ||
| mumalab/room/ledpanel/#|| LED Panel from Jorgen || || [[LEDPanel]] || Working
|-
|-
| mumalab/room/network/bandwidth || Amount of WAN bandwith used from the space network || JSON ||
| mumalab/audio/x32/ || Behringer x32 mixing desk (Mischpult) || || [[Behringer x32]] || Dead/Currently not connected
|-
|-
| mumalab/room/ledpanel/#|| LED Panel from Jorgen || || [[LEDPanel]]
| mumalab/room/rcsockets || RF power socket control || "a,11111,00101,0" || || Unknown
|-
|-
| mumalab/room/balls/# || The Ballrun on the wall of the space || send whatever you want. It's the gesture that counts ||[[Ballrun]] || Dead/Currently not connected
|-
| shellies/wh-floodlight1/relay/0/command || FloodLight Outdoor MuMa || (misc) || - || Working
|-
| shellies/wh-floodlight2/relay/0/command || FloodLight Outdoor Ex-MuMa || (misc) || - || Working
|-
| mumalab/room/lichterkette || WLED lichterkette entrance || [https://kno.wled.ge/interfaces/mqtt/ WLED MQTT interface] || - || Working
|}
|}


== List of DMX Devices ==
== DMX Devices ==
{| class="wikitable"
{| class="wikitable"
! Channel !! Device !! Details
! Channel !! Device !! Details
|-
|-
| 1-12 || DMX Switchpack || 1: Ceiling Lamps HuS
| 1-12 || DMX Switchpack || Not used yet
|-
| 18-19 || Strobe || 18 Speed
 
19 Intensity
 
|-
| 20-38 || Ceiling LEDs || 20 Intensity
 
21 Red
 
22 Green
 
23 Blue
 
24 White
 
25 Preset
 
26 Not in Use
 
27 Speed
 
28 Control
 
 
 
30 Intensity
 
31 Red
 
32 Green
 
33 Blue
 
34 White
 
35 Preset


2: Projector Wall
36 Not in Use


3: Center
37 Speed


4: MML
38 Control
|-
|-
| 13-18 || Laser || 13: Pattern
| 48-53 || Laser (no one likes it) || 48: Pattern


14: Laser 1
49: Laser 1


15: Laser 2
50: Laser 2


16: Laser 3
51: Laser 3


|-
|-
| 20-55 || Ceiling LEDs || 20-22: r, g, b (Auf Seite des Regals)
|}
23-25: r, g, b
 
== RF power sockets ==
Switched via MQTT connected basestation. Send the following to <code>mumalab/room/rcsockets</code>:
<pre>
type,house_code,device_code,action
</pre>
 
with the options
* <code>type</code> - Type of RF sockets used, according to https://github.com/sui77/rc-switch/wiki/HowTo_OperateLowCostOutlets (which is missing type D). Only implemented types are "a" and "d" right now.
* <code>house_code</code> and <code>device_code</code> - Whatever is set on the socket as address
* <code>action</code> - 1 for switching on, 0 for switching off
 
=== Currently placed sockets ===
{| class="wikitable sortable"
! Identifier !! Description !! Switched on/off with the space status
|-
| a,11111,00001 || Nebenraum door status || no
|-
| a,11111,00010 || BobbyCar and light tube above common room || yes
|-
| a,11111,00011 || Wall of Monitors (only screens, no orange pis). Also switches LED strip behind the screens || yes
|-
| d,a,1 || Alarm light || no
|-
|-
| d,a,2 || Electronics corner || yes
|}
|}



Latest revision as of 14:18, 18 January 2022

 
MuMaBus

Release status: experimental [box doku]

Description Bus to connect different devices in the lab and in the outside world
Author(s)  tiefpunkt

The MuMaBus is a framework to connect different devices in the lab to each other and with outside services. This is currently done using MQTT.

Bus details

  • MQTT Broker: mqtt.munichmakerlab.de
    • Note: Old nodes in the bus still use mqtt.tiefpunkt.com. Both brokers are bridged, so messages sent to one broker will be received by devices connected to the other as well. But new devices should always use mqtt.munichmakerlab.de
  • Port: 1883 (unencrypted), 8883 (SSL, using a CACert certificate)
  • Anonymous read access to mumalab/#
  • For write access, contact Matthias or Severin

Topics

Topic Description Possible values Devices Status
mumalab/DMX/1/controller MAC and IP of DMX controller, comma separated Unknown
mumalab/DMX/1/set interface to set DMX channels Accepts list of DMX id:state, comma separated. State is int between 0-255 (0 is off), or 1000 (toggle between on and off) Unknown
mumalab/DMX/1/state list of current state of DMX ids with state, comma separeted e.g.: "0:0,1:0,2:255,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0" Unknown
mumalab/mccafe/1/buttonpress Button presses on the fastfood remotes e.g. "B2" Fastfood Remotes Unknown
mumalab/mpd/command Control the MPD via MQTT play, pause, next, previous, toggle, volume up, volume down SpaceMusic Dead/Currently not connected
mumalab/room/status Status of the lab 0 for closed, 1 for open, ? for unknown StartYourEngines Likely working
mumalab/room/door/status Status of the door of the main room 0 for closed, 1 for open, ? for unknown Dead/Currently not connected
mumalab/room/sensors/# Sensors across the space plain numeric values SensorNode Dead/Currently not connected
mumalab/fridge/# Lights and Sensors of the drinks fridge tbd Fridge Unknown
mumalab/room/lights/# Light control system tbd LightsOut Dead/Currently not connected
mumalab/room/lights/hanging_lights/state Hanging lights above the worktables 0, 1 LightsOut Dead/Currently not connected
mumalab/room/lights/whiteboard/state Light tube around the whiteboard 0, 1 LightsOut Dead/Currently not connected
mumalab/room/lights/chandelier/state Chandelier incl. RGB LED 0, 1 LightsOut Dead/Currently not connected
mumalab/room/lights/ceiling/command RGB ceiling lights off, red, green, blue, white Dead/Currently not connected
mumalab/room/display VFD Display in the space Text Cash Register Display Dead/Currently not connected
mumalab/room/ledpanel/# LED Panel from Jorgen LEDPanel Working
mumalab/audio/x32/ Behringer x32 mixing desk (Mischpult) Behringer x32 Dead/Currently not connected
mumalab/room/rcsockets RF power socket control "a,11111,00101,0" Unknown
mumalab/room/balls/# The Ballrun on the wall of the space send whatever you want. It's the gesture that counts Ballrun Dead/Currently not connected
shellies/wh-floodlight1/relay/0/command FloodLight Outdoor MuMa (misc) - Working
shellies/wh-floodlight2/relay/0/command FloodLight Outdoor Ex-MuMa (misc) - Working
mumalab/room/lichterkette WLED lichterkette entrance WLED MQTT interface - Working

DMX Devices

Channel Device Details
1-12 DMX Switchpack Not used yet
18-19 Strobe 18 Speed

19 Intensity

20-38 Ceiling LEDs 20 Intensity

21 Red

22 Green

23 Blue

24 White

25 Preset

26 Not in Use

27 Speed

28 Control


30 Intensity

31 Red

32 Green

33 Blue

34 White

35 Preset

36 Not in Use

37 Speed

38 Control

48-53 Laser (no one likes it) 48: Pattern

49: Laser 1

50: Laser 2

51: Laser 3

RF power sockets

Switched via MQTT connected basestation. Send the following to mumalab/room/rcsockets:

type,house_code,device_code,action

with the options

Currently placed sockets

Identifier Description Switched on/off with the space status
a,11111,00001 Nebenraum door status no
a,11111,00010 BobbyCar and light tube above common room yes
a,11111,00011 Wall of Monitors (only screens, no orange pis). Also switches LED strip behind the screens yes
d,a,1 Alarm light no
d,a,2 Electronics corner yes

Devices & Projects using the MuMaBus