Skip to content
TheYOSH edited this page Oct 6, 2017 · 34 revisions

What is the default login

The default login name is 'admin' with password 'password'. Make sure you change it after installation at the system setting page.

How to restart TerrariumPI

The software is running in a screen session

  1. Login with the user 'pi'.
  2. Run the command 'screen -r'. This will give a new terminal.
  3. Press 'Ctrl+c' and wait 10 seconds.
  4. Use 'Ctrl+a' and then a single 'd' to close the screen session and logout of your Pi

How to debug TerrariumPI

The software is running in a screen session

  1. Login with the user 'pi'.
  2. Run the command 'screen -r'. This will give a new terminal.
  3. Here there could be errors. Mail them or make an issue with the contents of the error.
  4. Use 'Ctrl+a' and then a single 'd' to close the screen session and logout of your Pi

Increase logging

TerrariumPI log all actions in a log file at log/terrariumpi.log. By default it logs INFO, WARNING and ERROR messages. In order to get debug messages change the file: logging.conf and change

[handler_fileHandler]
class=logging.handlers.TimedRotatingFileHandler
level=INFO

to
[handler_fileHandler]
class=logging.handlers.TimedRotatingFileHandler
level=DEBUG

And restart TerrariumPI

How to translate

See the Translation page for creating a new translation

How to test a DHT11, DHT22 or AM2303 sensor

After installation of TerrariumPI there is a folder called 'Adafruit_Python_DHT' in the 'pi' user home folder. Enter the examples folder for a simple test script.

  1. cd ~/Adafruit_Python_DHT/examples
  2. ./AdafruitDHT.py 22 24
  3. Temp=21.6* Humidity=70.6%

Where value 22 is one of: 11 for DHT11 sensor, 22 for DHT22 sensor and 2302 for AM2303 sensor. And 24 is the value of the pin number in BCM mode https://pinout.xyz/

If the output is out of range, for example humidity is above 100%, this is an indication that the sensor is not working properly and can have a hardware failure. This has to be solved first before using it with TerrariumPI.

Clone this wiki locally