|
3 anni fa | |
---|---|---|
.. | ||
defaults | 3 anni fa | |
files | 3 anni fa | |
handlers | 3 anni fa | |
tasks | 3 anni fa | |
templates | 3 anni fa | |
vars | 3 anni fa | |
README.md | 3 anni fa |
Compiles and installs heyu x10 automation software on a server.
This role assumes there is an x10 control hardware on /dev/ttyUSB0 which gets linked to /dev/firecracker (hardcoded in heyu). Heyu passes all commands to this device.
heyu_user
: user to run heyu service as
heyu_version
: semver of heyu. Ex: "2.10.1"
heyu_aliases
:- device: Cameras
type: StdAM
code: A1
type
can be one of the following:
StdAM # Appliance Module
StdLM # Lamp Module
"" # empty string, used for multiple-unit aliases
code
examples:
A1
A1-5
heyu_cronjobs
:- name: turn on cameras
job: /usr/local/bin/heyu fon Cameras
hour: 7
minute: 30
All cronjob settings are available:
minute
: minute (0-59)hour
: hour (0-23)dom
: day of month (1-31)month
: month (1-12)dow
: day of week (0-7) where Sunday=(0 or 7)From within the infra directory:
ansible-playbook plays/heyu.yml
To only run necessary tasks to update aliases and cronjobs, use --tags update
ansible-playbook plays/heyu.yml --tags update
GPLv3