fasadmw.blogg.se

Install cacti on raspberry pi
Install cacti on raspberry pi




  1. INSTALL CACTI ON RASPBERRY PI INSTALL
  2. INSTALL CACTI ON RASPBERRY PI UPDATE
  3. INSTALL CACTI ON RASPBERRY PI FULL
  4. INSTALL CACTI ON RASPBERRY PI FREE

This also enables you to copy this folder into a different “homeAssTest” folder and make your tests on a different environment protecting production one.

INSTALL CACTI ON RASPBERRY PI FULL

This way, if you need to migrate on a different host (for example a different Raspberry PI), you will only need to keep a copy of this folder without moving the full container data.

INSTALL CACTI ON RASPBERRY PI FREE

I’m using a “/home/pi/homeAssProd” folder, but you are free to set it where you prefer. Port mapping (“-p” option) will use same port number both for internal and external binding.Īs HA uses “/config” container folder to store data and configurations, this folder will be mapped on host with “-v” option. This time, “-d” option is used to get container detached from terminal. From terminal, use following command: docker run -d -p 8123:8123 -v /home/pi/homeAssProd:/config -restart unless-stopped -name homeAssProd homeassistant/home-assistant Install Production EnvironmentĪ production environment will include all these data required to actually use home assistant. You can also join home assistant community in home-assistant forum. The very first page will require a new user creation:įrom here you can use it following home-assistant docs or home-assistant examples. executing container initialization scripts.Īt this point your container is running, but will take a few minutes to initialize itself.įrom your favourite web browser, use your Raspberry PI IP Address (mine one is 192.168.1.80) to get url If this page return an error, please wait for home-assistant container ending its initialization operations. ensuring user provided files have correct perms.exited 0. making user provided files available at /var/run/s6/etc.exited 0. Once home-assistant image is downloaded (this operation occurs only during very first docker run, next ones will use image already downloaded) your terminal will show container logs: WARNING: The requested image's platform (linux/arm) does not match the detected host platform (linux/arm/v6) and no specific platform was requested Multiple HA containers can run in RPI boards with enought computing power (like PI 3 model B or later) and isn’t the best to have in a Raspberry Pi Zero W or PI 3 model A. This is a possible way to run together different home-assistant instances (maybe test and production) on same Raspberry PI. Note port mapping cofiguration, which exposed container 8123 port (default home-assistant port) to 8125 port. Getting a complete and working HA instance is as simple as running following command from terminal: docker run -p 8125:8123 -name homeAssTest homeassistant/home-assistant This is also the best way to try, in general, Home-Assistant in your Raspberry PI. It is a useful configuration when you want to try, for example, integration tests without affecting your production environment. This means that whatever you are going to do in this installation will be deleted with the container once removed. Starting with a test environment is very simple with Docker containers.

INSTALL CACTI ON RASPBERRY PI INSTALL

You also need to install docker in your Raspberry PI (for this project you don’t need docker-compose and/or Portainer).

INSTALL CACTI ON RASPBERRY PI UPDATE

From terminal: sudo apt update -y & sudo apt upgrade -y With Raspberry Zero W I strongly suggest Lite distribution because home-assistant is quite heavy for a PI Zero and this needs all of its computing power to run HA service. Install Raspberry PI OS Lite (for a fast, headless and lightweight OS) or Raspberry PI OS Desktop (in this case, working from its internal terminal). What We NeedĪs usual, I suggest adding from now to your favourite e-commerce shopping cart all needed hardware, so that at the end you will be able to evaluate overall costs and decide if continue with the project or remove them from the shopping cart. Be also aware to use a proper power supply, as many users refer to experience service restart with poor power source. Raspberry PI 3 Model B or later are suggested for production environment. This procedure works with all other Raspberry PI boards with internet connectivity and able to run Docker. For this reason, it is important to use a performing sd card with enough space, as sd cards influence drastically RPI speed as disks on common computers (refer also to my Raspberry PI optimization tutorial for more optimization tricks).įor this project, I’m going to use a cheap Raspberry PI Zero W. Last but not least, it stores all data locally in your host, this way protecting your privacy from unwanted external data usage. Home Assistant works well on Raspberry Pi, turning it into the ultimate home automation hub.






Install cacti on raspberry pi