![]() ![]() if the Pi's IP is 10.0.1.34, then add a host_vars file named 10.0.1.34 and put overrides inside, like the local_sensor_id for that Pi). ![]() It also starts the script and begins sending temperature data to the Master Pi.īefore running the Ansible playbook to configure the remote(s), add a file named after the hostname or IP address of each remote Raspberry Pi inside config/host_vars (e.g. Run the Ansible playbook to configure the master Pi and start the dashboard app: ansible-playbook -i config/inventory playbooks/master/main.yml Raspberry Pi Remote(s) Setup (Temperature Monitors)Īn Ansible playbook builds the remote temperature monitoring Pi(s), installing all the requirements for the Python-based temperature data collection scripts. Raspberry Pi Master Setup (Data Logger & Dashboard App)Īn Ansible playbook builds the master logger and dashboard Pi, installing all the requirements for the Node.js-based data logger and dashboard app for viewing temperature data. Run ansible-galaxy install -r requirements.yml inside the playbooks directory to install the required Ansible roles.Copy to config.yml, and inventory-example to inventory, and update the values inside to match your desired environment and Pi IP addresses.cd back into this directory and run vagrant up.īefore anything else, you need to install Ansible, then do the following:.cd into playbooks and run ansible-galaxy install -r requirements.yml.Install Vagrant, VirtualBox and Ansible.This is a living project, so a lot of things will change while I experiment with making my monitoring more robust, more fully-featured, and eventually, more integrated with my smart thermostat and other environmental controls. Networking configured (either wired LAN or WiFi via USB).Raspbian running on the microSD card, with raspi-config setup already completed.I use the A+ or Zero for remotes since they're cheap and use minimal power when running headless. I recommend a Pi model 2 B for the master (since it's running a heavier-weight Node.js-based application, but you can use any Pi for the remotes. The architecture uses one 'master' Pi to aggregate and display log data, and many 'remotes' place around a house to send log data back to the 'master'. I've created this project to power a network of temperature and environmental monitors in my home. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |