The code is available here:
- bme280.rb: https://gist.github.com/jvalrog/c515302 ... 2989ab1df8
- i2cdev.rb: https://gist.github.com/jvalrog/1f8a730 ... 4af7df1193
[updated with source code]
[updated scripts with BSD licenses]
I've updated the first post with the source code.Heater wrote:So where is it? Whatever it is.
Code: Select all
$ ruby sample_bme280.rb
Temperature: 29.93 ºC
Pressure: 1003.34 mb
Humidity: 48.34 %
Hi, good to know that it works for youyuasatakayuki wrote:Thanks jvalencia for sharing these useful scripts.![]()
I confirmed that these script work properly with my Raspberry Pi 3 and a BME280 module as pasted below.
If possible, I would love to use these scripts in my non-commercial personal project, and which license should I apply when including these files into my code tree? It would be very much appreciated if it is MIT/BSD or similar open-source license.
Cheers,Code: Select all
$ ruby sample_bme280.rb Temperature: 29.93 ºC Pressure: 1003.34 mb Humidity: 48.34 %