summaryrefslogtreecommitdiff
path: root/fill-db.rb
diff options
context:
space:
mode:
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)