Reefpi Update (Raspberry Pi OS (Trixie) 64bit)

OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
No Worries



make sure reefpi is at the following location
/var/lib/reef-pi

Group and User should match your user.

sudo nano /etc/systemd/system/reef-pi.service

Code:
[Unit]
Description=Reef-Pi Controller
After=network.target

[Service]
Environment=REEFPI_TELEMETRY_DEBUG=0
Environment=REEFPI_TELEMETRY_SLOW_LOCK_MS=10
Environment=REEFPI_TELEMETRY_SLOW_HOLD_MS=10
Type=simple
User=reefpi
Group=reefpi
WorkingDirectory=/var/lib/reef-pi
ExecStart=/var/lib/reef-pi/reef-pi
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target


sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl start reef-pi

Then you can use the following for auto boot
sudo systemctl enable reef-pi


Can bounce your errors off chat GPT if i am not around
 

Gumbies R Us

God, Bouldering, and Reefing
View Badges
Joined
Nov 10, 2022
Messages
28,944
Reaction score
51,297
Location
North Georgia
Rating - 0%
0   0   0
Man this goes a little over my head but thank you so much for your contributions to reefpi. I love seeing the capabilities of a raspberry pi and what you are doing looks amazing
 

Peace River

Thrive Master
View Badges
Joined
Apr 29, 2014
Messages
24,733
Reaction score
172,769
Location
USA
Rating - 100%
1   0   0
I have Robotank/reef pi running on a zero w2. Keep up the great work. This is definitely something that I can see myself using in the future.
 
OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
I have Robotank/reef pi running on a zero w2. Keep up the great work. This is definitely something that I can see myself using in the future.
Awesome, let me know how it goes and if you run into errors, I don't have a Robotank board to test it. I only have a Pi5.
 

Peace River

Thrive Master
View Badges
Joined
Apr 29, 2014
Messages
24,733
Reaction score
172,769
Location
USA
Rating - 100%
1   0   0
Awesome, let me know how it goes and if you run into errors, I don't have a Robotank board to test it. I only have a Pi5.
I am excited to see what you’re doing and strongly encourage you to continue putting this together. This is an important gap that you’re filling. It may be a bit until I come back around to it because my focus right now is on building out a telemetry system for my aquariums using node red, etc.
 
OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
I am excited to see what you’re doing and strongly encourage you to continue putting this together. This is an important gap that you’re filling. It may be a bit until I come back around to it because my focus right now is on building out a telemetry system for my aquariums using node red, etc.
I have built it into this, if you are interested
Screenshot_20260218-094430.png
.
 
OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
Hey Everyone, sorry its been another big night of coding for me.

I have not had a chance to test this but if anyone is willing to try that would be awesome and report back.

Installation​

Quick Install (Raspberry Pi OS – Debian Trixie)​

On a fresh Raspberry Pi OS system, run:

Bash:
curl -fsSL https://raw.githubusercontent.com/epicfatigue/reef-pi/main/install.sh | sudo bash



What the Installer Does​

The automated installer performs a complete setup:

  • Updates the operating system
  • Installs all required dependencies (Go, Node.js, yarn, git, build tools)
  • Creates a dedicated reefpi system user
    • ⚠️ Reserved for the service — do not create or modify manually
  • Creates required directories under /opt and /var/lib
  • Clones all required repositories (reef-pi, drivers, hal, rpi)
  • Wires local Go module replacements for sibling repositories
  • Builds the frontend (if enabled)
  • Compiles and installs the backend binary
  • Creates and enables a systemd service
  • Starts reef-pi automatically on boot
The result is a fully compiled, service-managed installation running under a restricted system account.

After installation, access reef-pi at:

http://<your-pi-ip>:8080
 

ykri

New Member
View Badges
Joined
Feb 22, 2026
Messages
3
Reaction score
0
Location
Greece
Rating - 0%
0   0   0
Hi @epicfatigue and thanks for bringing a new hope for reef-pi!

I am trying to run your installer script directly on my rpi zero 2w it it seems it’s resources are not sufficient. I get

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Would it be easy for you to tell us how we could build the .deb in another Linux machine and then install it on rpi zero 2w?

Unless there is another workaround for the heap error within rpi zero 2w.
 
OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
Hi @epicfatigue and thanks for bringing a new hope for reef-pi!

I am trying to run your installer script directly on my rpi zero 2w it it seems it’s resources are not sufficient. I get

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Would it be easy for you to tell us how we could build the .deb in another Linux machine and then install it on rpi zero 2w?

