reef-pi 4.0 release announcement

robbyg

Valuable Member
View Badges
Joined
Sep 8, 2019
Messages
2,303
Reaction score
2,859
Rating - 0%
0   0   0
I came across this the other day and thought this would make a nice addition to the reefpi hardware.
I think being able to see the TDS value and set an alarm for when it goes over Zero would be useful.
I know the code would need to be updated to accommodate it but it's something to consider for the next major release.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I came across this the other day and thought this would make a nice addition to the reefpi hardware.
I think being able to see the TDS value and set an alarm for when it goes over Zero would be useful.
I know the code would need to be updated to accommodate it but it's something to consider for the next major release.

With 4.0 this is almost possible. All the driver support and testing is done, we are at the last leg of understanding the calibration process. Code contribution welcome :) @robbyg https://github.com/reef-pi/reef-pi/issues/1192
 

natebatey

New Member
View Badges
Joined
Jan 9, 2021
Messages
10
Reaction score
6
Location
home
Rating - 0%
0   0   0
Hi, Thank You for reef-pi!
So what is the deal with the dashboard scaling? I thought it was db corruption, but I checked that and it is all valid data now, but the dashboard is still scaled 0-80 for my temperature. If I downgrade to version 3.0 it's ok, but not when I go back to 4.0.
Please help, this is frustrating.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi, Thank You for reef-pi!
So what is the deal with the dashboard scaling? I thought it was db corruption, but I checked that and it is all valid data now, but the dashboard is still scaled 0-80 for my temperature. If I downgrade to version 3.0 it's ok, but not when I go back to 4.0.
Please help, this is frustrating.
Sorry about that pain. This will be fixed in next release.

The fixed y axis range behavior was removed in 4.0 due to some inconsistent behavior (Celsius to Fahrenheit).

From the next version of reef-pi (4.1), users will now be able to specify their custom Y-axis bounds as well as color. The work is already done for the temperature module. I am working on extending the same capabilities to the ph module. I'll cut a 4.1 release soon after that. stay tuned
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Sorry about that pain. This will be fixed in next release.

The fixed y axis range behavior was removed in 4.0 due to some inconsistent behavior (Celsius to Fahrenheit).

From the next version of reef-pi (4.1), users will now be able to specify their custom Y-axis bounds as well as color. The work is already done for the temperature module. I am working on extending the same capabilities to the ph module. I'll cut a 4.1 release soon after that. stay tuned
BTW, we have a few similar issues of fixed ranges across ph module calibration (0-14 restriction), since that module can be used for things like TDS meter, etc.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi, Thank You for reef-pi!
So what is the deal with the dashboard scaling? I thought it was db corruption, but I checked that and it is all valid data now, but the dashboard is still scaled 0-80 for my temperature. If I downgrade to version 3.0 it's ok, but not when I go back to 4.0.
Please help, this is frustrating.
I just released 4.1 with fix for this specific issue. Try it out and let us know what you think
 

Litserv

Community Member
View Badges
Joined
May 3, 2020
Messages
62
Reaction score
60
Rating - 0%
0   0   0
First of all: Thanks for Reef-Pi again!

