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

Martin Lowry

Community Member
View Badges
Joined
Sep 19, 2017
Messages
60
Reaction score
65
Location
Dover, NH
Rating - 0%
0   0   0
I have a question about light control via ML hat. Is there any pre-made circuitry to transform the 3.3v PWM to 10v PWM? With my old eyes I have difficulty focusing on small circuitry. Also does the PWM signal go to zero to shut off LED power supply like Meanwell HLG-320h-c700ab? Is there a better method of control using 0-10v control via reef-pi?
So, I'm by no way the expert, but I bought this LED Driver board off eBay: https://www.ebay.com/itm/1piece-5UP...b1bb346d6:g:irMAAOSwf~9ZZIey&autorefresh=true

I have not hooked it up as yet but I'm planning on using it with the PWM from ML Pi Hat and an external power supply to drive my two LED bars. BTW it may be overkill as it will run 5 channels and I only need 2, but it was not expensive.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
Having issues with adafruit.io on a fresh install of 3.5. I’m not getting any feeds moving over and am getting flooded with the below errors.

I have tried resetting my key a few times I put my user name, the key, and just put “reef” for the prefix.

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"}
 

92Miata

Valuable Member
View Badges
Joined
Feb 26, 2020
Messages
1,523
Reaction score
2,358
Location
Richmond, VA
Rating - 0%
0   0   0
Working on building a 24v relay controlled power bar to go alongside by 120v Robo-Tank AC power bar. Going to be driven by a Meanwell lrs type power supply, with barrel jacks for individual 24v pumps.


Anyways - trying to figure out a good way to have the connection between the Meanwell an the relay box - I'd rather not enclose the power supply - so I need a cord/connector that can do 10+ amps at 24v.

Anybody know what the name of this style of connector is? I'm trying to find beefier ones - but can't figure out the right search terms:

connector.png
 

Nerowolfe

New Member
View Badges
Joined
May 25, 2020
Messages
4
Reaction score
4
Rating - 0%
0   0   0
Working on building a 24v relay controlled power bar to go alongside by 120v Robo-Tank AC power bar. Going to be driven by a Meanwell lrs type power supply, with barrel jacks for individual 24v pumps.


Anyways - trying to figure out a good way to have the connection between the Meanwell an the relay box - I'd rather not enclose the power supply - so I need a cord/connector that can do 10+ amps at 24v.

Anybody know what the name of this style of connector is? I'm trying to find beefier ones - but can't figure out the right search terms:

connector.png
They are commonly referred to as 'aviation connectors'.
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
Having issues with adafruit.io on a fresh install of 3.5. I’m not getting any feeds moving over and am getting flooded with the below errors.

I have tried resetting my key a few times I put my user name, the key, and just put “reef” for the prefix.

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"}

I had this issue setting AIO up on a previous version 3.XX. I tried all options and kept getting the same message. Then suddenly, it started working and is still working. I have like 41 error messages in reef-pi relating to the same issue, that I can't clear or that keep coming back, but I live with them because AIO lets me see the info in a graph format that I can see and access easily.
 

anzi

New Member
View Badges
Joined
Nov 3, 2020
Messages
1
Reaction score
1
Location
Österreich
Rating - 0%
0   0   0
Hello, have not found something here about using JBL Solar Natur & Effect combined with the reefpi and how to wire this. It's running in this condition for my tank. You may want to use this on your own risk ;)

JBL_Solar.png
 

NeonRabbit221B

2500 Club Member
View Badges
Joined
Jun 21, 2019
Messages
3,037
Reaction score
5,408
Location
Richmond, Va
Rating - 0%
0   0   0
I am at a loss on what I am doing wrong on my Prometheus build.

I have been following the guide located here http://www.d3noob.org/2020/02/installing-prometheus-and-grafana-on.html

Here is my config file

scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'

metrics_path: /x/metrics
# scheme defaults to 'http'.

static_configs:
- targets: ['CichlidTank.local']

Here is the looping error I get when running
sudo systemctl start prometheus
sudo systemctl status prometheus

