Skip to content

Commit

Permalink
Merge branch 'feature/new-mode-minutes' of github.com:Wandmalfarbe/Wo…
Browse files Browse the repository at this point in the history
…rtuhr into MinutesDigitalClock
  • Loading branch information
dbambus committed Apr 24, 2023
2 parents 9cd9811 + 1980e7a commit 17d0cb0
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions include/Uhr.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ enum CommandWords {
COMMAND_MODE_RAINBOWCYCLE = 4,
COMMAND_MODE_RAINBOW = 5,
COMMAND_MODE_COLOR = 6,
COMMAND_MODE_DIGITALCLOCK = 7,
COMMAND_MODE_DIGITAL_CLOCK = 7,

COMMAND_MODE_ANIMATION = 10,
COMMAND_SET_INITIAL_VALUES = 20,
Expand Down Expand Up @@ -278,4 +278,4 @@ enum Icons {
FIRE_4 = 9,
FIRE_5 = 10,
FIRE_6 = 11,
};
};
2 changes: 1 addition & 1 deletion include/clockWork.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ void ClockWork::loop(struct tm &tm) {
break;
}

case COMMAND_MODE_DIGITALCLOCK: {
case COMMAND_MODE_DIGITAL_CLOCK: {
if (G.progInit) {
led.clear();
G.progInit = false;
Expand Down
2 changes: 1 addition & 1 deletion include/mqtt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void Mqtt::callback(char *topic, byte *payload, unsigned int length) {
} else if (!strcmp("Seconds", doc["effect"])) {
G.prog = COMMAND_MODE_SECONDS;
} else if (!strcmp("Digitalclock", doc["effect"])) {
G.prog = COMMAND_MODE_DIGITALCLOCK;
G.prog = COMMAND_MODE_DIGITAL_CLOCK;
} else if (!strcmp("Scrollingtext", doc["effect"])) {
G.prog = COMMAND_MODE_SCROLLINGTEXT;
} else if (!strcmp("Rainbowcycle", doc["effect"])) {
Expand Down
4 changes: 2 additions & 2 deletions include/webPageAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t *payload,

//------------------------------------------------------------------------------

case COMMAND_MODE_DIGITALCLOCK: {
G.prog = COMMAND_MODE_DIGITALCLOCK;
case COMMAND_MODE_DIGITAL_CLOCK: {
G.prog = COMMAND_MODE_DIGITAL_CLOCK;
G.progInit = true;

parseMainColor(payload, Effect);
Expand Down
2 changes: 1 addition & 1 deletion webpage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h2 data-i18next="functions.mode.h2"></h2>

<span class="radio-wrapper"><input id="mode-seconds" type="radio" name="mode" value="seconds"><label for="mode-seconds" class="pure-radio" data-i18next="functions.mode.seconds"></label></span>

<span class="radio-wrapper"><input id="mode-digitalclock" type="radio" name="mode" value="seconds"><label for="mode-digitalclock" class="pure-radio" data-i18next="functions.mode.minutes"></label></span>
<span class="radio-wrapper"><input id="mode-digital-clock" type="radio" name="mode" value="seconds"><label for="mode-digital-clock" class="pure-radio" data-i18next="functions.mode.digital-clock"></label></span>

<span class="radio-wrapper"><input id="mode-marquee" type="radio" name="mode" value="marquee"><label for="mode-marquee" class="pure-radio" data-i18next="functions.mode.marquee"></label></span>

Expand Down
2 changes: 1 addition & 1 deletion webpage/language/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let TRANSLATION_DE_DE = {
"wordclock": "Wortuhr",
"color": "Farbe",
"seconds": "Sekunden",
"digitalclock": "Digitaluhr",
"digital-clock": "Digitaluhr",
"marquee": "Laufschrift",
"rainbow": "Regenbogen",
"color-change": "Farbwechsel"
Expand Down
2 changes: 1 addition & 1 deletion webpage/language/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let TRANSLATION_EN_US = {
"wordclock": "Word Clock",
"color": "Color",
"seconds": "Seconds",
"digitalclock": "Digitalclock",
"digital-clock": "Digital Clock",
"marquee": "Marquee",
"rainbow": "Rainbow",
"color-change": "Color Change"
Expand Down
2 changes: 1 addition & 1 deletion webpage/language/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let TRANSLATION_NL = {
"wordclock": "Woordklok",
"color": "Kleur",
"seconds": "Seconden",
"digitalclock": "Digitalklok",
"digital-clock": "Digitale klok",
"marquee": "Tekst",
"rainbow": "Regenboog",
"color-change": "Kleurverandering"
Expand Down
8 changes: 4 additions & 4 deletions webpage/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var COMMAND_MODE_SCROLLINGTEXT = 3;
var COMMAND_MODE_RAINBOWCYCLE = 4;
var COMMAND_MODE_RAINBOW = 5;
var COMMAND_MODE_COLOR = 6;
var COMMAND_MODE_DIGITALCLOCK = 7;
var COMMAND_MODE_DIGITAL_CLOCK = 7;
var COMMAND_MODE_ANIMATION = 10;

/**
Expand All @@ -105,7 +105,7 @@ MODE_TO_INPUT_ID.set(COMMAND_MODE_SCROLLINGTEXT, "mode-marquee");
MODE_TO_INPUT_ID.set(COMMAND_MODE_RAINBOWCYCLE, "mode-rainbow");
MODE_TO_INPUT_ID.set(COMMAND_MODE_RAINBOW, "mode-change"); // Color change
MODE_TO_INPUT_ID.set(COMMAND_MODE_COLOR, "mode-color");
MODE_TO_INPUT_ID.set(COMMAND_MODE_DIGITALCLOCK, "mode-digitalclock");
MODE_TO_INPUT_ID.set(COMMAND_MODE_DIGITAL_CLOCK, "mode-digital-clock");
MODE_TO_INPUT_ID.set(COMMAND_MODE_ANIMATION, "mode-wordclock");

// other commands
Expand Down Expand Up @@ -735,8 +735,8 @@ $.ready(function() {
if (id === "mode-seconds") {
command = COMMAND_MODE_SECONDS;
}
if (id === "mode-digitalclock") {
command = COMMAND_MODE_DIGITALCLOCK;
if (id === "mode-digital-clock") {
command = COMMAND_MODE_DIGITAL_CLOCK;
}
if (id === "mode-marquee") {
hasSpeed = true;
Expand Down

0 comments on commit 17d0cb0

Please sign in to comment.