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

peejay

Member
View Badges
Joined
Nov 16, 2019
Messages
11
Reaction score
6
I have updated to 3.4. Now, on the Dashboard my equipment no longer shows in red when they are turned off. They appear in green when they switch on. Was this a deliberate move, a bug or just something gone wrong my end
?
Thanks.
 
Top Shelf Aquatics
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,945
Reaction score
14,252
Location
Palo Alto, Bay Area
I have updated to 3.4. Now, on the Dashboard my equipment no longer shows in red when they are turned off. They appear in green when they switch on. Was this a deliberate move, a bug or just something gone wrong my end
?
Thanks.
That’s not a deliberate move. We updated the charting library to address some deprecation warning, I’ll cross check .
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,945
Reaction score
14,252
Location
Palo Alto, Bay Area
I've just updated to reef-pi ver3.4. Update went OK. Download was very slow. Like VERY slow, but it downloaded and installed.

All looked fine until I went to the dashboard. Graphs were there, but when I mouse-over them, all the date and time info is "Jan-01-00:00, 0001" For temp, pH, ATO. All the reading are there, just date stamps are gone / reset.
Reloaded reef-pi and refreshed browser - Same thing.
Rebooted reef-pi and refreshed browser - Same thing.

My latest readings are showing with the correct time / date so all good.
Oops . I know what happened. We fixed a bug a that was messing up the charts due to missing year in time stamp. That is causing all older timestamp parsing to fail resulting in default timestamp (which is Jan 1 ,01). I fear this is permanent. I can revert back the change, but then we’ll get the old bug back. This should not impact anything other than the timestamps in chart, for older usage data.
 

Des Westcott

Active Member
View Badges
Joined
May 29, 2018
Messages
491
Reaction score
821
Location
Durban - South Africa
Oops . I know what happened. We fixed a bug a that was messing up the charts due to missing year in time stamp. That is causing all older timestamp parsing to fail resulting in default timestamp (which is Jan 1 ,01). I fear this is permanent. I can revert back the change, but then we’ll get the old bug back. This should not impact anything other than the timestamps in chart, for older usage data.
Cool. It's largely benign, because I can still see the graph visually, and I still have the point data, just not the dates. And going forward it's fine. In a couple of weeks I won't even remember it happened. Glad I could point out something for you Devs to fix. We all know you sit around bored with nothing to do most of the time :D:D:D Just kidding. Constantly grateful for the work you guys do.
 

elysics

Member
View Badges
Joined
Jan 15, 2020
Messages
34
Reaction score
33
Do i have to set Celsius somewhere else too or only when setting up a temperature sensor? Because i have always immediately set it to celsius. Just redid it anyway, by deleting the sensor and setting it up again filling in all the fields, but the scale still goes to 86.
So is this a bug and supposed to work when setup as Celsius from the start? To be clear, i am not talking about the temperature graph, but the temperature line/scale in the heater/cooler graph.

Currently on Reef-Pi 3.4
 

elysics

Member
View Badges
Joined
Jan 15, 2020
Messages
34
Reaction score
33
On an entirely unrelated note, since reef-pi already tracks the usage of dosing pumps, can we get a capability to send an alarm/ execute a macro or something after a pump has been running for a specific time/after a specific volume?
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,945
Reaction score
14,252
Location
Palo Alto, Bay Area
So is this a bug and supposed to work when setup as Celsius from the start? To be clear, i am not talking about the temperature graph, but the temperature line/scale in the heater/cooler graph.

Currently on Reef-Pi 3.4
Its a UI bug in the chart component. Thank you for pointing it out,. i just patched it, will be fixed in next release: https://github.com/reef-pi/reef-pi/pull/1153 . Chart min/max will reflect the data min/max after this change.
 

GaryE

Active Member
View Badges
Joined
Mar 12, 2020
Messages
266
Reaction score
344
Location
Coatesville
Just built this... Prototype of a micro reefpi.

1 external temp sensor, header for sht31d or any other i2c device, two 12v pwm light channels.

Had to use that horrendous buck converters, but for this application it's fine...

Having an issue with the second light channel, but I'll figure it out eventually.

No power control on this as power will be controlled via a TP Link KP303 power strip.

IMG_20200523_215703.jpg
 

mawhins

Member
View Badges
Joined
Jul 4, 2019
Messages
50
Reaction score
131
If the temp probe has only 2 wires, it is probably a thermocouple / thermistor. Not the same as the ds18b20 that reef-pi uses.

From what I recall though, the resistance difference across a thermocouple is linear, so you might be able to set it up as a pH probe and calibrate the voltages you read from it to give you a temp reading. But I'll wait for others better schooled than me to confirm that.
Ad a look but I don't think there's any way to setup a driver for pH that reads SPI, the drivers that are there seem to use i2c. There is a digital file option but not sure how to format the file and how it would work i.e. where does it live how do you clean it up etc. Oh well guess I just buy the ds18b20, its only $15 just wanted to use the probes I had here and it was fun to get the Analogue to Digital converter running. Might come in useful somewhere down the line.
 

mawhins

Member
View Badges
Joined
Jul 4, 2019
Messages
50
Reaction score
131
Just built this... Prototype of a micro reefpi.

1 external temp sensor, header for sht31d or any other i2c device, two 12v pwm light channels.

Had to use that horrendous buck converters, but for this application it's fine...

Having an issue with the second light channel, but I'll figure it out eventually.

No power control on this as power will be controlled via a TP Link KP303 power strip.

IMG_20200523_215703.jpg
hmmm that's my next task, to pack everything into a nice little housing instead of just sitting around on an connected to breadboards by jumper cables.
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,945
Reaction score
14,252
Location
Palo Alto, Bay Area
Just built this... Prototype of a micro reefpi.

