clean readme

This commit is contained in:
zi 2024-08-07 18:25:40 +05:30
parent 5b5ae65ca8
commit ca58a0e31b

View File

@ -1,41 +1,50 @@
Play LED light sequences from csv. Control LED lights using PyDMXControl
Install...
Install:
https://github.com/MattIPv4/PyDMXControl/tree/master
Calc fields / Variables:
# seq -> "sequence" = position (seconds) on 'timeline' starting 0
# fadein / fadeout (milliseconds) [optional/default]
# duration (seconds)
# brightness -> 0-255 (optional, else default) [optional/default]
# "channel" --> LED/channel identifier, order as connected to DMX decoder
- seq -> "sequence" = position (seconds) on 'timeline' starting 0
- fadein / fadeout (milliseconds) [optional/default]
- duration (seconds)
- brightness -> 0-255 (optional, else default) [optional/default]
- "channel" --> LED/channel identifier, order as connected to DMX decoder
(channel = name | opendmxcontroller calls fixtures "by_name")
- channels are sequential and fixed
- blank channels also must be added to dmx..()
## Map channels:
(play one at a time, wait for input)
$ python3 mapchannels.py
- Map channels (play one at a time, wait for input):
```
$ python3 mapchannels.py
```
# run sequence:
- $ python3 sequence.py
- run sequence:
```
$ python3 sequence.py
```
# run sequence from START cell (not from t=0):
- $ python3 zztest_sequence.py
- run sequence from START cell (not from t=0):
```
$ python3 zztest_sequence.py
```
## debug:
(play single channel only and exit)
$ python3 playsingle.py <channel/name>
- debug:
- (play single channel only and exit)
```
$ python3 playsingle.py <channel/name>
```
_____
*** EDIT ("seq", "duration", optional "brightness") and play sequence:
- edit local or online calc/csv
# get csv -> sequence.json
- $ python3 getspread.py
- get csv -> sequence.json
```
$ python3 getspread.py
```
- restart service
@ -43,26 +52,29 @@ _____
_____
# check script output:
$ tmux a
or
- check script output:
```
$ tmux a -t light
```
---
lights.service runs sequence.py in a tmux session called "light"
(Run outside tmux)
# start/stop/restart service now
[ start/stop/restart service now ]
```
sudo systemctl <start/stop/restart> lights.service
```
# enable/disable service on boot
enable/disable service on boot
```
sudo systemctl <enable/disable> lights.service
```
# check status
check status
```
systemctl status lights.service
```
---
*dev* service script: