I have a python program that runs just fine from Thorny. The program reads information from a BME280 sensor and outputs the information to a file.
import smbus2
import bme280
port = 1
address = 0x76
bus = smbus2.SMBus(port)
calibration_params = bme280.load_calibration_params(bus, address)
etc...
However, when I tried to run this program as a service it fails to start stating that bme280 does not have an attribute named load_calibration_params. I wanted to use this to send me information about the temperature in my young sons room so the program has to run continuously in the background and on startup. Does anyone know how to fix?
import smbus2
import bme280
port = 1
address = 0x76
bus = smbus2.SMBus(port)
calibration_params = bme280.load_calibration_params(bus, address)
etc...
However, when I tried to run this program as a service it fails to start stating that bme280 does not have an attribute named load_calibration_params. I wanted to use this to send me information about the temperature in my young sons room so the program has to run continuously in the background and on startup. Does anyone know how to fix?
Statistics: Posted by ladyalu — Tue Nov 26, 2024 3:04 pm