diff options
author | Patrick Simianer <p@simianer.de> | 2020-09-27 20:56:34 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2020-09-27 20:56:34 +0200 |
commit | ae15ee1cdb06b00803f4426b0e965510661c3322 (patch) | |
tree | d5f6eadaae86f588ab91b50db26624cdadaab8de /fill-db.rb | |
parent | 843bb50c48a8b11c572c1e64e0237d09d635e1f0 (diff) |
2020-09-27
Diffstat (limited to 'fill-db.rb')
-rwxr-xr-x | fill-db.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |