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

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Sorry wasn’t trying to be vague as I don’t know the code or who has written it or what level of programming experience the developer has. I’ll go back to just reading the thread.

Have you checked out the github page - https://github.com/reef-pi/reef-pi that is where the code base is located and contains additional information concerning the code base.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi All - Been traveling on business and have had no time to play; As a result, my system has been running hands off for a month. Hate to re-hash this, but take a look at the memory over time. This is running on a Pi 3 B and is controlling temperature and device on/off functionality along with reporting.

Capture.PNG
It’s a slow memory increase over the course of a month, it’s still not a level that should cause alarm (less than 50%). I’ll wait for another month before concluding this is a leak (and reload reef-pi) . Since reef-pi stores a month worth of usage data in memory this is not unexpected (memory utilization to grow slowly over a period of month)
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hallow ranjib. Can Reef Pi be installed on Orange Pi?

Thanks
I don’t know, reef-pi builds are for arm6/7 and it expects raspberry pi like gpio layout. If those two bits are same as pi in orange pi, then reef-pi should run just fine, else it may need some build or code changes
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Sorry wasn’t trying to be vague as I don’t know the code or who has written it or what level of programming experience the developer has. I’ll go back to just reading the thread.
The very first post in this thread and reef-pi website has repository details. It’s a standard github based open source project. It involved pretty standard stack of go based backend and react based front end. It’s very similar to professional software projects (or any good open source projects ) with full unit tests, integration tests, ci/cd pipeline and developer environment docs. Because it has all the standard bits, if you are new to any of this, it will be some learning. But at the same time you are learning fairly standard software development practices, which should be useful outside the scope of this project as well
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,253
Reaction score
3,603
Location
Sacramento, CA area
Rating - 0%
0   0   0
I don’t know, reef-pi builds are for arm6/7 and it expects raspberry pi like gpio layout. If those two bits are same as pi in orange pi, then reef-pi should run just fine, else it may need some build or code changes

I expect a few things might differ or there are some hard baked assumptions about particular things (which I2C bus to use, etc). Worth trying and reporting back!
 

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
360
Reaction score
394
Location
Sweden
Rating - 0%
0   0   0
@Ranjib, I'm having a hard time to get the macros to work, I basically would like to have one to shut off the chiller and all pumps for 10 minutes for feeding and another for the same equipment for 30 minutes for maintenance.

Is there a bug? Or am I just doing it all wrong?
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
@Ranjib, I'm having a hard time to get the macros to work, I basically would like to have one to shut off the chiller and all pumps for 10 minutes for feeding and another for the same equipment for 30 minutes for maintenance.

Is there a bug? Or am I just doing it all wrong?

Here is my screenshot for my 5min feeding break, turns of my filter-

Screenshot at 2019-03-13 19-21-45.png


Yours probably looks similar but thought I would post.
 

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
360
Reaction score
394
Location
Sweden
Rating - 0%
0   0   0
Here is my screenshot for my 5min feeding break, turns of my filter-

Screenshot at 2019-03-13 19-21-45.png


Yours probably looks similar but thought I would post.

Thanks got mine working, I had to add the temperature probe that controls the chiller, which is set to check every 90 seconds, works great I'll add another for maintenance maybe 20 minutes.

IMG_20190314_174630.jpg
 

Fernando Juarez

New Member
View Badges
Joined
Mar 15, 2019
Messages
1
Reaction score
2
Rating - 0%
0   0   0
Hello everyone, greetings from Guatemala. After looking for ideas to build a controller for aquariums, since I spend all week outside my house and only return on weekends, I needed a way to keep my reef controlled and monitored. Reef-pi is excellent. Congratulations to all those involved in the development, especially the creator Ranjib.

I have two questions:

1. Monitoring by IO does not work for me Adafruit gives me this error:

Mar 15 11:39:21
{"error":"request failed - failed to save data to feed acuarioato-ato-reading. undefined method `\u003e' for nil:NilClass"}
Mar 15 11:39:19
{"error":"request failed - failed to save data to feed acuarioato-ato-usage. undefined method `\u003e' for nil:NilClass"}
Mar 15 11:39:20
{"error":"not found - that is an invalid URL, please check the API documentation at https://io.adafruit.com/api/docs to make sure your URL is correct"}
Mar 15 11:39:23
{"error":"not found - that is an invalid URL, please check the API documentation at https://io.adafruit.com/api/docs to make sure your URL is correct"}
Mar 15 11:39:21
{"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"}
Mar 15 11:39:23
{"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"}
upload_2019-3-15_11-42-22.png


2. How could we modify the croon to create simulation of tides with the web maker, since the minimum that can be set is one minute, we would need for example:

