Open scrumpydc opened 6 years ago
Hi,
I am still working on it but had a big detour with a lot of 3d printing and so but getting ready to continue on the project.
The plan is to finish up the hardware and the start focusing on the software part.
What is bme280? Some sensor? If so it should be possible to support it.
Ps i do not recommend my software version at this point, its a big hack fest with login disabled and so for faster testing...
On 22 Apr 2018 12:30, "scrumpydc" notifications@github.com wrote:
sorry won't let me post on raspiviv forum anymore did not know if you are still working on this just wondering if there is any way to support the bme280 on this project or the original raspiviv and also the original is outdated ie still using php5 is yours updated or is it using the same install settings as the raspiviv
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kromar/raspiviv_biosphere/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ5dBWXbaMzm-DDPSE7V23NtFEnwErrks5trFvUgaJpZM4Tez2p .
What should the project be updated to from php5?
On Sun, 22 Apr 2018, 12:56 Daniel g, grauer.d@gmail.com wrote:
Hi,
I am still working on it but had a big detour with a lot of 3d printing and so but getting ready to continue on the project.
The plan is to finish up the hardware and the start focusing on the software part.
What is bme280? Some sensor? If so it should be possible to support it.
Ps i do not recommend my software version at this point, its a big hack fest with login disabled and so for faster testing...
On 22 Apr 2018 12:30, "scrumpydc" notifications@github.com wrote:
sorry won't let me post on raspiviv forum anymore did not know if you are still working on this just wondering if there is any way to support the bme280 on this project or the original raspiviv and also the original is outdated ie still using php5 is yours updated or is it using the same install settings as the raspiviv
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kromar/raspiviv_biosphere/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ5dBWXbaMzm-DDPSE7V23NtFEnwErrks5trFvUgaJpZM4Tez2p .
php7 is the latest branch and the bme280 is a temperature sensor more efficient then the dht22 can handle higher humidity ie 100% the dht22 cannot and in a high humid tank with misters it just makes sense I have been working on this project for a whilst I have set up lighting cronjobs to simulate the sunrise and sunset so far it has been going well just issues with the sensor I have also made it attach to an Arduino with a shield I made you can see it hear https://forum.allaboutcircuits.com/threads/led-lighting-not-behaving-how-i-wanted.144695/page-6 which controls the dimming for it but it could be adapted to other things, I am using 6ssr dc-dc for lighting and fans and 4 normal relays for dc-ac control ie humidifier and mister not sure whether to try something in node red for it may do it on a second pi
ah i was not aware that ph moved on, on my reference page they only have php 5... guess its time to move on^^
pretty cool with the light control, its something i also played with in my mind but that would be something later down the road to add as extension.
a quick search gave 2 repositories with the bme280 drivers, with this it should be pretty easy to add to the project
https://github.com/BoschSensortec/BME280_driver https://github.com/skylarstein/bme280-sensor
hope that helps
cheers dan
On 22 April 2018 at 13:11, scrumpydc notifications@github.com wrote:
php7 is the latest branch and the bme280 is a temperature sensor more efficient then the dht22 can handle higher humidity ie 100% the dht22 cannot and in a high humid tank with misters it just makes sense I have been working on this project for a whilst I have set up lighting cronjobs to simulate the sunrise and sunset so far it has been going well just issues with the sensor I have also made it attach to an Arduino with a shield I made you can see it hear https://forum. allaboutcircuits.com/threads/led-lighting-not-behaving-how- i-wanted.144695/page-6 which controls the dimming for it but it could be adapted to other things, I am using 6ssr dc-dc for lighting and fans and 4 normal relays for dc-ac control ie humidifier and mister [image: img_20180203_203850] https://user-images.githubusercontent.com/30000918/39094356-1a806306-4626-11e8-9ab7-84e4904b2641.jpg not sure whether to try something in node red for it may do it on a second pi
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kromar/raspiviv_biosphere/issues/2#issuecomment-383373753, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ5dDTXtnZlQ3L8l8Ewa1Ho7DQBScbHks5trGVwgaJpZM4Tez2p .
I have found this one which works with wiring pi I just have no idea how to point the program to it ime not that good at coding super noob https://github.com/andreiva/raspberry-pi-bme280
ive been looking into migration to php7 and from the current standpoint i think its not worth the effort since there seems to be a lot of extra preparation for the system to make this work. so if we would like to make a simple deployment/installation of the repo it would make it even more complicated to new users as it already is. so for now no update to php7+ but i will keep it in the list for future improvements.
as for the bme280 implementation, this should be quite easy. you follow his instructions and then you will need to change some code in the sensors.php file in the readSensor function
this needs to be changed, here we call the dht sensor with the loldht command so thats what you need to change to the bme280 command (not sure about sensor pin input which the dht library provides) and then parse it correctly for the output values that you want/need.
current: *Humidity = 42.90 % Temperature = 22.20 C exec("sudo loldht $sensor | grep -o [0-9][0-9].[0-9][0-9]", $output);**
bme280:
output example from his repo: {"sensor":"bme280", "humidity":54.36, "pressure":1011.89, "temperature":25.58, "altitude":9.23, "timestamp":1469568295} so we are only interested to feed the humidity and temperature, otherwise we would need to do more adjustments to the database and the graph outputs.
should probably look something like that, but i havent used that string parsing thing in a while so im probably wrong on that but there is a lot of examples on the web to guide in the right direction. probably the nicer way would be to tap into the dictionary structure that gets put out but that would need a bit of code change in the sensorRead function to make that work. exect("sudo bme280 | grep -o [0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9][0-9]", $output); and then we need to change the index since humidity will be index 1 and temp will be index 3 and the default is humidity 0 and temperature 1
the first value that is returned is probably gona be the identifier of the sensor, so if you hook up more than one of these you might get a bme280_01 and so on back which would help identify which sensor is returning the values, that would need a bit of adjustment as well but since i do not have such a sensor i cant really test nor implement it.
hope that helps, let me know if you need any assistance to get it working.
Hi thanks for that but I have migrated over to node red mutch better and took me 2 weeks to setup and finish with all the added benefits of now able to controll lots more stuff better interface and connected to my Google home so I ask and I do and timers are quicker to set up I have a feeling raspiviv is dead sorry to say
hey that was exactly what i was looking for since someone mentioned it some time back and i forgot what it was called. since i will need to re-evaluate the software stack used in this project node red is certainly something i will look into. thanks for reminding me about it:D
sorry won't let me post on raspiviv forum anymore did not know if you are still working on this just wondering if there is any way to support the bme280 on this project or the original raspiviv and also the original is outdated ie still using php5 is yours updated or is it using the same install settings as the raspiviv