(2021-07-15, 10:25 AM)baltika_no_9 Wrote:(2021-07-15, 01:55 AM)faurmic Wrote: Hi
I have a BME280 sensor connected to a PICAN-M (REV B 06/20) on a Raspberry 4 (2GB) running Openplotter (v2 starting).
I followed this tutorial :
https://cdn.shopify.com/s/files/1/0563/2...1619008196
(Only from page 17 to 22 in order to use the BME280.)
But when starting the instrument panel (page 21) I don't get any gauges. The page is blank.
In SignalK > Databrowser search for pressure or temperature : NOTHING
I was able with a python script to get readings from the sensor. So the sensor works.
Did someone had the same issue? Any idea?
Thanks for your help
Hi
Could you post the output from your python script?
Hi baltika_no_9,
Thanks for your reply.
The ouput is just the readings from the sensors (temperature, pressure, humidity).
Here's the script. If it can help anyone at least to validate his/her sensor is well functionning.
Code:
from __future__ import print_function
import qwiic_bme280
import time
import sys
def runExample():
print("\nSparkFun BME280 Sensor Example 1\n")
mySensor = qwiic_bme280.QwiicBme280(0x76)
if mySensor.connected == False:
print("The Qwiic BME280 device isn't connected to the system. Please check your connection", \
file=sys.stderr)
return
mySensor.begin()
while True:
print("Humidity:\t%.3f" % mySensor.humidity)
print("Pressure:\t%.3f" % mySensor.pressure)
print("Temperature:\t%.2f" % mySensor.temperature_celsius)
print("")
time.sleep(1)
if __name__ == '__main__':
try:
runExample()
except (KeyboardInterrupt, SystemExit) as exErr:
print("\nEnding Example 1")
sys.exit(0)