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

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
Can anyone help me understand the "Transform Function" on the PH configuration page?
transform text filed takes any expression compatible to goevaluate and with a variable `v` representing the raw probe value.,
For example
Code:
2*v
will double the raw probe value. It can be used for any kind of unit conversion (Fahrenheit to Celsius for example) or other type of sensor reading transformation (potentially even calibration)
 

eggi55

Community Member
View Badges
Joined
Sep 18, 2022
Messages
63
Reaction score
50
Location
germany
Rating - 0%
0   0   0
Hallo Ranjib
I would like to run the dosing pumps via the PCA9685 and not the GPio from the pi3. Is that possible? And which atlas probe should I use for salinity K0.1 K01 K10 or does it not matter?
Kind regards
 

robsworld78

Valuable Member
View Badges
Joined
Feb 14, 2020
Messages
1,029
Reaction score
1,293
Location
Edmonton, Canada
Rating - 0%
0   0   0
Hallo Ranjib
I would like to run the dosing pumps via the PCA9685 and not the GPio from the pi3. Is that possible? And which atlas probe should I use for salinity K0.1 K01 K10 or does it not matter?
Kind regards
You can use an output from the PCA9685, connect it to your circuit where the GPIO would go. The K1 probe should be good.
 

rich1911

New Member
View Badges
Joined
Sep 2, 2022
Messages
2
Reaction score
2
Location
Decatur, GA
Rating - 0%
0   0   0
Hi guys, just getting started. Will be running reef-pi/Robo-Tank. Setting up Prometheus/Grafana on remote machine.

@Ranjib Once "Enable Prometheus" is selected, how do you configure Prometheus to connect with reef-pi? I can run node_exporter on my rPi and connect just fine. I can also see my metrics at <ip_addr>/x/metrics. What is the proper syntax in the prometheus.yml configuration file? Or am I missing something? Please explain, thanks!

