reef-pi :: An opensource reef tank controller based on Raspberry Pi.

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
I'll do some test, thank you!!
Can you please share your timer and macro config? On my Controller Timer and Macro seems to do nothing on light...
I will make a screenshot
 
Last edited:

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
I'll do some test, thank you!!
Can you please share your timer and macro config? On my Controller Timer and Macro seems to do nothing on light...
Here a screenshot of my timer, the macro I deleted, it was only one time needed...

Screenshot_20240527_211211_Chrome.jpg
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
Thank you!! So with the macro you "initiate" the system right? Because I've seen that the timer won't trigger the lights on or off by itself...
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
Thank you!! So with the macro you "initiate" the system right? Because I've seen that the timer won't trigger the lights on or off by itself...
Correct, or you have to wait until the moment the timers are set and kick in....
 
Last edited:

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
Here a screenshot of my timer, the macro I deleted, it was only one time needed...

Screenshot_20240527_211211_Chrome.jpg
@Ranjib There's no easy way to use the same channel both as Diurnal and Moonlight? Or maybe a simple way to control light enable/disable with timer without using macros..
Let me know if you have any idea.. Thank you!
Simone
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
Alright, I had a look at the code for the PWM-profiles on github and diurnal works with a cosine to the power of 3. The profile looks like this for different min/max settings:
1680194816033.png


The diurnal profile is at the minimum value outside the start and end times. In between the Start and End Time it ramps up and down.
At exactly the start time (denoted 0) it starts ramping up from the minimum, to the maximum. This takes about 1/5 or 20% of the time interval between Start and End. After about 1/10 or 10% of the interval the light is in the middle between minimum and maximum value ( in the plot: (80%+10%)/2 = 50% )
The same thing happends towards the end, at about 4/5 or 80% of the interval between start and end the light starts ramping down. It will have fallen half the way towards the minimum at about 9/10, or 90% of the interval between Start and End. At exactly the End time it will reach the minimum again.

Practical Example:
I set my light to Minimum 0% and Maximum 80%, since my light is a bit too strong, between 08:00 and 16:00.
It will slowly start up at exactly 08:00, reaching 80% shortly past 9:30 (20% of 8 hours are about 1 hour 30 minutes).
A few minutes before 14:30 it will start ramping down, reaching 0% exactly 16:00.

Something I saw as well, which @Ranjib mentioned in another thread:
there is a light profile called "composite", which seems to stitch together different light profiles for their respective programmable interval. In my case I could use this to, for example, have a diurnal between 08:00 and 16:00 and afterwards run a much weaker lunar profile between 16:00 and 08:00.
It's not exposed in the GUI yet, put I'm hopefull that I can either set this manually or wait for the update.

I've read on this thread about the "Composite" PWM Profile. It is usable? In this way we can solve all our complex to use the same channel during the day but also as moonlight...

I was also thinking about the possibility to add a button inside the Auto light menu to "Enable this channel as moonlight" and then set a value for the intensity (a fix value, without moon phase should be enough)

If tgere's interest I can open a feature request on GitHub.. Please let me know! :)
 

Brad Cox

Active Member
View Badges
Joined
Mar 18, 2017
Messages
346
Reaction score
399
Rating - 0%
0   0   0
Im currently setting up another reef tank. I have used reefpi way back when it was in beta. Im looking at getting reefpi setup again. Is this still being developed/working great?
 

KrisMoro

New Member
View Badges
Joined
Sep 27, 2017
Messages
8
Reaction score
1
Rating - 0%
0   0   0
I don't think so. Today is 3rd day I'm trying to install it on different hosts - from oldest Raspberry 1 (at least started), next is Raspberry Pi Zero W, and also tried on Orange Pi Zero 2W. At ALL boards I see error that embedded rpi driver cannot be accessed:

started reef-pi.service - raspberry pi based reef tank controller.
Jun 16 11:50:15 reef-pi reef-pi[1279]: 2024/06/16 11:50:15 driver-subsystem: Failed load raspberry pi driver. Error: can't build hal pin 9: strconv.Atoi: parsing "31+rpt": invalid syntax

Can someone try to reproduce?

another version of this error:
Jun 16 12:00:25 reef-pi systemd[1]: Started reef-pi.service - raspberry pi based reef tank controller.
Jun 16 12:00:25 reef-pi reef-pi[1495]: 2024/06/16 12:00:25 ERROR: failed to initialize drivers. Error: can't build hal pin 2: strconv.Atoi: parsing "31+rpt": invalid syntax
Jun 16 12:00:25 reef-pi reef-pi[1495]: 2024/06/16 12:00:25 Successfully started subsystem: system

I tried many versions from 4.3 to 6.0 - all gives me the same.
 

natebatey

New Member
View Badges
Joined
Jan 9, 2021
Messages
18
Reaction score
8
Location
home
Rating - 0%
0   0   0
I don't think so. Today is 3rd day I'm trying to install it on different hosts - from oldest Raspberry 1 (at least started), next is Raspberry Pi Zero W, and also tried on Orange Pi Zero 2W. At ALL boards I see error that embedded rpi driver cannot be accessed:

started reef-pi.service - raspberry pi based reef tank controller.
Jun 16 11:50:15 reef-pi reef-pi[1279]: 2024/06/16 11:50:15 driver-subsystem: Failed load raspberry pi driver. Error: can't build hal pin 9: strconv.Atoi: parsing "31+rpt": invalid syntax

Can someone try to reproduce?

