$ sudo pip3 install ansible
- set your IP in
hosts
- set Mac address in
roles/common/vars/main.yml
$ sudo ansible-playbook site.yml
- sudo passwd [USERNAME]
- sudo reboot
- // usermod --lock pi // grovepi need pi user
- $ curl -kL dexterindustries.com/update_grovepi | bash
- $ sudo reboot
- $ cd /home/pi/Dexter/GrovePi/Script
- $ bash ./update_grovepi.sh
- $ sudo reboot
- Now when the Raspberry pi is powered down, stack the Grove Pi on top of the Raspberry Pi.
- $ sudo i2cdetect -y 1 # check
- Edit
grove-influxdb-client.py
to add a token, bucket, org, measurement and sensors. - $ python3 grove-influxdb-client.py # python >= 3.6
I established this playbook referring to the following user's repositories.