summaryrefslogtreecommitdiff
path: root/scarecrow.rb
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2019-02-18 19:46:09 +0000
committerJoe Robinson <joe@lc8n.com>2019-02-18 19:46:09 +0000
commitc2f8242b38bf538f935f684e1e79005c49c6e5d3 (patch)
tree0a190d63f73de18d14d95c278f54b629cfc4896a /scarecrow.rb
parent765f3218a5eebe5e314405bba8a21b351028089c (diff)
Now I need to make code changes when I phyysically move objects. What a world.
Diffstat (limited to 'scarecrow.rb')
-rw-r--r--scarecrow.rb2
1 files changed, 1 insertions, 1 deletions
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}"