aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Clock.cpp
diff options
context:
space:
mode:
authorkieranc <kieranc@gmail.com>2023-06-04 16:52:31 +0200
committerGitHub <noreply@github.com>2023-06-04 16:52:31 +0200
commit94f41258d52102dc4863d964d43794b34f26cf41 (patch)
treeb4ca7ee44ea2531ca326487966c7a1b1c2b4ebe5 /src/displayapp/screens/Clock.cpp
parent394f58fbb246a3b54a409bf94d85aa7d63b88a2c (diff)
PineTimeStyle weather display (#1459)
Weather display for PineTimeStyle Documentation : https://wiki.pine64.org/wiki/PineTimeStyle and https://wiki.pine64.org/wiki/Infinitime-Weather
Diffstat (limited to 'src/displayapp/screens/Clock.cpp')
-rw-r--r--src/displayapp/screens/Clock.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/displayapp/screens/Clock.cpp b/src/displayapp/screens/Clock.cpp
index ce70f23f..4219b090 100644
--- a/src/displayapp/screens/Clock.cpp
+++ b/src/displayapp/screens/Clock.cpp
@@ -24,6 +24,7 @@ Clock::Clock(Controllers::DateTime& dateTimeController,
Controllers::Settings& settingsController,
Controllers::HeartRateController& heartRateController,
Controllers::MotionController& motionController,
+ Controllers::WeatherService& weatherService,
Controllers::FS& filesystem)
: dateTimeController {dateTimeController},
batteryController {batteryController},
@@ -32,6 +33,7 @@ Clock::Clock(Controllers::DateTime& dateTimeController,
settingsController {settingsController},
heartRateController {heartRateController},
motionController {motionController},
+ weatherService {weatherService},
filesystem {filesystem},
screen {[this, &settingsController]() {
switch (settingsController.GetWatchFace()) {
@@ -95,7 +97,8 @@ std::unique_ptr<Screen> Clock::WatchFacePineTimeStyleScreen() {
bleController,
notificationManager,
settingsController,
- motionController);
+ motionController,
+ weatherService);
}
std::unique_ptr<Screen> Clock::WatchFaceTerminalScreen() {