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

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?
 
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?
 
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}]
 
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
 
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
 
@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
 
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 ?
 
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
 
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
 
reef-pi is running ? Can you check via command line , I suspect it’s not.
 
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:~ $
 
Just built the reef-pi computer, now I have to get the other boards and relays. Ranjib, was there an updated BOM or amazon shopping list available?
 
@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
 
@Ranjib

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

Did I miss something?



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
Yeah, I moved it to dashboard itself, its now located on the bottom right of the dashboard.
 
As an Amazon Associate we earn from qualifying purchases.
Hi again reef-pi is running.

Screenshot from 2018-08-05 17-26-11.png
Ok. Can check the log , let it run, and hit refresh on browser. If reef-pi is running /api/info call should be working, which is what browser is complaining about. Lets verify that,

Code:
pi@raspberrypi:~ $ journalctl -fu reef-pi.service
-- Logs begin at Sat 2018-08-04 15:03:04 PDT. --
Aug 05 14:30:20 raspberrypi reef-pi[7775]: 2018/08/05 14:30:20 lighting-subsystem: Setting PWM value: 40  at channel: 2
Aug 05 14:30:20 raspberrypi reef-pi[7775]: 2018/08/05 14:30:20 lighting-subsystem: Setting PWM value: 20  at channel: 3
Aug 05 14:30:20 raspberrypi reef-pi[7775]: 2018/08/05 14:30:20 lighting-subsystem: Setting PWM value: 53  at channel: 4
Aug 05 14:30:20 raspberrypi reef-pi[7775]: 2018/08/05 14:30:20 health check: Used memory: 20.85  Load5: 0.28
Aug 05 14:30:50 raspberrypi reef-pi[7775]: 2018/08/05 14:30:50 lighting-subsystem: Setting PWM value: 40  at channel: 6
Aug 05 14:30:50 raspberrypi reef-pi[7775]: 2018/08/05 14:30:50 lighting-subsystem: Setting PWM value: 18  at channel: 5
Aug 05 14:30:50 raspberrypi reef-pi[7775]: 2018/08/05 14:30:50 lighting-subsystem: Setting PWM value: 12  at channel: 0
Aug 05 14:30:50 raspberrypi reef-pi[7775]: 2018/08/05 14:30:50 lighting-subsystem: Setting PWM value: 40  at channel: 2
Aug 05 14:30:50 raspberrypi reef-pi[7775]: 2018/08/05 14:30:50 lighting-subsystem: Setting PWM value: 20  at channel: 3
Aug 05 14:30:50 raspberrypi reef-pi[7775]: 2018/08/05 14:30:50 lighting-subsystem: Setting PWM value: 53  at channel: 4
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top