Skip to content

Commit

Permalink
Merge pull request #31 from Qrome/2.1
Browse files Browse the repository at this point in the history
Qrome - updated to show temperature when 8 wide on the LED
  • Loading branch information
Qrome authored Jul 4, 2018
2 parents 7a326e0 + 7a20c74 commit 02e73c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion marquee/marquee.ino
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SOFTWARE.

#include "Settings.h"

#define VERSION "2.0"
#define VERSION "2.1"

#define HOSTNAME "CLOCK-"
#define CONFIG "/conf.txt"
Expand Down Expand Up @@ -360,6 +360,15 @@ void loop() {
if (IS_24HOUR) {
hourMinutes = timeClient.getHours() + ":" + timeClient.getMinutes();
}
if (numberOfHorizontalDisplays >= 8) {
// On Wide Display -- show the current temperature as well
String currentTemp = weatherClient.getTempRounded(0);
String timeSpacer = " ";
if (currentTemp.length() >= 3) {
timeSpacer = " ";
}
hourMinutes += timeSpacer + currentTemp + getTempSymbol();
}
centerPrint(hourMinutes);

if (WEBSERVER_ENABLED) {
Expand Down

0 comments on commit 02e73c6

Please sign in to comment.