another version of this error:
Jun 16 12:00:25 reef-pi systemd[1]: Started reef-pi.service - raspberry pi based reef tank controller.
Jun 16 12:00:25 reef-pi reef-pi[1495]: 2024/06/16 12:00:25 ERROR: failed to initialize drivers. Error: can't build hal pin 2: strconv.Atoi: parsing "31+rpt": invalid syntax
Jun 16 12:00:25 reef-pi reef-pi[1495]: 2024/06/16 12:00:25 Successfully started subsystem: system

I tried many versions from 4.3 to 6.0 - all gives me the same.
I am getting a similar error with a fresh install on Pi-3 when installing Reef-Pi V6.0.
I have previously run V5.1 successfully so I did a fresh install with 5.1 using the exact same process and did not get the error. Tried V5.3 and got the error again. I have tried this several times with the same results.
 

natebatey

New Member
View Badges
Joined
Jan 9, 2021
Messages
18
Reaction score
8
Location
home
Rating - 0%
0   0   0
I am getting a similar error with a fresh install on Pi-3 when installing Reef-Pi V6.0.
I have previously run V5.1 successfully so I did a fresh install with 5.1 using the exact same process and did not get the error. Tried V5.3 and got the error again. I have tried this several times with the same results.
 

geologeek

Active Member
View Badges
Joined
Apr 21, 2010
Messages
189
Reaction score
153
Location
UK
Rating - 0%
0   0   0
I understand that since RPI foundation removed old methods of GPIO access, there is a temporary work around to revert the kernel in bookworm back to Kernel 6.1.74, which still supports the older methods of GPIO access. Try:

sudo rpi-update d86b5843d68b9972a5430a6d3da1b271cfc83521

I've not tried, but came across this in my reading as I need to redo my reef-pi set up as my 24vdc power supply went up in smoke and took out my system with AC power getting through to my goby hat and taking out sections of the PCB tracks

I hope there is still life yet in reef-pi as I was just about to get on with rebuilding my system.......
 

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
89
Reaction score
67
Location
Western Australia
Rating - 0%
0   0   0
I understand that since RPI foundation removed old methods of GPIO access, there is a temporary work around to revert the kernel in bookworm back to Kernel 6.1.74, which still supports the older methods of GPIO access. Try:

sudo rpi-update d86b5843d68b9972a5430a6d3da1b271cfc83521

I've not tried, but came across this in my reading as I need to redo my reef-pi set up as my 24vdc power supply went up in smoke and took out my system with AC power getting through to my goby hat and taking out sections of the PCB tracks

I hope there is still life yet in reef-pi as I was just about to get on with rebuilding my system.......
There's definitely still life in it, i just think one has to lower their expectations since the last "update" as we all know was Nov 2022...

By lowering expectations (and i am by no means having a dig at anyone here that is reading this) - i mean either stick with Raspberry Pi 4 and Raspbian Bullseye OS or if go Raspberry Pi 5 you have to use Bookworm and revert to an older kernel.

Which doesnt matter at all in the grand scheme of things as long as it's stable (its not like reef-pi chews up resources) unless you have some real weird fringe-use case that no one has ever considered before and if you are exposing this direct to the internet then you should have the appropriate security measures in-place and not relyng on the latest OS update to hopefully keep you safe :p

The only time you may get stuck is if you go to use the Pi for other things besides the reef-pi software on it and the kernel version carries a bug against what you are trying to do (i like to keep things all separate).

Will the developer come back into the light and continue where he left off? who knows. As this is all open-source and no one getting paid for it it's a love job/project....so we have to be thankful it is where it is today....There is the odd github commit of package and dependancy updates as of late... Will someone else take on the task and fork it and go from there, who knows, i would if i were able to understand the language as in my own experience reef-pi sure beats all the other controller crap out on the market for what 90% of us want it to do and not having to rely on some one elses "cloud" or recording everything you do on it.
 

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
89
Reaction score
67
Location
Western Australia
Rating - 0%
0   0   0
For what it’s worth I have just tried bookworm with that downgrade and I get in reef-pi the following so clearly something is wrong:

Failed to initialize i2c. Error:open /dev/i2c-1: no such file or directory

Failed load raspberry pi driver. Error:can't build hal pin 25: embd: your host ":" is not supported at this moment. request support at https://github.com/reef-pi/embd/issues

I’ve setup config.txt to match my working reef-pi setup and no change.
 

Matt Carden

Valuable Member
View Badges
Joined
Apr 13, 2018
Messages
1,657
Reaction score
4,036
Location
Detroit Metro
Rating - 0%
0   0   0
I'm trying to get my reefpi up and running using robo-tank controller with the lighting and DC module, Sensor module and 2 power strips. Everything is plugged in: module interconnects, power, float sensors, Ph probe, custom lighting dimmers to Meanwell drivers. Dosers.

I ran the robo-tank installation instructions for reefpi https://www.robo-tank.ca/reef-pi_Related_User_Manuals afterwards the reefpi blank dashboard comes up so I know reefpi is installed. When I click on connectors to start programming the ports I get this:
20240624_154742.jpg 20240624_154753.jpg
There is also a reoccurring error message:

@Rob
20240624_154805.jpg

@robsworld78
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
You can try search this tread on: Something went wrong
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 37 27.4%
  • 100% dry rock + 100% live sand

    Votes: 46 34.1%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 30 22.2%
  • 75% live rock, 25% live sand

    Votes: 12 8.9%
  • 25% live rock, 75% live sand

    Votes: 10 7.4%
Back
Top