This ansible provisioning script will setup the open-sprinkler service on any new raspberry PI. No need to use the OSPI image (which can potentially be out of date).
Requirements:
* Raspberry pi with raspbian image
* Ansible installed locally (https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) and SSH access to your raspberry pi.
* SSH access to your OSPI raspberry pi
* git
to checkout the provisioning script
When you’re ready to provision your OSPI device, note the hostname (in my case it’s ospi.local). Then run the following three commands:
`
git clone https://github.com/stephen-mw/raspberrypi.git
cd raspberrypi/roles/ospi
ansible-playbook -i “ospi.local,” provision.yml
`
That’s it, now navigate to http://ospi.local and you’ll be greeted with the open-sprinkler UI. Login with the default username.
You can also use the ansible command to upgrade
your OSPI. Please note that ansible won’t restart the OSPI software after an upgrade (or else you’d lose any potential watering progress). You’ll need to restart manually if a new version was released and installed.
Enjoy!