|
|
@@ -93,16 +93,16 @@ cursor.execute(
|
|
|
"""CREATE TABLE IF NOT EXISTS data (
|
|
|
timestamp datetime default current_timestamp primary key,
|
|
|
|
|
|
- indoorTemp integer not null,
|
|
|
- indoorPressure integer not null,
|
|
|
- indoorHumidity integer not null,
|
|
|
- indoorAltitude integer not null,
|
|
|
+ indoorTemp text not null,
|
|
|
+ indoorPressure text not null,
|
|
|
+ indoorHumidity text not null,
|
|
|
+ indoorAltitude text not null,
|
|
|
|
|
|
outdoorConnected integer not null,
|
|
|
- outdoorTemp integer not null,
|
|
|
- outdoorPressure integer not null,
|
|
|
- outdoorHumidity integer not null,
|
|
|
- outdoorAltitude integer not null
|
|
|
+ outdoorTemp text not null,
|
|
|
+ outdoorPressure text not null,
|
|
|
+ outdoorHumidity text not null,
|
|
|
+ outdoorAltitude text not null
|
|
|
);"""
|
|
|
)
|
|
|
|