Skip to content

Instantly share code, notes, and snippets.

@pcarranza
Last active February 3, 2018 15:58
Show Gist options
  • Save pcarranza/37fac94a5159fc53e03831ecfc9655e5 to your computer and use it in GitHub Desktop.
Save pcarranza/37fac94a5159fc53e03831ecfc9655e5 to your computer and use it in GitHub Desktop.
# Room state as 2 meanings, fullness and alert, when 2 alert is on.
# 0 room is empty and alert is 0
# 1 room is full and alert is 0
# 2 room is full and alert alert alert
- name: fosdem_room
type: object
path: $[*]?(@.state == "2")
labels:
room: $.roomname
value:
emergency: 1
full: 1
- name: fosdem_room
type: object
path: $[*]?(@.state != "2")
labels:
room: $.roomname
values:
full: $.state
emergency: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment