theyosh / TerrariumPI

Home automated terrarium/aquarium or other enclosed environment with a Raspberry Pi
https://terrarium.theyosh.nl
GNU General Public License v3.0
402 stars 97 forks source link
aquarium automation cooling enclosure gui heating humidity iot livestream mobile plants raspberry-pi reptile scheduler sensor svelte temperature terrarium timer webcam

TerrariumPI 4.10.0

Latest release GitHub Release Date Translation status Docker Pulls Codacy Badge Code style: black code style: prettier

Software for cheap home automation of your reptile terrarium or any other enclosed environment. With this software you are able to control for example a terrarium so that the temperature and humidity is of a constant value. Controlling the temperature can be done with heat lights, external heating or cooling system. As long as there is one temperature sensor available the software is able to keep a constant temperature.

For humidity control there is support for a spraying system. The sprayer can be configured to spray for an X amount of seconds and there is a minimal period between two spray actions. Use at least one humidity sensors to get a constant humidity value. In order to lower the humidity you can add a dehumidifier.

The software is that flexible that there is no limit in amount of sensors, relay boards or door sensors. The usage can be endless. All power switches have support for timers to trigger based on a time pattern.

If you are using this software for your animals or plants, please post some pictures

Full documentation can be found at https://theyosh.github.io/TerrariumPI/

Contact https://matrix.to/#/#terrariumpi:theyosh.nl

Think off:

And all this is controlled with a nice web interface with AdminLTE 3 based on Bootstrap 4 made interactive with Svelte 4.

Table of Contents

  1. Features
  2. Translations
  3. Installation
  4. Updating
  5. Hardware
    1. GPIO numbering
    2. New hardware
  6. Remote data
  7. Contributors
  8. Screenshots
  9. Testing
  10. About

Features

It is currently controling my reptile terrarium since 2015! And my Madagascar Day Gecko is very happy with it!

Translations

The software has support for the following languages:

Translation status

Your language not in the list or not up to date? Create your own language translation

Installation

Base

The installation expects a Pi with working network and ssh. It is tested with Raspberry Pi OS Lite Legacy. Desktop images will not work. Installation seems to work, but it will not work stable. So make sure you download the correct image for the Pi. It is possible to use USB or SSD drives to speed things up: https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb

Docker

There is a Docker image which can be used instead of the source code. This should make the installation a bit more easier. More information can be found at: https://theyosh.github.io/TerrariumPI/install/#docker

You can skip the manual installation part.

Manual

  1. Get a working Raspberry Pi and login as user 'pi' \ ssh pi@[raspberry_ip]
  2. Install git \ sudo apt -y install git
  3. Clone this repository and submodules! \ git clone --depth 1 https://github.com/theyosh/TerrariumPI.git
  4. Enter the new TerrariumPI folder \ cd TerrariumPI
  5. Run the installer script and wait \ sudo ./install.sh
  6. Reboot Raspberry PI to get all the needed modules loaded \ sudo reboot (if done manual)
  7. Go to the web interface at http://[raspberry_ip]:8090 (login: admin/password)

All needed options and modules are setup by the installer script. This means that I2C and 1Wire overlay are enabled by default.

Make sure that your Pi is secured when you put it to the Internet. Would be a shame if TerrariumPI gets next victim of 'A smart fish tank left a casino vulnerable to hackers' :P

Updating

This updating is based on that the software is installed with the steps in the Installation above. When updating between release versions it will take more time due to database updates and cleanups. This can be seen in the log file.

Docker

Stop the running container and pull the new image. Then you can start the container again.

Manual

  1. Get a working Raspberry Pi and login as user 'pi' \ ssh pi@[raspberry_ip]
  2. Enter the TerrariumPI folder \ cd TerrariumPI
  3. Update the new code with git \ git pull
  4. Re-run the installation script in order to update software dependencies \ sudo ./install.sh
  5. Restart TerrariumPI: sudo service terrariumpi restart

Now clear your browser cache and reload the web interface. A brand new version should be running.

Hardware

This software requires a Raspberry Pi and some extra hardware in order to run and work. The bare minimum and tested hardware is

Full list of supported hardware

GPIO numbering

All hardware that connects to the GPIO pins use Physical GPIO numbering (1 - 40). The software will translate it to BCM if needed for a supported device or sensor. More information about GPIO pin numbering

For the analog devices use numbers of the channel on the analog device which is from 0 to 7 (8 channels). Also the software expect the analog MCP3008 on GPIO ports 19,21,23,24 physical (default). More information about GPIO pin numbering

New hardware

If there is some other hardware which is not working with TerrariumPI, open an issue on Github and we will try to support it. We can only test it on a Raspberry PI 4.

Remote data

It is possible to use external sensor data that is available through HTTP(S) in JSON format. This way you can combine multiple Raspberry Pi's with TerrariumPI running to one single system. By using multiple Raspberry PI's you can cover a bigger area. But there are limitations.

Currently it is READONLY. So you can read out remote sensors and switches but you cannot control the remote switches. But this way you can combine the power switches total costs and power usage.

more information is here: Remote data wiki

Contributors

GitHub Contributors Image

Screenshots

(made on a very big screen :P )

Dashboard

TerrariumPI 4.0 Dashboard screenshot

Sensors

TerrariumPI 4.0 Sensors temperature list screenshot TerrariumPI 4.0 Sensors humidity list screenshot TerrariumPI 4.0 Sensors settings screenshot

Relays

TerrariumPI 4.0 Relays list screenshot TerrariumPI 4.0 Relays settings screenshot

Enclosure setup

TerrariumPI 4.0 Enclosure list screenshot TerrariumPI 4.0 Enclosure setup screenshot

Area setup

TerrariumPI 4.0 Area Lighting setup screenshot TerrariumPI 4.0 Area Humidity setup screenshot

System settings

TerrariumPI 4.0 System setup screenshot

MOTD (Message Of The Day)

TerrariumPI 4.0 MOTD screenshot

More screenshots can be found here

Testing

Free tested with BrowserStack for open source BrowserStack

About

A live version is running at: https://terrarium.theyosh.nl/index.html. Go to 'Help' menu for more information about used hardware, software and how to setup.