brutella / hkcam

Open-Source HomeKit Surveillance Camera
https://hochgatterer.me/hkcam/
Apache License 2.0
925 stars 141 forks source link

Best update method? #16

Closed dfbills closed 2 years ago

dfbills commented 5 years ago

I'm wondering what the best update method is going to be for this project. Thinking about installing git on each camera so I can periodically pull down updates or perhaps schedule them with cron.

@brutella - any thoughts on how one might update say 10 cameras?

brutella commented 5 years ago

I see three ways to do that.

  1. update manually via HomeKit – I don't know how we can tell HomeKit that a new version is available. Other HomeKit accessories can do that, so there should be a way.
  2. update manually via Ansible – we could provide an ansible playbook which automatically installs the latest version. (This might be the easiest way at the moment.)
  3. update automatically – We could setup a service which periodically checks the Github project for new versions.

Currently you have to manually update as described in the wiki.

iMartzen commented 5 years ago

I'm currently working on an Ansible script for updating the devices. @dfbills, you can use the master-branch if you want to. In the instructions what you need to know.

I also started on a second branch with bash scripting. Probably I want to use this script as a cron job. @brutella, are you planning to build an version check? I already tried it (never code in Go before) and it was working. See attachment for my adjustments -> main.go.txt

@brutella I think your project is awesome 🥇

iMartzen commented 5 years ago

Update: I've made a pull request for my adjustments for the possibility to update via automatically cronjob. See Pull Request #24

brutella commented 2 years ago

The recent version 0.2.0 includes a web ui, which lets you install updates.