diff options
author | Joe Robinson <joe@lc8n.com> | 2019-02-18 19:46:09 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2019-02-18 19:46:09 +0000 |
commit | c2f8242b38bf538f935f684e1e79005c49c6e5d3 (patch) | |
tree | 0a190d63f73de18d14d95c278f54b629cfc4896a /scarecrow.rb | |
parent | 765f3218a5eebe5e314405bba8a21b351028089c (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.rb | 2 |
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}" |