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

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.
 
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
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
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
 

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Just to be sure,start raspberry pi,log in and than start my browser with my ip:192.168.1.12 and ther is the login screen.Try to log in as pi and pw:raspberry then i got that red line if i try to refresh than go back to the login page again.Never was that hard,i do something wrong

Screenshot from 2018-08-05 17-42-48.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
sorry pics again

Screenshot from 2018-08-05 17-42-48.png
Theres nothing wrong / error in the log, whats does browser refresh does, can you share a screen of the browser ?
 
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
Theres nothing wrong / error in the log, whats does browser refresh does, can you share a screen of the browser ?
does this work?
Code:
curl -u username:password http://localhost/api/capabilities
change username/password as per your setup
 
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
Just to be sure,start raspberry pi,log in and than start my browser with my ip:192.168.1.12 and ther is the login screen.Try to log in as pi and pw:raspberry then i got that red line if i try to refresh than go back to the login page again.Never was that hard,i do something wrong

Screenshot from 2018-08-05 17-42-48.png
I can be an authentication issue. check with api that username/password is correct.
BTW, i have added a command line way of resetting password in reef-pi as part of the new beta. We'll see if thats required,
 
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
Hi Ranjib try to download again,i think something was wrong wit download or install.
can you elaborate a little bit more? You were not able to download or not able to install?
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
So the PWM module Kicad files are up on Github after 3 attempts :-/

I've changed to version 0.2 due to misalignment of some outputs (not sequential) and removal off all via's

upload_2018-8-6_7-31-20.png


I'v followed this guide https://jnavila.github.io/plotkicadsch/ describing which files would be required for sharing. I'm not using Linux so I can't follow the complete guide, so I just copied the files manually. The PWM.zip file contains all the Gerber and Drill files to order at JLCPCB.com but as stated these files have not been tested in any way yet! However you can view how they would look like and get an indication of PCB and transportation costs.

Do note that this PWM PCB can't be directly connected to the PI as it conflicts in size with the USB and Network connectors on the PI. It requires the HAT on the PI first. Also the 3D picture doesn't show the correct 6 pin above the capacitor but that has no impact on the functionality of the PCB (should be a stackable 6 pin 2.54mm pitch male/female connector.

The files should be available at Github under Reef-PI_PCBs


Don't know why I can't delete the 2nd image

upload_2018-8-6_7-31-20.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
For anyone else who want to check out the pcb files, they are here: https://github.com/vandegraaf/Reef-PI_PCBs
These files only work with Kicad version 5. I had to update my kicad.
:-) thanks @wykat , love them. You are generating the finished pcb renderings on kicad itself ?

some screen shots.
front trace


Screen Shot 2018-08-05 at 11.12.58 PM.png

silk screen layer
Screen Shot 2018-08-05 at 11.12.35 PM.png

kicad schematics
Screen Shot 2018-08-05 at 11.08.38 PM.png


very nice :-)
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
You are generating the finished pcb renderings on kicad itself ?

I've done 2 different things for making the renderings: ALT-3 in Kicad generates the renderings with components
Generate a quote at https://jlcpcb.com/quote and add the PWM.zip file and it will generate the PCB renderings. You then also have the option to view the Gerber files and look for any problems :)

PS: I've just updated some files to have a clean BOM and housing information between the .sch and .pcb files. As a result the transistor are 180 degrees rotated (as it should be) and the BOM is complete (.csv and .html files). Have to look if we can generate a Reef-PI BOM HTML sheet :p

I've learned that some things break when you upgrade from Kicad 4 to Kicad 5 due to different libraries. Will now have a look at the HAT to get that clean as well.

PS: How have you created the top B/W picture. I wanted to such picture in the past to print out and define which parts to change.
PPS: I've now included the digikey libraries as they will make it simpler to add component information. Plan to use those in the future.
PPPS: For the silk screen I will have to update the gerber files as well.....
 
Last edited:

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Hi Ranjib,i told you that is only my fault try to log in as PI and PW:raspberry.Finally as i read thru your post than i can see log in and pw first time is reef-pi.Sorry for the false alarm,now i start to rebuild again.And as always thank you for your help.
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
received the first PCB's today :)

I wanted to make some pictures in detail but unfortunately a girl friend likes my camera too much :mad:

First impression however is very positive. Nevertheless I would like to have a more close up.
 

sjeff35

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

I think I may have uncovered another issue with the Beta 7.

My timer for my Fuge light didn't run last night or this morning. I just deleted them and created a new test timer:

upload_2018-8-6_9-11-36.png

If my thinking is correct, this should have turned on the Equipment "FugeLht" on at 9:07 am , however, there's nothing in the log:

upload_2018-8-6_9-12-29.png


Here's the output from the API:

[{"id":"9","minute":"7","day":"*","hour":"9","second":"0","name":"Test","type":"equipment","reminder":{"title":"","message":""},"equipment":{"revert":false,"id":"25","on":true,"duration":0},"enable":false}]

Did I set it up incorrectly? The Fugelight timer I had setup was working flawlessly.


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
@Ranjib

I think I may have uncovered another issue with the Beta 7.

My timer for my Fuge light didn't run last night or this morning. I just deleted them and created a new test timer:

upload_2018-8-6_9-11-36.png

If my thinking is correct, this should have turned on the Equipment "FugeLht" on at 9:07 am , however, there's nothing in the log:

upload_2018-8-6_9-12-29.png


Here's the output from the API:

[{"id":"9","minute":"7","day":"*","hour":"9","second":"0","name":"Test","type":"equipment","reminder":{"title":"","message":""},"equipment":{"revert":false,"id":"25","on":true,"duration":0},"enable":false}]

Did I set it up incorrectly? The Fugelight timer I had setup was working flawlessly.


Thanks
I found it last night, through my all in one build. this is another UI bug :-( . I'll patch it tonight. The 'enable' field should be true. You can fix it via API, till I patch and release a new build. Save the API output in json file, edit the "enable" field to change its value to true (without quote) and then update the timer with this command (assuming the file name is timer.json)
Code:
curl -u user:password -X POST -d @timer.json http://<IP>/api/timers/9
that should do it.
 

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

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

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

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

    Votes: 10 7.2%
Back
Top