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
@Ranjib Is there a way to kill the running Macro?

Thanks
Not yet. But also, it should never get stuck. If you are seeing it in running mode, thats due to the bug where it failed and didnt update its status as failed, instead stayed on running (its not actually running, its just a bug in the UI). I am working on a fix.
Thanks a lot for testing it out
 
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
Not yet. But also, it should never get stuck. If you are seeing it in running mode, thats due to the bug where it failed and didnt update its status as failed, instead stayed on running (its not actually running, its just a bug in the UI). I am working on a fix.
Thanks a lot for testing it out
while I work on the fix, you can check and fix the macro using API. If you can share the output of this, I'll be able to detect the wrong configuration, and suggest a fix
Code:
curl -u username:password http://reef-pi-IP/api/macros
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
Not yet. But also, it should never get stuck. If you are seeing it in running mode, thats due to the bug where it failed and didnt update its status as failed, instead stayed on running (its not actually running, its just a bug in the UI). I am working on a fix.
Thanks a lot for testing it out


Let me know the next steps to take that will help with troubleshooting. Should I reload Reef-pi? Reboot? Just delete the Macro and try again?

I'll wait to hear from you.

Thanks
 
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
Let me know the next steps to take that will help with troubleshooting. Should I reload Reef-pi? Reboot? Just delete the Macro and try again?

I'll wait to hear from you.

Thanks
if you can get the configuration of that macro via UI, that will be awesome.
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
while I work on the fix, you can check and fix the macro using API. If you can share the output of this, I'll be able to detect the wrong configuration, and suggest a fix
Code:
curl -u username:password http://reef-pi-IP/api/macros


I get "unauthorized" when I run that as Pi, with my Password. Does Curl need some specific rights?
 
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 get "unauthorized" when I run that as Pi, with my Password. Does Curl need some specific rights?
Nope, it means your username /password is not correct, are you using the right username and password?
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
Nope, it means your username /password is not correct, are you using the right username and password?

hmmmm, I did some playing around. I'm not using reef-pi as a pw , but.. that's what worked for the curl command. Something to think about.



pi@raspberrypi:~ $ curl -u reef-pi:reef-pi http://192.168.1.141/api/macros
[{"id":"1","name":"Feed Mode","steps":[{"type":"wait","config":{"duration":10}},{"type":"equipments","config":{"id":"21","on":false}},{"type":"wait","config":{"duration":"60"}},{"type":"equipments","config":{"id":"21","on":true}}],"enable":true}]
 
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
hmmmm, I did some playing around. I'm not using reef-pi as a pw , but.. that's what worked for the curl command. Something to think about.



pi@raspberrypi:~ $ curl -u reef-pi:reef-pi http://192.168.1.141/api/macros
[{"id":"1","name":"Feed Mode","steps":[{"type":"wait","config":{"duration":10}},{"type":"equipments","config":{"id":"21","on":false}},{"type":"wait","config":{"duration":"60"}},{"type":"equipments","config":{"id":"21","on":true}}],"enable":true}]

I found the bug. When you are specifying a custom duration for in any of the wait step, its saving the duration as string instead number (notice the 60 seconds value in second wait step is inside quotes, i.e. that the problem), for the time being, you can delete that step and add six, 10 seconds wait step (i.e. dont update the duration of default wait step), and that should get you going, till I fix this UI bug
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
I found the bug. When you are specifying a custom duration for in any of the wait step, its saving the duration as string instead number (notice the 60 seconds value in second wait step is inside quotes, i.e. that the problem), for the time being, you can delete that step and add six, 10 seconds wait step (i.e. dont update the duration of default wait step), and that should get you going, till I fix this UI bug


That works!

I'm loving having Macros!!!

Thanks
 
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
@sjeff35 i have patched/fixed the bug and re-released the package. If possible download and reinstall the 2.0.0-beta7 package
thanks again for all the testing, really appreciate it
 
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 like the new UI. I am in process of updating my builds, here is how the kessil controller looks (it controls kessil lights for all three of my tanks)
Dashboard
Screen Shot 2018-08-05 at 1.29.47 PM.png


Lighting tab
Screen Shot 2018-08-05 at 1.30.06 PM.png


Details of individual lights (notice light profile, ability to choose color for each channel etc)
Screen Shot 2018-08-05 at 1.30.25 PM.png


