Skip to content

Commit

Permalink
Merge branch 'main' of github.com:theyosh/TerrariumPI into main
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Nov 1, 2023
2 parents d8e64dd + 92a13bf commit 53fbcc5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_faq/clean_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In order to cleanup the database, make sure that TerrariumPI is **stopped**! Els

When you cleanup the database, we need at least the same amount of free space as the size of the database. The script will check this. Make sure you have enough free diskspace. If this is a problem, you can also try to download the database and run this on a desktop/laptop.

The cleanup can take up to **10 hours**!. So make sure your environment is stable and can survive for that period.
The cleanup can take up to **4 hours**!. So make sure your environment is stable and can survive for that period.

1. Enter the TerrariumPI folder: `cd /home/pi/TerrariumPI/`
2. Enable Python3 virtual environment: `source venv/bin/activate`
Expand Down
29 changes: 29 additions & 0 deletions docs/_faq/reset_webgui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: Reset webgui address
categories: [Website, FAQ]
tags: [database,gui,address,port,listening]
---
If you have configured a fixed IP as address and your PI has changed the IP due to a network change, the TerrariumPI software will not load the web gui. The system is still running, but you are unable to access the webgui.

The solution for this is to reset the IP address that was entered. Here are the steps to fix it.

1. Stop TerrariumPI: `sudo service terrariumpi stop`
2. Enter the TerrariumPI folder: `cd /home/pi/TerrariumPI/`
3. Open the database with sqlite: `sqlite3 data/terrariumpi.db`
4. Run the following query statement: `DELETE FROM Setting WHERE id = 'host';`
5. Run the following query statement: `DELETE FROM Setting WHERE id = 'port';`
6. Exit the database by pressing `CTRL+d`
7. Start TerrariumPI: `sudo service terrariumpi start`

The steps 3 - 6 are shown below.

```console
sqlite3 data/terrariumpi.db
SQLite version 3.27.2 2019-02-25 16:06:06
Enter ".help" for usage hints.
sqlite> DELETE FROM Setting WHERE id = 'host';
sqlite> DELETE FROM Setting WHERE id = 'port';
sqlite>
```

When TerrariumPI is started up, you should be able to access the web gui again on the new IP of the Raspberry PI

0 comments on commit 53fbcc5

Please sign in to comment.