• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to configure bmp085?
#1
I'm trying to get a bmp085 air pressure sensor to work with pilight. When I'm trying to go with the manual pilight 8.1.4 fails with
Code:
[Dec 29 18:42:58:787256] pilight-daemon: ERROR: config device #4 "bmp180", protocol names are reserved words
[Dec 29 18:42:58:789175] pilight-daemon: ERROR: failed to read config
So I changed the config to 
Code:
               "Luftdruck": {
                       "protocol": [ "bmp085" ],
                       "id": [{
                               "id": "0x77"
                       }],
                       "temperature": 19.1,
                       "pressure": 1006.8,
                       "oversampling": 1
               }

but it still fails with 
Code:
[Dec 29 18:43:50:699288] pilight-daemon: ERROR: config device setting #2 "id" of "Luftdruck", invalid
[Dec 29 18:43:50:701071] pilight-daemon: ERROR: failed to read config

How should a valid config look like?
 
Reply
#2
I see that the manual is outdated on that part. You also need to add the i2c-path. So:
Code:
"id": [{
    "id": "0x77",
    "i2c-path": "/dev/i2c-0"
}],
Or whatever the path may be.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)