feat(temp): Add temperature tokens without unit

This commit is contained in:
patrick96 2017-12-10 11:01:58 +01:00 committed by NBonaparte
parent 0849d05469
commit e4634ce95f

View File

@ -51,6 +51,8 @@ namespace modules {
label->reset_tokens(); label->reset_tokens();
label->replace_token("%temperature-f%", to_string(m_temp_f) + "°F"); 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-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"); label->replace_token("%temperature%", to_string(m_temp) + "°C");
}; };