Raspberry PI + BME280

BME280 in Domoticz – updating the sensor data via Python

[Update: 30.07.2017 – as of now – latest stable domoticz version supports BME280, so this is now obsolete! The Hardware menu has now I2C Sensors and BME280 is present in submenu]
This is a modification of: https://bitbucket.org/MattHawkinsUK/rpispy-misc/raw/master/python/bme280.py, which after you change the IP address and port of Domoticz in ip_domoticz, and creating dummy sensor in Domoticz – “Temp+Humi+Baro” – and then changing the IDX to it’s value in: idx_dummy_bme280 – will update the sensor with the same data as you can see while running the program. This program will update Domoticz via JSON.

Modified bme280.py