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

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
 
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
 
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.
 
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.
 
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.
 
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
.
 
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
 
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.
 
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
 
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.
 
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
 
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:
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..
 
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
https://github.com/reef-pi/pH-Board
You can donate via PayPal from my GitHub page.

https://github.com/epicfatigue/reef-pi
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.
 
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!
 
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
 
@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

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 54 54.5%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 45 45.5%
Back
Top
Home
Post thread…
Market
What's new