From e4634ce95f90da14186c61cafed0f1a77326fa9d Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sun, 10 Dec 2017 11:01:58 +0100
Subject: [PATCH] feat(temp): Add temperature tokens without unit
---
src/modules/temperature.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/modules/temperature.cpp b/src/modules/temperature.cpp
index a67b13ea..6ed76473 100644
--- a/src/modules/temperature.cpp
+++ b/src/modules/temperature.cpp
@@ -51,6 +51,8 @@ namespace modules {
label->reset_tokens();
label->replace_token("%temperature-f%", to_string(m_temp_f) + "°F");
label->replace_token("%temperature-c%", to_string(m_temp) + "°C");
+ label->replace_token("%temperature-f-n%", to_string(m_temp_f));
+ label->replace_token("%temperature-c-n%", to_string(m_temp));
label->replace_token("%temperature%", to_string(m_temp) + "°C");
};