summaryrefslogtreecommitdiff
path: root/fill-db.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2020-09-27 20:56:34 +0200
committerPatrick Simianer <p@simianer.de>2020-09-27 20:56:34 +0200
commitae15ee1cdb06b00803f4426b0e965510661c3322 (patch)
treed5f6eadaae86f588ab91b50db26624cdadaab8de /fill-db.rb
parent843bb50c48a8b11c572c1e64e0237d09d635e1f0 (diff)
2020-09-27
Diffstat (limited to 'fill-db.rb')
-rwxr-xr-xfill-db.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/fill-db.rb b/fill-db.rb
index 199db42..c4fa513 100755
--- a/fill-db.rb
+++ b/fill-db.rb
@@ -11,7 +11,7 @@ end
str = Proc.new do |x|
x.to_s
end
-common_conv = { "db" => str, "timestamp"=>float, "device_type"=>str, "device_id"=>str, "battery" => int, "rssi" => int }
+common_conv = { "db" => str, "timestamp"=>float, "device_type"=>str, "type"=>str, "device_id"=>str, "battery" => int, "battery_numeric" => int, "rssi" => int, "rssi_numeric" => int }
rain_conv = {"rain_rate"=>float, "rain_total"=>float}.merge(common_conv)
wind_conv = {"chill"=>float, "temperature"=>float,"average_speed"=>float,"direction"=>int,"gust"=>float}.merge(common_conv)
temp_conv = {"humidity"=>float, "humidity_status"=>str,"humidity_status_numeric"=>int,"temperature"=>float}.merge(common_conv)