I've made an Ansible playbook to update your hkcam.
Matthias Hochgatterer created this awesome project! Check it out on:
- Website: http://hochgatterer.me
- Github: https://github.com/brutella/hkcam
- Download this repository to your Ansible Playbook directory
- Change directory to hkcam-update-playbook
- Configure the hosts file hosts file with your hostname/ipaddress
- Configure the variables in the main.yml
- hkcam_version
- download_destination
- Run the playbook with this command:
ansible-playbook main.yml -i hosts --ask-pass
- The prompt for password is the password of your raspberry
- The playbook is finished when you see this:
PLAY RECAP **********************************************************************
raspberrypi.local : ok=8 changed=7 unreachable=0 failed=0
- Downloads the release
- Extract this release
- Stops the hkcam
- Changes the hkcam binary in /usr/bin
- Starts the hkcam
- Deletes the files in download destination
If you have multiple cams just place there hostname in de host file. This playbook wil update them in once.