jvalencia
Posts: 13
Joined: Mon Aug 15, 2016 8:53 pm

[code] BME280 Linux library for Ruby

Mon Aug 15, 2016 9:00 pm

I've made my own library for this sensor on Ruby. It's a stand-alone library, it doesn't need any other gems to work.

The code is available here:
Last edited by jvalencia on Fri May 11, 2018 5:48 pm, edited 8 times in total.

Heater
Posts: 9836
Joined: Tue Jul 17, 2012 3:02 pm

Re: Reading BME280 sensor with Ruby

Tue Aug 16, 2016 12:22 am

So where is it? Whatever it is.

jvalencia
Posts: 13
Joined: Mon Aug 15, 2016 8:53 pm

Re: Reading BME280 sensor with Ruby

Tue Aug 16, 2016 7:52 am

Heater wrote:So where is it? Whatever it is.
I've updated the first post with the source code.

yuasatakayuki
Posts: 2
Joined: Sat Aug 20, 2016 11:26 am

Re: Reading BME280 sensor with Ruby

Sat Aug 20, 2016 11:52 am

Thanks jvalencia for sharing these useful scripts. :D
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 %

jvalencia
Posts: 13
Joined: Mon Aug 15, 2016 8:53 pm

Re: Reading BME280 sensor with Ruby

Tue Aug 23, 2016 12:17 pm

yuasatakayuki wrote:Thanks jvalencia for sharing these useful scripts. :D
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 %
Hi, good to know that it works for you ;) I've updated the scripts with the BSD license. Happy hacking.

yuasatakayuki
Posts: 2
Joined: Sat Aug 20, 2016 11:26 am

Re: [code] BME280 library for Ruby

Sat Aug 27, 2016 7:44 am

Thanks for updating the code with the license. It's very much appreciated! :D

Miyamoto
Posts: 1
Joined: Wed May 09, 2018 7:10 am

Re: [code] BME280 library for Ruby

Fri May 11, 2018 2:01 pm

All links unavailable...so sad

jvalencia
Posts: 13
Joined: Mon Aug 15, 2016 8:53 pm

Re: [code] BME280 library for Ruby

Fri May 11, 2018 5:49 pm

Miyamoto wrote:
Fri May 11, 2018 2:01 pm
All links unavailable...so sad
Hello friend, I messed my github once. I've updated the top post with good links again.

:)

sardar
Posts: 2
Joined: Tue May 15, 2018 1:34 am

Re: [code] BME280 Linux library for Ruby

Tue May 15, 2018 3:31 am

Thank you very much for your update. I can measure "temperature" "Pressure" and "humidity" but how can I send this data from my home to my office pc?

Return to “Other programming languages”

Who is online

Users browsing this forum: No registered users and 6 guests