● prometheus.service - Prometheus Server
Loaded: loaded (/etc/systemd/system/prometheus.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Wed 2020-11-04 00:21:03 EST; 3s ago
Docs: https://prometheus.io/docs/introduction/overview/
Process: 1452 ExecStart=/home/pi/prometheus/prometheus --config.file=/home/pi/prometheus/prometheus.yml
Main PID: 1452 (code=killed, signal=ILL)

Nov 04 00:21:03 CichlidTank systemd[1]: prometheus.service: Service RestartSec=100ms expired, scheduling r
Nov 04 00:21:03 CichlidTank systemd[1]: prometheus.service: Scheduled restart job, restart counter is at 5
Nov 04 00:21:03 CichlidTank systemd[1]: Stopped Prometheus Server.
Nov 04 00:21:03 CichlidTank systemd[1]: prometheus.service: Start request repeated too quickly.
Nov 04 00:21:03 CichlidTank systemd[1]: prometheus.service: Failed with result 'signal'.
Nov 04 00:21:03 CichlidTank systemd[1]: Failed to start Prometheus Server.

Can't find a guide so if anyone has one that helped them please drop a link! I have been doing raspberry pi project for 6ish years and I still feel like a noob.
 

NeonRabbit221B

2500 Club Member
View Badges
Joined
Jun 21, 2019
Messages
3,037
Reaction score
5,408
Location
Richmond, Va
Rating - 0%
0   0   0
Bumping for help....

under targets I have also tried the following and can't figure out whats wrong

192.xxx.xxx.xxx
CichlidTank.local
192.xxx.xxx.xxx:9090
CichlidTank.local:9090
localhost:9090
CichlidTank:9090

Nothing is found when I navigate to 192.xxx.xxx.xxx:9090/targets or any of previous combinations

Edit: I think I found my issue. Pi zero is Armv6 not armv7 like the pi 3 which I have been working with previously.
 
Last edited:

PHopkins

New Member
View Badges
Joined
Sep 12, 2019
Messages
13
Reaction score
6
Rating - 0%
0   0   0
I seem to have a weird issue. If I reset my router, the address of my reef-pi changes. Then I have to pull it all apart to hook up a monitor to find the new one so I can access it.
 

NeonRabbit221B

2500 Club Member
View Badges
Joined
Jun 21, 2019
Messages
3,037
Reaction score
5,408
Location
Richmond, Va
Rating - 0%
0   0   0
Weird. I know for my internet company the only way to get a static IP is to pay. Mine doesn't reset the IP address unless I update route firmware or something. Use a hostname which should help for the most part
 

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
360
Reaction score
394
Location
Sweden
Rating - 0%
0   0   0
I seem to have a weird issue. If I reset my router, the address of my reef-pi changes. Then I have to pull it all apart to hook up a monitor to find the new one so I can access it.

You can set the pi's Mac address in your router settings and assign a permanent IP address, takes a couple of minutes only. For example mine is always 192.168.0.3 even if I switch the router off or have a power cut.
 

PHopkins

New Member
View Badges
Joined
Sep 12, 2019
Messages
13
Reaction score
6
Rating - 0%
0   0   0
You can set the pi's Mac address in your router settings and assign a permanent IP address, takes a couple of minutes only. For example mine is always 192.168.0.3 even if I switch the router off or have a power cut.

Can I do that through my laptop or will i have to do it through my 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
I am at a loss on what I am doing wrong on my Prometheus build.

I have been following the guide located here http://www.d3noob.org/2020/02/installing-prometheus-and-grafana-on.html

Here is my config file

scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'

metrics_path: /x/metrics
# scheme defaults to 'http'.

static_configs:
- targets: ['CichlidTank.local']

Here is the looping error I get when running
sudo systemctl start prometheus
sudo systemctl status prometheus

● prometheus.service - Prometheus Server
Loaded: loaded (/etc/systemd/system/prometheus.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Wed 2020-11-04 00:21:03 EST; 3s ago
Docs: https://prometheus.io/docs/introduction/overview/
Process: 1452 ExecStart=/home/pi/prometheus/prometheus --config.file=/home/pi/prometheus/prometheus.yml
Main PID: 1452 (code=killed, signal=ILL)

Nov 04 00:21:03 CichlidTank systemd[1]: prometheus.service: Service RestartSec=100ms expired, scheduling r
Nov 04 00:21:03 CichlidTank systemd[1]: prometheus.service: Scheduled restart job, restart counter is at 5
Nov 04 00:21:03 CichlidTank systemd[1]: Stopped Prometheus Server.
Nov 04 00:21:03 CichlidTank systemd[1]: prometheus.service: Start request repeated too quickly.
Nov 04 00:21:03 CichlidTank systemd[1]: prometheus.service: Failed with result 'signal'.
Nov 04 00:21:03 CichlidTank systemd[1]: Failed to start Prometheus Server.

Can't find a guide so if anyone has one that helped them please drop a link! I have been doing raspberry pi project for 6ish years and I still feel like a noob.
whats the output of `journalctl -u prometheus.service` ? there might be some issues with the configuration (yaml file)
 
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
Bumping for help....

under targets I have also tried the following and can't figure out whats wrong

192.xxx.xxx.xxx
CichlidTank.local
192.xxx.xxx.xxx:9090
CichlidTank.local:9090
localhost:9090
CichlidTank:9090

Nothing is found when I navigate to 192.xxx.xxx.xxx:9090/targets or any of previous combinations

Edit: I think I found my issue. Pi zero is Armv6 not armv7 like the pi 3 which I have been working with previously.
can you post your yaml file. i dont think these 9090 stuff are valid yaml
 

NeonRabbit221B

2500 Club Member
View Badges
Joined
Jun 21, 2019
Messages
3,037
Reaction score
5,408
Location
Richmond, Va
Rating - 0%
0   0   0
can you post your yaml file. i dont think these 9090 stuff are valid yaml
The primary issue with it not loading was because I downloaded the wrong version (arm7 instead of armv6 for a pi zero). The 9090 thing I got by trying to follow the guide here https://www.mytinydc.com/en/blog/prometheus-grafana-installation/

I think my main issue is resolved and now I just have to figure out how to actually use prometheus/grafana so I can use it for my MagicMirror.
 

Orbela

Active Member
View Badges
Joined
Mar 21, 2014
Messages
216
Reaction score
60
Rating - 0%
0   0   0
@Ranjib I am building my set up. My DJ-8 doesn’t seem to be responding. What can I check to troubleshoot? On Facebook someone suggested to check my signal and power sufficient. What can be 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.2%
  • 100% dry rock + 100% live sand

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

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

    Votes: 13 9.6%
  • 25% live rock, 75% live sand

    Votes: 10 7.4%
Back
Top