From ae15ee1cdb06b00803f4426b0e965510661c3322 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 27 Sep 2020 20:56:34 +0200 Subject: 2020-09-27 --- fill-db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fill-db.rb') 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) -- cgit v1.2.3