Added lighting preset recall on backend and frontend, fixed things in other scripts - things should *mostly* be working now
This commit is contained in:
parent
61a8aa8ebc
commit
d00651a66c
14 changed files with 851 additions and 74 deletions
|
@ -28,4 +28,11 @@ i2c_address = {{motor.i2c_address}}
|
|||
|
||||
{%+ if extron_video is defined +%}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{%+ if lucke is defined +%}
|
||||
[lucke]
|
||||
url = "{{ lucke.url }}"
|
||||
roomId = "{{ lucke.roomId }}"
|
||||
bearer_token = "{{ lucke.bearer_token }}"
|
||||
{% endif %}
|
|
@ -31,4 +31,8 @@ P01:
|
|||
- position: side
|
||||
i2c_address: 0x43
|
||||
offset: 4
|
||||
|
||||
|
||||
lucke:
|
||||
url: http://192.168.190.90:8091/rest/fri-fkkt/lecture-halls/{roomId}/scenes/{sceneId}/activate
|
||||
roomId: 0
|
||||
bearer_token: 0954afe1-4111-4f89-a123-fea08a55dc46
|
||||
|
|
|
@ -88,6 +88,7 @@
|
|||
- projector_motors/projector_motors.py
|
||||
- tse_serial/tse_serial_controler.py
|
||||
- tse_serial/tse_serial_interpreter.py
|
||||
- lucke/luckeControl.py
|
||||
# - config.toml # bruh
|
||||
|
||||
|
||||
|
@ -154,6 +155,21 @@
|
|||
name: tse_box.service
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
- name: template lucke service
|
||||
when: lucke is defined
|
||||
block:
|
||||
- name: tmeplate service
|
||||
vars:
|
||||
script_file: "/home/pi/pyServices/luckeControl.py"
|
||||
ansible.builtin.template:
|
||||
src: ./service.j2
|
||||
dest: /lib/systemd/system/lucke.service
|
||||
- name: enable service
|
||||
ansible.builtin.systemd_service:
|
||||
name: lucke.service
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue