summaryrefslogtreecommitdiffstats
path: root/Reaktor/commands/licht_resolver
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-08-28 23:39:37 +0200
committermakefu <github@syntax-fehler.de>2015-08-28 23:39:37 +0200
commite5c6eae9896aeda68204bb7010a6e4e26d7eaca1 (patch)
tree0dcc367de6f6c1d978cabe3c3275395b1a1757b3 /Reaktor/commands/licht_resolver
parent60367f4b7bf02b8c2ec074c5ccba6772d175caa9 (diff)
Reaktor: add nix support, packaging
Diffstat (limited to 'Reaktor/commands/licht_resolver')
-rwxr-xr-xReaktor/commands/licht_resolver37
1 files changed, 0 insertions, 37 deletions
diff --git a/Reaktor/commands/licht_resolver b/Reaktor/commands/licht_resolver
deleted file mode 100755
index 5bdb6510..00000000
--- a/Reaktor/commands/licht_resolver
+++ /dev/null
@@ -1,37 +0,0 @@
-#! /usr/bin/python
-# -*- coding: utf-8 -*-
-
-map = {
- 'shackspace': {
- 'device': {
- 0: 'Licht0, Zickenzone; Fenster',
- 1: 'Licht1, Sofaecke; Fenster',
- 2: 'Licht2, Zickenzone; Ghetto',
- 3: 'Licht3, Sofaecke; Ghetto',
- 4: 'Licht4, Richtung Getränkelager',
- 5: 'Licht5, Porschekonsole',
- 6: 'Licht6, Tomatenecke',
- 7: 'Licht7, Ghetto',
- 10: 'Hauptschalter'
- },
- 'state': {
- 0: 'aus',
- 1: 'an',
- 2: 'aus in T-10s'
- },
- '->': 'ist'
- }
-}
-
-from struct import unpack
-import json
-from os import environ as env
-
-location = "shackspace"
-
-map = map[location]
-print (env["payload"]+"")
-did, sid= unpack('BB', json.loads(env['payload']))
-device,state = map['device'][did], map['state'][sid]
-arrow = map['->']
-print ' '.join([device, arrow, state])