From c2f8242b38bf538f935f684e1e79005c49c6e5d3 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Mon, 18 Feb 2019 19:46:09 +0000 Subject: Now I need to make code changes when I phyysically move objects. What a world. --- scarecrow.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scarecrow.rb b/scarecrow.rb index 874ae86..fc828a4 100644 --- a/scarecrow.rb +++ b/scarecrow.rb @@ -97,7 +97,7 @@ get '/temperature/:device_id' do end get '/humidity/:device_id' do - device_id = "mercury" if (device_id == "air" || device_id == "kitchen") + device_id = "mercury" if (device_id == "air" || device_id == "basement") device_id = "cricket0" if (device_id == "propagator") humidity = Humidity.last(device: device_id)[:value] "#{humidity}" -- cgit v1.2.3