1 external temp sensor, header for sht31d or any other i2c device, two 12v pwm light channels.

Had to use that horrendous buck converters, but for this application it's fine...

Having an issue with the second light channel, but I'll figure it out eventually.

No power control on this as power will be controlled via a TP Link KP303 power strip.

IMG_20200523_215703.jpg
Looking good :)
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,945
Reaction score
14,252
Location
Palo Alto, Bay Area
Ad a look but I don't think there's any way to setup a driver for pH that reads SPI, the drivers that are there seem to use i2c. There is a digital file option but not sure how to format the file and how it would work i.e. where does it live how do you clean it up etc. Oh well guess I just buy the ds18b20, its only $15 just wanted to use the probes I had here and it was fun to get the Analogue to Digital converter running. Might come in useful somewhere down the line.
The file driver is pretty simple, any external program can write a value in a textfile, and reef-pi can read it and use it as analog input. File path is configured during the driver creation
 

mawhins

Member
View Badges
Joined
Jul 4, 2019
Messages
50
Reaction score
131
The file driver is pretty simple, any external program can write a value in a textfile, and reef-pi can read it and use it as analog input. File path is configured during the driver creation
Is there a particular format for the file or is it just a series of values separated by a linefeed?
 

Yov

Member
View Badges
Joined
May 24, 2020
Messages
12
Reaction score
10
Hello Ranjib, first of al thank you for al the effort you put un to this! Reef-pi sure is a great open source platform!

i updated to the 3.4 becous the humidity sensor option is what i am looking for, but,


i can not seem to get a reading on ether the temp or humidity from the I2C impout;
when i sellect the option: ph status activated. I get the error :
{"error":"stats for id: '2' not found"} | HTTP 404
{"error":"stats for id: '1' not found"} | HTTP 404


and when i sellect the option : ph status inactiv
{"error":"write /dev/i2c-1: remote I/O error"} | HTTP 404

i dubble checked the wiring and this seems fine.

Also double checked the adress of the sensor, i get a sensor on adres 44 when i use the terminal
next to the SHT31-D i only have 1 digital temperature sensor on there this works perfect.

kind regards
Yov
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,945
Reaction score
14,252
Location
Palo Alto, Bay Area
Is there a particular format for the file or is it just a series of values separated by a linefeed?
just a simple text file with a single value. reef-pi will poll. that value as dictated by the check interval
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,945
Reaction score
14,252
Location
Palo Alto, Bay Area
Hello Ranjib, first of al thank you for al the effort you put un to this! Reef-pi sure is a great open source platform!

i updated to the 3.4 becous the humidity sensor option is what i am looking for, but,


i can not seem to get a reading on ether the temp or humidity from the I2C impout;
when i sellect the option: ph status activated. I get the error :
{"error":"stats for id: '2' not found"} | HTTP 404
{"error":"stats for id: '1' not found"} | HTTP 404


and when i sellect the option : ph status inactiv
{"error":"write /dev/i2c-1: remote I/O error"} | HTTP 404

i dubble checked the wiring and this seems fine.

Also double checked the adress of the sensor, i get a sensor on adres 44 when i use the terminal
next to the SHT31-D i only have 1 digital temperature sensor on there this works perfect.

kind regards
Yov
Hi Yov.
Thank you for the kind words and welcome to reef2reef.
You have to provide the decimal equivalent of the hexadecimal i2c address. For me its 68. Here is an example screenshot. Make sure you enable i2c via raspi-config (or by editing /boot/config.txt)

sht31d-driver.png
 

Simonv92

Member
View Badges
Joined
Oct 21, 2014
Messages
35
Reaction score
30
Location
Italy
@Ranjib at the moment the only way to send to Reef-pi an ON/OFF input is by the Raspberry header right? there's no support for any I2C based ADC? Thank you :)

Also in the latest version I'm having troubles showing the light graph in the main page. Now I've setup only 1 jack in Interval Light mode. Output works fine but on the main page I can't show the light graph.
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,945
Reaction score
14,252
Location
Palo Alto, Bay Area
@Ranjib at the moment the only way to send to Reef-pi an ON/OFF input is by the Raspberry header right? there's no support for any I2C based ADC? Thank you :)

Also in the latest version I'm having troubles showing the light graph in the main page. Now I've setup only 1 jack in Interval Light mode. Output works fine but on the main page I can't show the light graph.
The light graphs are broken since 3.0 due to significant changes in pwm profiles. 3.0 introduced a host of different pwm profiles that can be applied (including lunar, sine , random profiles...) and we didnt have enough time to implement those in the charts. 3.5 (will be released in couple of weeks) will have interval (auto), fixed and diurnal charts (its already in master, i just have to cut a release).

Currently the only i2c based ADC thats supported is the official ph driver (pico board from blueacro also utilizes an ADC based on i2c). If theres a common chip that you think will be useful for general audience, we are happy to add a driver for the same. Since 3.0 HAL inclusion, adding new driver is pretty straight forward (which is why we have now so many different types of drivers in reef-pi).
 

How often do you clean your filter socks?

  • Every few days

    Votes: 179 26.2%
  • Every weekend

    Votes: 117 17.1%
  • Every other week

    Votes: 55 8.1%
  • Every month

    Votes: 27 4.0%
  • When they look dirty

    Votes: 57 8.3%
  • I don't ever clean them

    Votes: 8 1.2%
  • I don't use filter socks

    Votes: 214 31.3%
  • Other (please explain)

    Votes: 26 3.8%

Online statistics

Members online
2,282
Guests online
4,883
Total visitors
7,165
New Wave Aquaria
Top