summaryrefslogtreecommitdiff
path: root/scarecrow.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scarecrow.rb')
-rw-r--r--scarecrow.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/scarecrow.rb b/scarecrow.rb
index fff656d..e6cb303 100644
--- a/scarecrow.rb
+++ b/scarecrow.rb
@@ -97,7 +97,7 @@ get '/' do
@humidity_prop = Humidity.last(device: "cricket0")[:value]
@temp_air = Temperature.last(device: "mercury")[:value]
@humidity_air = Humidity.last(device: "mercury")[:value]
- @temp_kitchen = Temperature.last(device: "mercury")[:value]
+ @temp_kitchen = Temperature.last(device: "cricket1")[:value]
@humidity_kitchen = Humidity.last(device: "cricket1")[:value]
@moisture_kitchen = Moisture.last(device: "cricket1")[:value]
time_prop = Temperature.last(device: "mercury")[:timestamp]
@@ -146,7 +146,7 @@ get '/metrics' do
moisture_kitchen = Moisture.last(device: "cricket1")[:value]
"humidity_basement #{humidity_air}
humidity_propagator #{humidity_prop}
-humidity_kitchen#{humidity_kitchen}
+humidity_kitchen #{humidity_kitchen}
temperature_basement #{temp_air}
temperature_propagator #{temp_prop}
temperature_kitchen #{temp_kitchen}