Add output in Fahrenheit as well as Celsius.
This commit is contained in:
parent
cb687f01f7
commit
5af78de226
2 changed files with 2 additions and 1 deletions
|
|
@ -60,6 +60,7 @@ date of first contribution):
|
|||
* ["bwgan"](https://github.com/bwgan)
|
||||
* [Siim Raud](https://github.com/2ndalpha)
|
||||
* ["geoporalis"](https://github.com/geoporalis)
|
||||
* [therealbstern](https://github.com/therealbstern)
|
||||
|
||||
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
|
||||
[Daid Braam](https://github.com/daid). Parts of its communication layer and
|
||||
|
|
|
|||
|
|
@ -413,7 +413,7 @@ function cleanTemperature(temp) {
|
|||
|
||||
function formatTemperature(temp) {
|
||||
if (!temp || temp < 10) return gettext("off");
|
||||
return _.sprintf("%.1f°C", temp);
|
||||
return _.sprintf("%.1f°C (%.1f°F)", temp, temp * 9 / 5 + 32);
|
||||
}
|
||||
|
||||
function pnotifyAdditionalInfo(inner) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue