Compare commits
2 Commits
6d59b62497
...
f2fc5e391a
Author | SHA1 | Date | |
---|---|---|---|
f2fc5e391a | |||
75e154f1bd |
@ -1 +1 @@
|
|||||||
2021.10.1
|
2021.10.2
|
@ -286,13 +286,13 @@ display:
|
|||||||
strptime(id(sun_rise).state.c_str(), "%Y-%m-%dT%H:%M:%S", &tm);
|
strptime(id(sun_rise).state.c_str(), "%Y-%m-%dT%H:%M:%S", &tm);
|
||||||
time_t rawtime = mktime(&tm);
|
time_t rawtime = mktime(&tm);
|
||||||
struct tm* ltm = localtime(&rawtime);
|
struct tm* ltm = localtime(&rawtime);
|
||||||
sprintf(sunrise, "%d:%d", ltm->tm_hour + dst, ltm->tm_min);
|
sprintf(sunrise, "%d:%02d", ltm->tm_hour + dst, ltm->tm_min);
|
||||||
|
|
||||||
memset (&tm, 0, sizeof (tm));
|
memset (&tm, 0, sizeof (tm));
|
||||||
strptime(id(sun_set).state.c_str(), "%Y-%m-%dT%H:%M:%S", &tm);
|
strptime(id(sun_set).state.c_str(), "%Y-%m-%dT%H:%M:%S", &tm);
|
||||||
rawtime = mktime(&tm);
|
rawtime = mktime(&tm);
|
||||||
ltm = localtime(&rawtime);
|
ltm = localtime(&rawtime);
|
||||||
sprintf(sunset, "%d:%d", ltm->tm_hour + dst, ltm->tm_min);
|
sprintf(sunset, "%d:%02d", ltm->tm_hour + dst, ltm->tm_min);
|
||||||
|
|
||||||
|
|
||||||
/* OUTSIDE */
|
/* OUTSIDE */
|
||||||
@ -427,7 +427,7 @@ display:
|
|||||||
/* Sleepingroom */
|
/* Sleepingroom */
|
||||||
offsetY = 247;
|
offsetY = 247;
|
||||||
it.print(10, 10 + offsetY, id(big_sensor_unit), "Schlafzimmer");
|
it.print(10, 10 + offsetY, id(big_sensor_unit), "Schlafzimmer");
|
||||||
it.filled_rectangle(136, 21 + offsetY, 247, 3);
|
it.filled_rectangle(144, 21 + offsetY, 239, 3);
|
||||||
it.print(10, 114 + offsetY, id(mdi_small), TextAlign::BASELINE_LEFT, ""); // PM2.5
|
it.print(10, 114 + offsetY, id(mdi_small), TextAlign::BASELINE_LEFT, ""); // PM2.5
|
||||||
it.print(375, 75 + offsetY, id(mdi_small), TextAlign::BASELINE_CENTER, ""); // thermometer
|
it.print(375, 75 + offsetY, id(mdi_small), TextAlign::BASELINE_CENTER, ""); // thermometer
|
||||||
it.print(375, 115 + offsetY, id(mdi_small), TextAlign::BASELINE_CENTER, ""); // water percent
|
it.print(375, 115 + offsetY, id(mdi_small), TextAlign::BASELINE_CENTER, ""); // water percent
|
||||||
|
Loading…
Reference in New Issue
Block a user