loading
4Comments

Tell us about yourself!

Complete Your Profile
  • Connect Raspberry Pi to Oregon Scientific BLE Weather Station

    Looking at the notifications coming back I've spotted that on the BAR218HG bytes [2:4]+[0:2] of the data from handle 0x001A is the pressure measured by the main until, in *10 mb.

    View Instructable »
  • Connect Raspberry Pi to Oregon Scientific BLE Weather Station

    With the weather turning cold around here, I've noticed that the code handle negative temperatures correctly. The numbers are encoded as signed 16 bit values, so I've replaced lines of the form:- temp = int(self._data['index{0}_temperature'.format(index)], 16) / 10.0with:- temp = self.getValue('index{0}_temperature'.format(index)) / 10.0Where getValue is a new method defined as:- def getValue(self, indexstr): val = int(self._data[indexstr], 16) if val >= 0x8000: val = ((val+0x8000)&0xFFFF) - 0x8000 return val

    Voogel: increase the timeout value in self.p.waitForNotifications, with the default of 1 I didn't get any data, I've got mine set to 5 which picks up all my sensors.

    View Instructable »
  • Connect Raspberry Pi to Oregon Scientific BLE Weather Station

    Fantastic! I looked for this information when I got the BAR218HG last year, and didn't find it then, but now its all here. I've modified the script to read the temperature and humidity of the internal and my 3 external sensors, and am working on adding it to a database along with temperatures of my Raspberry Pi's, and getting some nice web based graphs of it all.

    View Instructable »