Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Update cron/launcher tasks of configure-raspberrypi-system.yml to mat…
Browse files Browse the repository at this point in the history
…ch new NVR system
  • Loading branch information
pakal committed Jun 5, 2022
1 parent 14d4668 commit 0e3608e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions ansible/configure-raspberrypi-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@
dest: "{{ ansible_env.HOME }}/witness-angel-nvr"
version: "main"
#depth: "1" - shallow clones are impractical
- name: Remove git-based WA dependencies so that they are properly updated by poetry later
pip:
name: ["wacryptolib", "wacomponents"]
state: "absent"
virtualenv: "{{ ansible_env.HOME }}/.venv"
virtualenv_python: "python3"
- name: Install wa-nvr dependencies with poetry
script:
cmd: files/install_poetry_dependencies.sh
Expand All @@ -106,12 +112,12 @@
cron:
name: "wanvr-launch-boot"
special_time: reboot
job: "{{ ansible_env.HOME }}/.venv/bin/python {{ ansible_env.HOME }}/witness-angel-nvr/src/resurrect_service.py"
job: "{{ ansible_env.HOME }}/.venv/bin/python {{ ansible_env.HOME }}/witness-angel-nvr/main.py --service"
- name: Create a cron entry for NVR service periodic re-launch
cron:
name: "wanvr-launch-periodic"
minute: "*/5"
job: "{{ ansible_env.HOME }}/.venv/bin/python {{ ansible_env.HOME }}/witness-angel-nvr/src/resurrect_service.py"
job: "{{ ansible_env.HOME }}/.venv/bin/python {{ ansible_env.HOME }}/witness-angel-nvr/main.py --service"
- name: Copy desktop shortcut to WANVR GUI
copy:
src: wanvr.desktop
Expand Down
2 changes: 1 addition & 1 deletion ansible/files/wanvr.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Comment=Launch Witness Angel NVR GUI
Terminal=true
Name=VideoTestimonyGUI
Exec=/home/pi/.venv/bin/python /home/pi/witness-angel-nvr/src/main.py
Exec=/home/pi/.venv/bin/python /home/pi/witness-angel-nvr/main.py
Type=Application
Icon=/home/pi/witness-angel-nvr/src/wanvr/desktop_icon_authenticator_512x512.png

0 comments on commit 0e3608e

Please sign in to comment.