WAVE MAKER # 1 ON 5 sec
WAVE MAKER # 2 OFF 5 sec
next step
WAVE MAKER # 1 OFF 5 sec
WAVE MAKER # 2 ON 5 sec
and start the cycle again
This would be for a type of tide, could function as the controller of hydor


Thank you for taking the time to read my message, success to all!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hello everyone, greetings from Guatemala. After looking for ideas to build a controller for aquariums, since I spend all week outside my house and only return on weekends, I needed a way to keep my reef controlled and monitored. Reef-pi is excellent. Congratulations to all those involved in the development, especially the creator Ranjib.

I have two questions:

1. Monitoring by IO does not work for me Adafruit gives me this error:

Mar 15 11:39:21
{"error":"request failed - failed to save data to feed acuarioato-ato-reading. undefined method `\u003e' for nil:NilClass"}
Mar 15 11:39:19
{"error":"request failed - failed to save data to feed acuarioato-ato-usage. undefined method `\u003e' for nil:NilClass"}
Mar 15 11:39:20
{"error":"not found - that is an invalid URL, please check the API documentation at https://io.adafruit.com/api/docs to make sure your URL is correct"}
Mar 15 11:39:23
{"error":"not found - that is an invalid URL, please check the API documentation at https://io.adafruit.com/api/docs to make sure your URL is correct"}
Mar 15 11:39:21
{"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"}
Mar 15 11:39:23
{"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"}
upload_2019-3-15_11-42-22.png


2. How could we modify the croon to create simulation of tides with the web maker, since the minimum that can be set is one minute, we would need for example:

WAVE MAKER # 1 ON 5 sec
WAVE MAKER # 2 OFF 5 sec
next step
WAVE MAKER # 1 OFF 5 sec
WAVE MAKER # 2 ON 5 sec
and start the cycle again
This would be for a type of tide, could function as the controller of hydor


Thank you for taking the time to read my message, success to all!

Welcome to reef2reef.
Can you tell us little bit about your setup? Share a screenshot of your adafruit feed. I think you have space or some special character in your equipment name or sensor names thats causing the adafruit issue.
The timer thing for wave maker should be fairly straight forward. Setup one timer for each of the wavemekaer, set the seconds fields 5 seconds apart for each of them, here is an example
Screen Shot 2019-03-16 at 4.04.35 PM.png
 

rhospider

New Member
View Badges
Joined
Mar 17, 2019
Messages
3
Reaction score
3
Rating - 0%
0   0   0
Hi all. I'm running through the tutorial and am not able to get the testjack lighting control to work. I have updated the config file with the 2 channel line and believe I have set up the overall config correctly. However, when I try to add a test jack I get the following message:
{"error":"Failed to create. Error: write /sys/class/pwm/pwmchip0/pwm0/period: invalid argument"} | HTTP 500
This seems to be a server side error.

Could anyone assist?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi all. I'm running through the tutorial and am not able to get the testjack lighting control to work. I have updated the config file with the 2 channel line and believe I have set up the overall config correctly. However, when I try to add a test jack I get the following message:
{"error":"Failed to create. Error: write /sys/class/pwm/pwmchip0/pwm0/period: invalid argument"} | HTTP 500
This seems to be a server side error.

Could anyone assist?
Have you enabled the pwm module in /boot/config.txt ? You have to reboot pi after that
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi all. I'm running through the tutorial and am not able to get the testjack lighting control to work. I have updated the config file with the 2 channel line and believe I have set up the overall config correctly. However, when I try to add a test jack I get the following message:
{"error":"Failed to create. Error: write /sys/class/pwm/pwmchip0/pwm0/period: invalid argument"} | HTTP 500
This seems to be a server side error.

Could anyone assist?
Welcome to reef2reef :-)
 

rhospider

New Member
View Badges
Joined
Mar 17, 2019
Messages
3
Reaction score
3
Rating - 0%
0   0   0
Hi Ranjib. Thanks for the reply and for developing this software. I appreciate it.

My config.txt file finishes with this:

hdmi_force_hotplug=1
dtoverlay=w1-gpio
dtoverlay=pwm-2chan

I am using Pi zero with reef v2.3. Linux kernel is 4.14.
 
Last edited:

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
Hi Ranjib. Thanks for the reply and for developing this software. I appreciate it.

My config.txt file finishes with this:

hdmi_force_hotplug=1
dtoverlay=w1-gpio
dtoverlay=pwm-2chan

I am using Pi zero with reef v2.3. Linux kernel is 4.14.
In reef-pi settings, what do you have the pi pwm frequency set to?
 

TOP 10 Trending Threads

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

  • 100% live rock + bagged sand

    Votes: 38 26.0%
  • 100% dry rock + 100% live sand

    Votes: 48 32.9%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 34 23.3%
  • 75% live rock, 25% live sand

    Votes: 15 10.3%
  • 25% live rock, 75% live sand

    Votes: 11 7.5%
Back
Top