Unless there is another workaround for the heap error within rpi zero 2w.
Hey thanks for that I am doing this today :) just needed to buy a raspberry pi 4
 
OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
I have fully re-written the installer, and compiled both 64 and 32 bit version.
Re-run the same script should work now :) please let me know
Hi @epicfatigue and thanks for bringing a new hope for reef-pi!

I am trying to run your installer script directly on my rpi zero 2w it it seems it’s resources are not sufficient. I get

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Would it be easy for you to tell us how we could build the .deb in another Linux machine and then install it on rpi zero 2w?

Unless there is another workaround for the heap error within rpi zero 2w.
 

ykri

New Member
View Badges
Joined
Feb 22, 2026
Messages
3
Reaction score
0
Location
Greece
Rating - 0%
0   0   0
The program installed, runs as service and UI accessible at port 8080 but I cannot install my backed up database file. I suspect I am doing something very silly but what?
Also when I try reboot from admin page I get:

{“error":"Failed to reboot reef-pi. Output:Call to Reboot failed: Interactive authentication required.\n. Error: exit status 1"} | HTTP 404
 
OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
The program installed, runs as service and UI accessible at port 8080 but I cannot install my backed up database file. I suspect I am doing something very silly but what?
Also when I try reboot from admin page I get:

{“error":"Failed to reboot reef-pi. Output:Call to Reboot failed: Interactive authentication required.\n. Error: exit status 1"} | HTTP 404
I wouldn't be using the database from your old reefpi. They are completely different it's best to screen shot your settings and transfer them across.

Can i ask what Version of Raspberry Pi you used >?
 
Last edited:

Kurtzisa

Community Member
View Badges
Joined
Mar 21, 2020
Messages
90
Reaction score
73
Location
Parma, Italy
Rating - 0%
0   0   0
i manually copied my old reef-pi.db into /var/lib/reef-pi/

the system start, the db is loaded, but i have no web interface :)

i have like 10 timer, 15 sensors etc etc, some macros. Is not so easy rebuid everythng..
 

Kurtzisa

Community Member
View Badges
Joined
Mar 21, 2020
Messages
90
Reaction score
73
Location
Parma, Italy
Rating - 0%
0   0   0
I have two requests for you:
the first one, where can I donate something even just for a beer?
the second one, if you can add the ORP sensor from this link, the PH one is already integrated and works correctly
 
OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
I have two requests for you:
the first one, where can I donate something even just for a beer?
the second one, if you can add the ORP sensor from this link, the PH one is already integrated and works correctly
You can donate via PayPal from my GitHub page.


I'll rewrite the driver for you, might take me a day.

As for your database PM me, I'll see if I can write a script to copy all the information from your old database into the new format, and I'll add it to the project for people.
 

Kurtzisa

Community Member
View Badges
Joined
Mar 21, 2020
Messages
90
Reaction score
73
Location
Parma, Italy
Rating - 0%
0   0   0
Code:
sudo systemctl stop reef-pi
sudo mv /var/lib/reef-pi/reef-pi.db /var/lib/reef-pi/reef-pi.db.bak
sudo cp YOURSOURCE /var/lib/reef-pi/reef-pi.db
sudo chown reefpi:reefpi /var/lib/reef-pi/reef-pi.db
sudo chmod 600 /var/lib/reef-pi/reef-pi.db
sudo systemctl start reef-pi


These are just the instructions that epicfatigue gave me to import the database, they worked!
 
OP
OP
epicfatigue

epicfatigue

Active Member
View Badges
Joined
Oct 21, 2020
Messages
233
Reaction score
121
Location
Melbourne
Rating - 0%
0   0   0
I do strongly advise to delete and re add drivers. I am working on your pH driver as we speak. :) I have work tomorrow and a few things on so give me a day or so and I'll get it to a point to test. I also noticed there are some permission issues I will sort out in the next build so won't be far away
 

illbereef

New Member
View Badges
Joined
Jul 20, 2023
Messages
1
Reaction score
0
Location
Alberta
Rating - 0%
0   0   0
@epicfatigue Thank you for doing this! Just adding my voice to the chorus, to make sure you see there is still interest in reef-pi from the community.

Got this going on raspberry pi zero W, no issues so far. Just configuring and testing GPIO. I had been banging my head against the wall with newer OS and GPIO config. My current prototype turned permanent is on legacy OS just to keep the GPIO commands working. With the legacy and reef-pi main I can't get any of the non-local options working as nothing is supported on the legacy OS I am using. I am thinking with OS Trixie running this, raspberrypi connect will be the easiest solution.
 

TOP 10 Trending Threads

Back
Top