Also, there is a typo in the API JSON file (swagger.json)
"/api/analog_inuputs": {
 

rich1911

New Member
View Badges
Joined
Sep 2, 2022
Messages
2
Reaction score
2
Location
Decatur, GA
Rating - 0%
0   0   0
Hi guys, just getting started. Will be running reef-pi/Robo-Tank. Setting up Prometheus/Grafana on remote machine.

@Ranjib Once "Enable Prometheus" is selected, how do you configure Prometheus to connect with reef-pi? I can run node_exporter on my rPi and connect just fine. I can also see my metrics at <ip_addr>/x/metrics. What is the proper syntax in the prometheus.yml configuration file? Or am I missing something? Please explain, thanks!

Also, there is a typo in the API JSON file (swagger.json)
"/api/analog_inuputs": {
Ha, found it.

# Default path is "metrics"
metrics_path: /x/metrics
 
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
Ha, found it.

# Default path is "metrics"
metrics_path: /x/metrics
i use multiple a single central prometheus server running on mini pc to scrape multile reef-pi metrics and more(node exporter ) ,
Code:
  - job_name: 'ryan-reef-pi-app'
    metrics_path: '/x/metrics'
    static_configs:
    - targets: ['192.168.86.143']
 
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 guys, just getting started. Will be running reef-pi/Robo-Tank. Setting up Prometheus/Grafana on remote machine.

@Ranjib Once "Enable Prometheus" is selected, how do you configure Prometheus to connect with reef-pi? I can run node_exporter on my rPi and connect just fine. I can also see my metrics at <ip_addr>/x/metrics. What is the proper syntax in the prometheus.yml configuration file? Or am I missing something? Please explain, thanks!

Also, there is a typo in the API JSON file (swagger.json)
"/api/analog_inuputs": {
thank you.. fix on the way
 
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
Continuing work on the Esp32 integration . Got a working prototype Esp32 code that supports outlet, inlet, pwm and analog inputs , ready , with accompanying reef-pi driver https://github.com/reef-pi/drivers/tree/main/esp32
Testing it for few days now , with ds18b20 integration . And now working on expanding that test build to include all features , leading to a 12v all inclusive controller
4FF78951-1185-48B9-9B69-82EE5B0219D7.jpeg

I want to use this for one of my pico , it should allow controlling light , pump , ato , dosing , temperature all using 12v components and with a single 12v power supply . I’m also employing these mini toggle switches, that I can configure to manual, automated or off mode. Using relay after years, and I want to also experiment with customizability around fallback (no or nc).
will see how this performs , and might start a dedicated thread if this turn out awesome
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
sounds good i can't use it in germany because of 110v
I am a bit late to the discussion but i had the exact same issue. "Nous A1T "sockets from Amazon are cheaper than HS110, run on Tasmota, have power measurement and statistics etc, can have simple programming running on them as a backup if reefpi fails, and most importantly are barely bigger than a full sized grounded plug so you can put a bunch of them in a normal power bar next to each other. (Has to be A1T, not A1, and not from other brands that look exactly the same either, most of those can't run Tasmota anymore sadly, but the A1T do and already have Tasmota on them, not the chinese cloud software)

if money isn't as much of an object you can get Shelly S, which can also run on Tasmota and are higher quality, but also almost double the price.

There's a sad lack of individually controllable powerbars with power measurement and enough slots in Germany that aren't GHL or even more expensive. The most there is are ones with 3 or 4 sockets, and those are more expensive than getting the individual plugs.
 
Last edited:

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
Here are some of mine...

graf-1.png


graf-2.png


Fun Fact I have alerts on return pump power and ato storage so I get text messages when either one hits a threshold. I have been testing some of @robsworld78 PH monitor and can say positively that they are a nice piece of hardware, the one I had used previously was getting interference and had lots of spikes, the new one from Rob works like a treat. I also have a newer version to test out also, hopefully have that up and working but here is a close up of my PH for a day with drops where I carbon dosed (drop ph when dosing vinegar):

Screenshot at 2022-03-22 22-41-41.png


Now if I could just get it to help with the algae and other tank issues I have things would be great :)
Tom, how are measuring your return pump consuption? Thank you very much!!
 

geekengineer

Active Member
View Badges
Joined
Feb 10, 2019
Messages
427
Reaction score
528
Location
South Aurora
Rating - 0%
0   0   0
Continuing work on the Esp32 integration . Got a working prototype Esp32 code that supports outlet, inlet, pwm and analog inputs , ready , with accompanying reef-pi driver https://github.com/reef-pi/drivers/tree/main/esp32
Testing it for few days now , with ds18b20 integration . And now working on expanding that test build to include all features , leading to a 12v all inclusive controller
4FF78951-1185-48B9-9B69-82EE5B0219D7.jpeg

I want to use this for one of my pico , it should allow controlling light , pump , ato , dosing , temperature all using 12v components and with a single 12v power supply . I’m also employing these mini toggle switches, that I can configure to manual, automated or off mode. Using relay after years, and I want to also experiment with customizability around fallback (no or nc).
will see how this performs , and might start a dedicated thread if this turn out awesome


So I saw in github and see you mentioned it here that you added ESP32 is there any plans then to add a pi pico W as well? Would that be simple to modify your ESP32 driver to use it for the pico W possibly? As I just bought one not realizings you were working on a ESP32. I saw that your talking about a pico or are you talking about a tank? Is there a specific ESP32 this needs to work with? I ideally I need 3 PWM outputs as well for what I am working on. The pico has up to 16 so I don't have to add an external one.
 

geekengineer

Active Member
View Badges
Joined
Feb 10, 2019
Messages
427
Reaction score
528
Location
South Aurora
Rating - 0%
0   0   0
I was just going to ask would this ESP32 work? I can get these local.

 
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
So I saw in github and see you mentioned it here that you added ESP32 is there any plans then to add a pi pico W as well? Would that be simple to modify your ESP32 driver to use it for the pico W possibly? As I just bought one not realizings you were working on a ESP32. I saw that your talking about a pico or are you talking about a tank? Is there a specific ESP32 this needs to work with? I ideally I need 3 PWM outputs as well for what I am working on. The pico has up to 16 so I don't have to add an external one.
raspberry pi pico is not planned for any integration, this is because it does not have WiFi capabilities. When I say pico I mean my tanks .
the current esp32 integration is implemented as WiFi/ network driver, hence won’t work with pi pico. any other microcontroller, we can get it working by implementing the esp32 driver.
 
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
I was just going to ask would this ESP32 work? I can get these local.

Yes
 
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
So I saw in github and see you mentioned it here that you added ESP32 is there any plans then to add a pi pico W as well? Would that be simple to modify your ESP32 driver to use it for the pico W possibly? As I just bought one not realizings you were working on a ESP32. I saw that your talking about a pico or are you talking about a tank? Is there a specific ESP32 this needs to work with? I ideally I need 3 PWM outputs as well for what I am working on. The pico has up to 16 so I don't have to add an external one.
Just realized that pi pico has a wifi variant. I‘ll get it and get started with the driver development. If you can wait, don’t buy esp32, ill get this done,
thank you for calling this out. I don’t know how I missed it , I guess I was just aware of esp32 and didn’t pay attention to pi pico family
 

geekengineer

Active Member
View Badges
Joined
Feb 10, 2019
Messages
427
Reaction score
528
Location
South Aurora
Rating - 0%
0   0   0
Lol ok well at least I am not the only one missing something. I'm not sure if the Pi pico W is any better but think they are are fairly easy to come by vs. the regular Pi's

EDIT: of course this can't replace the regular Pi as a base unit. Just handy for remote hardware functions etc. I would keep the ESP32 just for folk who might like that one better etc.
 
Last edited:

Wolfw28

Active Member
View Badges
Joined
Mar 13, 2022
Messages
216
Reaction score
136
Location
Myakka City
Rating - 0%
0   0   0
Continuing work on the Esp32 integration . Got a working prototype Esp32 code that supports outlet, inlet, pwm and analog inputs , ready , with accompanying reef-pi driver https://github.com/reef-pi/drivers/tree/main/esp32
Testing it for few days now , with ds18b20 integration . And now working on expanding that test build to include all features , leading to a 12v all inclusive controller
4FF78951-1185-48B9-9B69-82EE5B0219D7.jpeg

I want to use this for one of my pico , it should allow controlling light , pump , ato , dosing , temperature all using 12v components and with a single 12v power supply . I’m also employing these mini toggle switches, that I can configure to manual, automated or off mode. Using relay after years, and I want to also experiment with customizability around fallback (no or nc).
will see how this performs , and might start a dedicated thread if this turn out awesome
By adding Nextion display to the rx tx of the ESP32 you can eliminate all those toggle switch and put them all in a touch screen display. Along with with graphic output to the display like temp ph ect. I mentioned before about wanting to use one mounted in my cabinet for quite/emergency to control basic functions like turning off a pump. Instead of running to my computer or trying to find my phone.
 
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
Lol ok well at least I am not the only one missing something. I'm not sure if the Pi pico W is any better but think they are are fairly easy to come by vs. the regular Pi's

EDIT: of course this can't replace the regular Pi as a base unit. Just handy for remote hardware functions etc. I would keep the ESP32 just for folk who might like that one better etc.
Yeah.. actually even pi pico w is way more expensive and less available compared to esp32
 

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 27.3%
  • 100% dry rock + 100% live sand

    Votes: 47 33.8%
  • 50/50 live/dry rock, 50/50 live/bagged sand

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

    Votes: 14 10.1%
  • 25% live rock, 75% live sand

    Votes: 10 7.2%
Back
Top