The only big thing remains is acclimation. Other than that some minor things (like visualization for diurnal profile etc) . But thats it, I dont think there are many more lighting specific features I can think of (may be thunderstorm, but that can be minor feature, built as a separate profile). So lighting module is pretty much hitting its maturity. what you all think ?
 
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
Another thing I want to clarify is that I have not used any other commercial controller other than a kessil spectral controller, so not sure how reef-pi compares with other proprietory controllers. If any of you have used other controllers, do let us know how reef-pi compares to those
 

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Hi to all,Ranjib your regular old student is here.Got a new RPI3 B+ again the 3rd one, ("my wife is happy")and i got this after download and try 2.0.0-beta-7

Could i get some help ,what i do wrong?Thank you. My controller will be expensive 3rd one.

Screenshot from 2018-08-05 16-54-11.png
 
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
reef-pi is running ? Can you check via command line , I suspect it’s not.
 
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
reef-pi is running ? Can you check via command line , I suspect it’s not.
example:
Code:
pi@raspberrypi:~ $ sudo systemctl status reef-pi.service
● reef-pi.service - raspberry pi based reef tank controller
   Loaded: loaded (/lib/systemd/system/reef-pi.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-08-05 00:25:19 PDT; 13h ago
 Main PID: 7775 (reef-pi)
   CGroup: /system.slice/reef-pi.service
           └─7775 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml

Aug 05 14:13:50 raspberrypi reef-pi[7775]: 2018/08/05 14:13:50 lighting-subsystem: Setting PWM value: 39  at channel: 2
Aug 05 14:13:50 raspberrypi reef-pi[7775]: 2018/08/05 14:13:50 lighting-subsystem: Setting PWM value: 17  at channel: 3
Aug 05 14:13:50 raspberrypi reef-pi[7775]: 2018/08/05 14:13:50 lighting-subsystem: Setting PWM value: 50  at channel: 4
Aug 05 14:14:20 raspberrypi reef-pi[7775]: 2018/08/05 14:14:20 lighting-subsystem: Setting PWM value: 16  at channel: 5
Aug 05 14:14:20 raspberrypi reef-pi[7775]: 2018/08/05 14:14:20 lighting-subsystem: Setting PWM value: 39  at channel: 6
Aug 05 14:14:20 raspberrypi reef-pi[7775]: 2018/08/05 14:14:20 lighting-subsystem: Setting PWM value: 9  at channel: 0
Aug 05 14:14:20 raspberrypi reef-pi[7775]: 2018/08/05 14:14:20 lighting-subsystem: Setting PWM value: 39  at channel: 2
Aug 05 14:14:20 raspberrypi reef-pi[7775]: 2018/08/05 14:14:20 lighting-subsystem: Setting PWM value: 17  at channel: 3
Aug 05 14:14:20 raspberrypi reef-pi[7775]: 2018/08/05 14:14:20 lighting-subsystem: Setting PWM value: 50  at channel: 4
Aug 05 14:14:20 raspberrypi reef-pi[7775]: 2018/08/05 14:14:20 health check: Used memory: 20.84  Load5: 0.28
pi@raspberrypi:~ $
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
@Ranjib

Hate to be a pain, but I'm no longer seeing where to edit the Dashboard in Beta 7.

Did I miss something?
@sjeff35 i have patched/fixed the bug and re-released the package. If possible download and reinstall the 2.0.0-beta7 package
thanks again for all the testing, really appreciate it


Tres bien!!!

upload_2018-8-5_15-21-29.png




Aug 05 15:18:10 raspberrypi reef-pi[6637]: 2018/08/05 15:18:10 macro subsystem. Running: Feed Mode
Aug 05 15:18:10 raspberrypi reef-pi[6637]: 2018/08/05 15:18:10 Setting GPIO Pin: 13 State: 1
Aug 05 15:18:10 raspberrypi reef-pi[6637]: 2018/08/05 15:18:10 Setting GPIO Pin: 12 State: 1
Aug 05 15:19:05 raspberrypi reef-pi[6637]: 2018/08/05 15:19:05 Reading temperature from device: 28-0516926005ff
Aug 05 15:19:05 raspberrypi reef-pi[6637]: 2018/08/05 15:19:05 health check: Used memory: 29.99 Load5: 0.27
Aug 05 15:19:06 raspberrypi reef-pi[6637]: 2018/08/05 15:19:06 temperature sub-system: sensor Room value: 76.325
Aug 05 15:19:10 raspberrypi reef-pi[6637]: 2018/08/05 15:19:10 Setting GPIO Pin: 13 State: 0
Aug 05 15:19:10 raspberrypi reef-pi[6637]: 2018/08/05 15:19:10 Setting GPIO Pin: 12 State: 0
Aug 05 15:19:10 raspberrypi reef-pi[6637]: 2018/08/05 15:19:10 macro subsystem. Finished: Feed Mode
 

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

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

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

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

    Votes: 10 7.1%
Back
Top