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
1 changed files with 2 additions and 0 deletions

View File

@ -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");
};