We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4e0dfa + dbbb63b commit 205cf3aCopy full SHA for 205cf3a
Adafruit_IO_Air_Quality/code.py
@@ -7,6 +7,7 @@
7
from adafruit_io.adafruit_io import IO_HTTP
8
from simpleio import map_range
9
from adafruit_pm25.uart import PM25_UART
10
+
11
# Uncomment below for PMSA003I Air Quality Breakout
12
# from adafruit_pm25.i2c import PM25_I2C
13
import adafruit_bme280
@@ -146,7 +147,11 @@ def read_bme(is_celsius=False):
146
147
feed_temperature = io.get_feed("air-quality-sensor.temperature")
148
149
# Set up location metadata from secrets.py file
-location_metadata = (secrets["latitude"], secrets["longitude"], secrets["elevation"])
150
+location_metadata = {
151
+ "lat": secrets["latitude"],
152
+ "lon": secrets["longitude"],
153
+ "ele": secrets["elevation"],
154
+}
155
156
elapsed_minutes = 0
157
prv_mins = 0
0 commit comments