It took me a while to update from 3.5 to 4.1 (update to 4.0 didn't work).

I'm facing two issues:

(1) Issue: Using 'timer' together with 'macro'

This is, what I wanted to achieve: depending in daytime lower temperature by 0.5 degrees (btw. without chiller).
This is the way how I tried:

'timer' -> 'function' -> macros / macroName (one for night, one for day; below schedule for night shown)
'schedule': month=* / day=* / hour=20 / minute=0 / second=0
'macro_night' -> step1: 'temperature' / temperature_day / TurnOff
step2: 'temperature' / temperature_night / TurnOn
'temperature_night' -> 'equipment' -> 'heater'

similar everything for temperature_day

Both macros are working; 'temperature' is changed running one of the macros manually.
But the timers don't trigger the related/dependend macro.

What's wrong? no error message...

(2) Issue: Dashboard with lights

I'm using daylight and moonlight with the profile 'sine'. Technically the lights are working.
But not the dashboard. I get the following error: "Unsupported light chart for profile: sine"

Both issues had been with 3.5; now as well with 4.1.
 

Litserv

Community Member
View Badges
Joined
May 3, 2020
Messages
62
Reaction score
60
Rating - 0%
0   0   0
Another issue, concerning not Reef-Pi itself, but the documentation:

I miss a detailed documentation, something like a Wiki or 'HowTo' with examples. I couldn't find any in the internet.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Another issue, concerning not Reef-Pi itself, but the documentation:

I miss a detailed documentation, something like a Wiki or 'HowTo' with examples. I couldn't find any in the internet.
We don’t have how to docs. Something like that will be nice, but given all the ways folks are using it and the rate at which reef-pi is evolving, it’s unlikely I’ll be able to do it in near time.
Meanwhile google and r2r threads are your best bet
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
First of all: Thanks for Reef-Pi again!

It took me a while to update from 3.5 to 4.1 (update to 4.0 didn't work).

I'm facing two issues:

(1) Issue: Using 'timer' together with 'macro'

This is, what I wanted to achieve: depending in daytime lower temperature by 0.5 degrees (btw. without chiller).
This is the way how I tried:

'timer' -> 'function' -> macros / macroName (one for night, one for day; below schedule for night shown)
'schedule': month=* / day=* / hour=20 / minute=0 / second=0
'macro_night' -> step1: 'temperature' / temperature_day / TurnOff
step2: 'temperature' / temperature_night / TurnOn
'temperature_night' -> 'equipment' -> 'heater'

similar everything for temperature_day

Both macros are working; 'temperature' is changed running one of the macros manually.
But the timers don't trigger the related/dependend macro.

What's wrong? no error message...

(2) Issue: Dashboard with lights

I'm using daylight and moonlight with the profile 'sine'. Technically the lights are working.
But not the dashboard. I get the following error: "Unsupported light chart for profile: sine"

Both issues had been with 3.5; now as well with 4.1.
Light dashboard is only supported for a few profiles, single channel right now. I plan to improve it in future,

Regarding the macro issue, we’ll need more details, preferably in your build thread to keep things in context
 

Urtoo

Well-Known Member
View Badges
Joined
Jul 1, 2019
Messages
688
Reaction score
924
Rating - 0%
0   0   0
How can I upgrade from 4.0 to 4.1 from the web interface.
Ricky, but I am traveling and have time, but not ssh access to my pi
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
How can I upgrade from 4.0 to 4.1 from the web interface.
Ricky, but I am traveling and have time, but not ssh access to my pi
This option is present on the admin section under configuration. Specify 4.1 and hit upgrade there
 

Urtoo

Well-Known Member
View Badges
Joined
Jul 1, 2019
Messages
688
Reaction score
924
Rating - 0%
0   0   0
My bad, I did not post here after I cold started the Pi, it worked.
it needed the reload, and it works perfect.
 

Marc Kruithof

New Member
View Badges
Joined
Feb 16, 2018
Messages
14
Reaction score
15
Rating - 0%
0   0   0
Hi, since 4.0 there is a MQTT integration. I'm trying to get it working (have 4.1), so I can use HASS to show stuff on my dash. Only I have one problem. It is not publishing any topic. I looked at some code, and to me it looks like it is hardcoded and should use reef-pi as a topic. Am I missing something here? If it is working, it would be nice to make it configurable since I use more than one reef-pi's.

It now shows:
# > mosquitto_sub -v -h xxx.xxx.xxx.xxx -p 1883 -t '#'
tele/tasmota_CF1608/STATE {"Time":"2021-02-04T12:41:21","Uptime":"0T00:10:09","UptimeSec":609,"Heap":26,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":1,"POWER":"ON","Dimmer":52,"Color":"0,0,0,0,133","HSBColor":"0,0,0","White":52,"CT":500,"Channel":[0,0,0,0,52],"Scheme":0,"Fade":"ON","Speed":3,"LedTable":"ON","Wifi":{"AP":1,"SSId":"Looney2","BSSId":"XX:XX:XX:XX:XX:XX","Channel":1,"RSSI":70,"Signal":-65,"LinkCount":1,"Downtime":"0T00:00:03"}}
tele/tasmota_CF1608/HASS_STATE {"Version":"9.2.0(tasmota)","BuildDateTime":"2020-12-17T10:05:31","Module or Template":"H801","RestartReason":"Software/System restart","Uptime":"0T00:10:10","Hostname":"tasmota_CF1608-5640","IPAddress":"XXX.XXX.XXX.XXX","RSSI":"68","Signal (dBm)":"-66","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":99}
system_load5 0.050000
system_mem_used 4.050000
system_under_voltage 0.000000
temp_reading 24.440000
equipment_heater_state 1.000000
temp_down 0.000000
temp_heater 300.000000
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi, since 4.0 there is a MQTT integration. I'm trying to get it working (have 4.1), so I can use HASS to show stuff on my dash. Only I have one problem. It is not publishing any topic. I looked at some code, and to me it looks like it is hardcoded and should use reef-pi as a topic. Am I missing something here? If it is working, it would be nice to make it configurable since I use more than one reef-pi's.

It now shows:
# > mosquitto_sub -v -h xxx.xxx.xxx.xxx -p 1883 -t '#'
tele/tasmota_CF1608/STATE {"Time":"2021-02-04T12:41:21","Uptime":"0T00:10:09","UptimeSec":609,"Heap":26,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":1,"POWER":"ON","Dimmer":52,"Color":"0,0,0,0,133","HSBColor":"0,0,0","White":52,"CT":500,"Channel":[0,0,0,0,52],"Scheme":0,"Fade":"ON","Speed":3,"LedTable":"ON","Wifi":{"AP":1,"SSId":"Looney2","BSSId":"XX:XX:XX:XX:XX:XX","Channel":1,"RSSI":70,"Signal":-65,"LinkCount":1,"Downtime":"0T00:00:03"}}
tele/tasmota_CF1608/HASS_STATE {"Version":"9.2.0(tasmota)","BuildDateTime":"2020-12-17T10:05:31","Module or Template":"H801","RestartReason":"Software/System restart","Uptime":"0T00:10:10","Hostname":"tasmota_CF1608-5640","IPAddress":"XXX.XXX.XXX.XXX","RSSI":"68","Signal (dBm)":"-66","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":99}
system_load5 0.050000
system_mem_used 4.050000
system_under_voltage 0.000000
temp_reading 24.440000
equipment_heater_state 1.000000
temp_down 0.000000
temp_heater 300.000000
did you reload reef-pi after enabling mqtt? do you see any error in the logs after reloading it?
 

Marc Kruithof

New Member
View Badges
Joined
Feb 16, 2018
Messages
14
Reaction score
15
Rating - 0%
0   0   0
did you reload reef-pi after enabling mqtt? do you see any error in the logs after reloading it?
I did reload, even reboot the pi, since I made a mistake in port. Afer correcting it, all errors were gone. It works, only it does not show the topic in MQTT.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
i just noticed, these are all reef-pi metrics
Code:
system_load5 0.050000
system_mem_used 4.050000
system_under_voltage 0.000000
temp_reading 24.440000
equipment_heater_state 1.000000
temp_down 0.000000
temp_heater 300.000000
 

Marc Kruithof

New Member
View Badges
Joined
Feb 16, 2018
Messages
14
Reaction score
15
Rating - 0%
0   0   0
It is sending the messages to MQTT yes.... But there is no topic. MQTT uses topics to be able to subcribe to it. This way the devices know from who the messages are comming from.
I expected someting like:
reef-pi/temp_reading 24.440000

With also subtopic it would be even bether.
tele/reef-pi/temp_reading 24.440000

A nice explenation could be found here: https://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices/
 

Algae invading algae: Have you had unwanted algae in your good macroalgae?

  • I regularly have unwanted algae in my macroalgae.

    Votes: 44 35.2%
  • I occasionally have unwanted algae in my macroalgae.

    Votes: 27 21.6%
  • I rarely have unwanted algae in my macroalgae.

    Votes: 9 7.2%
  • I never have unwanted algae in my macroalgae.

    Votes: 10 8.0%
  • I don’t have macroalgae.

    Votes: 31 24.8%
  • Other.

    Votes: 4 3.2%
Back
Top