Add output in Fahrenheit as well as Celsius.

This commit is contained in:
Ben Stern 2016-03-05 14:25:16 -05:00
parent cb687f01f7
commit 5af78de226
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -413,7 +413,7 @@ function cleanTemperature(temp) {
function formatTemperature(temp) {
if (!temp || temp < 10) return gettext("off");
return _.sprintf("%.1f&deg;C", temp);
return _.sprintf("%.1f&deg;C (%.1f&deg;F)", temp, temp * 9 / 5 + 32);
}
function pnotifyAdditionalInfo(inner) {