clocks/ticker/ticker_clock library

Classes

DateTimeAndWeatherTicker
DateTimeAndWeatherTicker
TickerCharacterWidget
This builds a single character for the ticker
TickerWeatherIcon
TickerWeatherIcon

Constants

kDelayS → const int
Each phase shows different "text" on the right There is 0,1,2,3,4 0 = Temp Now 1 = Low Temp 2 = High Temp 3 = Current Location 4 = Date note: kDelayS * kPhases should equal 3,5,10,15,20,30,60 if it's to loop seemlessly once a minute
kPhases → const int
Number of phases (or phrases) we display on the right

Properties

date String
DMY format
no setter
time12 String
Get the time in 12 hour format
no setter
time24 String
Get the time in 24 hour format
no setter

Functions

buildRightTickerText(ClockModel model) String
buildRightTickerText String is decided based on the rules above
buildTickerString(ClockModel clockModel) String
Builds the actual ticker string e.g. "15:30:45 Mountain View, CA " The string format is as follows BC+D A = Time, with 1 character padding for UI B = X spaces (36 - (a.length + b.length + d.length) C = Right/Phased String, Temp/Location/Date D = 2 Character padding on the right for Icon Space Icons were originally emoji, but imported assets for compat