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

LionHeart2017

Active Member
View Badges
Joined
Sep 13, 2017
Messages
185
Reaction score
321
Location
Lincolnshire
Rating - 0%
0   0   0

LionHeart2017

Active Member
View Badges
Joined
Sep 13, 2017
Messages
185
Reaction score
321
Location
Lincolnshire
Rating - 0%
0   0   0
I seem to have lost my dashboard, think I tried adding another column? to add health check? on the dashboard along with equipment, I had altered the height of equipment so the bars was smaller, I've updated to rc3 but still cannot access dashboard get a message that something went wrong
 

LionHeart2017

Active Member
View Badges
Joined
Sep 13, 2017
Messages
185
Reaction score
321
Location
Lincolnshire
Rating - 0%
0   0   0
Here's a screen
Screenshot_20181112-005746_Chrome.jpeg
 
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
Here's a screen
Screenshot_20181112-005746_Chrome.jpeg
Thank you so much for testing this. reef-pi should be still operational and you should be able to access all other tabs. Can you share a screenshot from laptop or make the phone screenshot in landscape view (sideways), the error is not fully visible in the screenshot .
This is the error that multiple other users have reported, and we have not been able to reproduce. But we did add an "error boundary" which prevents the whole app UI to not crash, and the error is only contained within the dashboard only. This is the exact reason I released rc3 instead of final 2.0, I had a feeling that theres this particular bug that you just encountered and I think couple of other folks have encountered as well, but we have not been able to reproduce it on our side, hence not been able to fix it. But with the error message, we are pretty confident that we'll be able to reproduce and fix it

Thank you again for testing it out, and I'll work on a fix right now..if possible just share a better screenshot
 
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
Yup, @LionHeart2017 I have just pushed a fix to this. https://github.com/reef-pi/reef-pi/pull/639
This fix will address the bug thats crashing the dashboard. But I think this is not the root cause, and theres another bug thats causing a bad dashboard configuration to be saved in the first place. You can check your current dashboard configuration like this:
- Right click on the dashboard and click on the "inspect"
Screen Shot 2018-11-12 at 7.13.27 AM.png


- Once the developer console appears on the lowe part of the browser, navigate to the network tab in it, and hit refresh, you'll see all the network calls that the browser (chromium in this case) is making to reef-pi , one of them is dashboard (you'll see the calls on the left side of the developer console). If you click on it, you'll see the details of response, we need that exact data, I suspect its malformed,
Screen Shot 2018-11-12 at 7.14.10 AM.png

thank you for helping us through this,
 
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
this is what I get ranjib

{"column":1,"row":2,"width":500,"height":100,"grid_details":[[{"type":"equipment","id":"current"}]]}
Thank you. We are able to reproduce it, I think. One last check, your issue is persistent? i.e. your dashboard does not fix even if you refresh your browser?
 

LionHeart2017

Active Member
View Badges
Joined
Sep 13, 2017
Messages
185
Reaction score
321
Location
Lincolnshire
Rating - 0%
0   0   0
Thank you. We are able to reproduce it, I think. One last check, your issue is persistent? i.e. your dashboard does not fix even if you refresh your browser?
No, not fixed yet, I've unchecked dashboard and reloaded reef-pi but still the same
Also there is an error which looks related, here's a pic
1541988695446~2.jpeg
1541988709582~2.jpeg
 

Brad Cox

Active Member
View Badges
Joined
Mar 18, 2017
Messages
346
Reaction score
399
Rating - 0%
0   0   0
I used reef-pi during last Christmas as well. Now I have one installed in each room for temperature sensing and controlling all the equipment. The one in hallroom also uses timer to turn on/off TV/Xfinity that my son uses to watch cartoon :-) , I find it easier to let reef-pi switch off the TV instead of us, that way he is not so angry on us :-) LOL

Ha very good idea!

The software is so stable.
 

LionHeart2017

Active Member
View Badges
Joined
Sep 13, 2017
Messages
185
Reaction score
321
Location
Lincolnshire
Rating - 0%
0   0   0
A few little things I notice on mobile, the burger bar menu changes position upon choosing configuration as the first 2 pics, also the text isn't centred on the switch in off position, and turning it on and off triggers Google at bottom of screen on last pic, minor things and maybe me and some ocd[emoji13]
Screenshot_20181112-030639_Chrome.jpeg
Screenshot_20181112-030654_Chrome.jpeg
Screenshot_20181112-030748_Chrome.jpeg
Screenshot_20181112-030748_Chrome.jpeg
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
A few little things I notice on mobile, the burger bar menu changes position upon choosing configuration as the first 2 pics, also the text isn't centred on the switch in off position, and turning it on and off triggers Google at bottom of screen on last pic, minor things and maybe me and some ocd[emoji13]
Screenshot_20181112-030639_Chrome.jpeg
Screenshot_20181112-030654_Chrome.jpeg
Screenshot_20181112-030748_Chrome.jpeg
Screenshot_20181112-030748_Chrome.jpeg
@LionHeart2017 I have a fix for on/off toggle not centering the status.
I haven't been able to reproduce the hamburger issue - which phone/browser are you using? [Edit - I can see the wrapping is due to the length of the name.]
What is that Google bar on the bottom of the screen?
 
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

LionHeart2017

Active Member
View Badges
Joined
Sep 13, 2017
Messages
185
Reaction score
321
Location
Lincolnshire
Rating - 0%
0   0   0
@LionHeart2017 I have a fix for on/off toggle not centering the status.
I haven't been able to reproduce the hamburger issue - which phone/browser are you using? [Edit - I can see the wrapping is due to the length of the name.]
What is that Google bar on the bottom of the screen?
I'm Samsung s9, chrome, it's a search from Google, if I hold my finger on text on screen it will let me pull up a half page of related things to the word, it seems to trigger it when you go from on to off.

@Ranjb I've updated reef-pi but still no dashboard working, same error, reloaded reef-pi, rebooted pi, still persist
 

Nicolas Sabrun

Active Member
View Badges
Joined
May 23, 2016
Messages
191
Reaction score
89
Location
Petaluma CA
Rating - 0%
0   0   0
If I remember correctly VCC/GND originate from the PB4, the daisy chain is the first PB4 channel 1 to the head unit, then ports 2->1->2-> etc. Then one of the modules had to be last, can't remember if it was Temp or Salinity. Can't remember if VCC was 5v or 3.3V. But I'm pretty sure the I2C would work whether the SDA/SCL lines were either.

I couldn't find my drive or at least locate the project on one of them. But I was able to find an old box with RKL gear in it. It won't take too much effort to recreate the library, but I can't promise on time since I'm simply bogged down with personal projects at the moment.

You can have my old head unit when I'm done testing if you want it.

I have an RKE or had. It doesn't matter the order for the module except you need one PB4 at the start then everything is daisy chained. One wire from PB4 goes to head unit. The second one goes to the next module and so on. All the connections are 6 wires and I got no clue witch one is what. I am just hoping that I could get pi to control all my modules. Like recreating the head unit with a pi. I guess it is going to be a long project since I don't have any programming knowledge.
 
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'm Samsung s9, chrome, it's a search from Google, if I hold my finger on text on screen it will let me pull up a half page of related things to the word, it seems to trigger it when you go from on to off.

@Ranjb I've updated reef-pi but still no dashboard working, same error, reloaded reef-pi, rebooted pi, still persist
You dont have to reboot it. Try doing a hard refresh of your 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
Now found this in log
Screenshot_20181112-042100_Chrome.jpeg
Screenshot_20181112-041922_Chrome.jpeg
Hmm.. i;ll need some time to get to the bottom of this, i need Pi to reproduce this, since its not happening on my end, I'll get back to this in couple of days, after Im back in US. Meanwhile if this issue does not resolve, then try this, its bit complicated but its basically command line way of fixing things using the API, bypassing the UI. From your past answer, it looks like you have a wrong dashboard configuration where you have one row and two columns are specified, but details of only a single cell is present, one is missing, which is what causing the issue, the command below will reset dashboard configuration to a single row single column, and then you can get back to working dashboard.
first create a good dashboard configuration, your current one is this:
Code:
{
  "column":1,
  "row":2,
  "width":500,
  "height":100,
  "grid_details":[
     [{"type":"equipment","id":"current"}]
   ]
}
Notice details of one cell is missing, so create a good configuration like this and save it as dashboard.json , we'll just change the row to 1 to make it valid
Code:
{
  "column":1,
  "row":1,
  "width":500,
  "height":100,
  "grid_details":[
     [{"type":"equipment","id":"current"}]
   ]
}
Now,, use command line to update the configuation. The first command does the sign in and saves cookie, which is then used in the second command to reset the dashboard config.
Code:
curl -X POST -d '{"password":"reef-pi", "user":"reef-pi"}' -c cookie.txt   http://<reef-pi IP>/auth/signin
curl -b  cookie.txt   -X POST -d @dashboard.json http://<reef-pi IP>/api/dashboard
 

MaccaPopEye

Well-Known Member
View Badges
Joined
Jan 5, 2016
Messages
697
Reaction score
1,224
Rating - 0%
0   0   0
I am curious , Xbox and even track power supply has enclosed modules with plastic housing. So, is there any specific detail that we should look for ? Like wattage ? And also it must involve the type of circuit as well. Traco psu can be pretty high wattage , and still enclosed in plastic housing . They power rockets .

This is a very important topic as I bet lots of folks will need this info , and I really want to keep safety as one of the most important aspect of this project. If you have any specific guidance here , I’ll gladly put it in the official docs as well. We have a specific section around safety (fire hazard and electrical shocks )
Metal enclosures like this are almost always for EMI / radiated emissions. Everything becomes a radio transmitter, so these are the attenuation mechanisms.

Most plastics designed for electronics should be rated as UL 94V0, which is filled with enough flame retardant materials to not keep a flame for more than 10 seconds.

https://en.m.wikipedia.org/wiki/UL_94

I agree - don’t mess with high power lightly. There are a number of factors to consider (clearance, current, wire sizing, fusing, etc).

This is something that concerns me as well but I also haven't been able to find an easy answer.

As far as I am aware Australia has some pretty strict standards when it comes to mains 240V power but it looks like anything sold in Aus might have to be individually tested before it can get approved and there isn't a clear standard for what plastics are ok.

I pulled apart a number of Aus certified power boards and plastic power bricks and none of them had any fire retardant material inside so anything they have must be built into the plastic. But I have also seen a number of Aus power boards completely melted due to being overloaded so it looks like they either weren't very fire retardant or the standard is pretty low.

I have found out that some PLA 3D printing filaments are actually quite flame retardant and won't hold a flame at all but some others aren't (usually ones with additives). I'll definitely be checking with some scrap later when I have a chance to see how the PLA I used goes when lit on fire.
 

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

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

    Votes: 32 22.4%
  • 75% live rock, 25% live sand

    Votes: 15 10.5%
  • 25% live rock, 75% live sand

    Votes: 10 7.0%
Back
Top