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

Stephen2

Community Member
View Badges
Joined
Jul 31, 2014
Messages
48
Reaction score
28
Rating - 0%
0   0   0
Hi all

Is there a guide on how to get the dev environment running on Windows?
Everything keeps breaking one after another when trying to build or run the site.

Currently when i run make i get a error of dlfcn.h is missing
 
Last edited:
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 all! I'm trying to configure the 7" touchscreen on my reef-pi. LCD works fine with raspbian, also touch works by I2C. When I enable the display in Reef-Pi I have this error message:

{"error":"strconv.Atoi: parsing \"117\\n\": invalid syntax"} | HTTP 404

Brightness control also works fine
What can it be?
This is Software bug. Can you create a github Issue with details on how to reproduce it ? I can ship a fix by next release then
 
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 all

Is there a guide on how to get the dev environment running on Windows?
Everything keeps breaking one after another when trying to build or run the site.

Currently when i run make i get a error of dlfcn.h is missing
Looks like an windows header file related issue. @Michael Lane uses windows for development, he might be able to help,
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
Looks like an windows header file related issue. @Michael Lane uses windows for development, he might be able to help,
I'm encountering a similar problem now when trying to build on Windows. It looks like the MP3 driver has introduced some new dependencies that don't directly work on Window.

I'll review in more detail to either determine which additional dependencies and installs might be needed. If it turns out to be a pain, I'll probably just implement a mock MP3 driver for windows. It'll probably be a problem to cross compile too...
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
I'm encountering a similar problem now when trying to build on Windows. It looks like the MP3 driver has introduced some new dependencies that don't directly work on Window.

I'll review in more detail to either determine which additional dependencies and installs might be needed. If it turns out to be a pain, I'll probably just implement a mock MP3 driver for windows. It'll probably be a problem to cross compile too...

Yeah the new oto mp3 driver will not cross compile, at least without some tweaking. I read about it the other night but have not spent any further time on it, there should be a way to get it to work, if you look at the Oto open issues one of them were for cross compiling.
 
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
Yeah the new oto mp3 driver will not cross compile, at least without some tweaking. I read about it the other night but have not spent any further time on it, there should be a way to get it to work, if you look at the Oto open issues one of them were for cross compiling.
Yes. Cross compiling will be some work, but windows binary should be ok. https://github.com/hajimehoshi/oto

Let me know if this is not the case,
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
This is Software bug. Can you create a github Issue with details on how to reproduce it ? I can ship a fix by next release then
Hi, no problem, I'll create it now... regarding the guide you've made for the display, the only way to have access to the dashboard is by a web browser right? Now I'm trying to boot Raspbian to Firefox in full screen at the Reff-Pi web page..
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
Thank you very much! I have to run at least 4 sensors, 3 for the led lights and 1 on for the tank.. One strange thing, I'm testing 1 sensor with cable and I read 1 decimal value only by 0.5°C step, with 2 bare bone DS18B20 (the ones in TO92 package) I read 2 decimal but also values like 26.63°C which are strange for a DS18B20, there's a way to make all sensors work the same way?
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
Thank you very much! I have to run at least 4 sensors, 3 for the led lights and 1 on for the tank.. One strange thing, I'm testing 1 sensor with cable and I read 1 decimal value only by 0.5°C step, with 2 bare bone DS18B20 (the ones in TO92 package) I read 2 decimal but also values like 26.63°C which are strange for a DS18B20, there's a way to make all sensors work the same way?
Odd, mine all read 2 decimal placed
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
Odd, mine all read 2 decimal placed
have you set something to read 2 decimals?

So, now I have one sensor that works fine on an Arduino UNO but on Reef-Pi always send 127,5°C value

Edit: If I power all in parasite mode it works fine, strange thing o_O
 
Last edited:
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, no problem, I'll create it now... regarding the guide you've made for the display, the only way to have access to the dashboard is by a web browser right? Now I'm trying to boot Raspbian to Firefox in full screen at the Reff-Pi web page..
yes. you can configure browsers (chromium or firefox) to auto-start in full screen , kiosk mode if you want the web ui to act more like a tablet.
 
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 can you please tell how many DS18B20 does Reef-Pi supports? Thank you!
Theres no limit on reef-pi software. Raspberry Pi power supply and other circuit reasons are generally the limiting factor. I run some build with three sensor and tested with 5 sensors. I know some blogs in internet that mention more than 7 (not with reef-pi)
 

robsworld78

Valuable Member
View Badges
Joined
Feb 14, 2020
Messages
1,029
Reaction score
1,293
Location
Edmonton, Canada
Rating - 0%
0   0   0
Theres no limit on reef-pi software. Raspberry Pi power supply and other circuit reasons are generally the limiting factor. I run some build with three sensor and tested with 5 sensors. I know some blogs in internet that mention more than 7 (not with reef-pi)

Have you thought about allowing multiple pins for DS18B20?
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
have you set something to read 2 decimals?

So, now I have one sensor that works fine on an Arduino UNO but on Reef-Pi always send 127,5°C value

Edit: If I power all in parasite mode it works fine, strange thing o_O
When mine has cause to report only one decimal point it does. I believe it drops trailing zeros.
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
I tried using two pins on my test setup before I put it in the tank and had no issues.. Before I really understood 1wire setup. Just added :


Correction, I have my pi setup this way now..

I have one of my internal sensors on pin 4 and 1 internal and 2 external on pin 17..

dtoverlay=w1-gpio,gpiopin=4
dtoverlay=w1-gpio,gpiopin=17


to /boot/config.txt


reef-pi had no problem seeing the sensor on pin 17.
 
Last edited:

robsworld78

Valuable Member
View Badges
Joined
Feb 14, 2020
Messages
1,029
Reaction score
1,293
Location
Edmonton, Canada
Rating - 0%
0   0   0
I tried using two pins on my test setup before I put it in the tank and had no issues.. Before I really understood 1wire setup. Just added :


Correction, I have my pi setup this way now..

I have one of my internal sensors on pin 4 and 1 internal and 2 external on pin 17..

dtoverlay=w1-gpio,gpiopin=4
dtoverlay=w1-gpio,gpiopin=17


to /boot/config.txt


reef-pi had no problem seeing the sensor on pin 17.

I just did a quick search, should have done that first.


Looks like that does activate another bus and it's wonderful reef-pi sees multiple buses.
 

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