statsbadge-clock
A clock and the weather, for statsbadge.
Five faces: a Swiss railway station clock whose second hand sweeps at the badge's frame rate, Koppel's dotted minute track, the badge's own squircle in whatever theme it is wearing, and two digital faces - one set in the app's own typeface, one in seven-segment digits over their unlit segments.
Weather comes from Open-Meteo: the condition with a symbol for the sky, temperature, what it feels like, humidity and the wind. No key and no account.
Install
statsbadge ext add clock
statsbadge install
Then add a Clock page in the config UI.
Settings
Set a Place under Extensions - a town or city, and a country after a comma if the name is a common one:
Sheffield the one most people mean, by how well known it is
Sheffield, US Alabama
Paris, US Texas
Which one you got comes back as weather.place, so the Live panel shows it. Latitude and longitude are there for a spot no name lands on, and win wherever both are set. Temperature reads in celsius or fahrenheit, wind in km/h, mph, m/s or knots.
Every clock page then has settings of its own, so two pages can show two cities. A place settles the time as well as the weather, because Open-Meteo returns a location's UTC offset with its forecast: point a page at Tokyo and it shows Tokyo's time, with no timezone to set anywhere. Each page picks its own face:
| Face | What it is |
|---|---|
railway |
Hilfiker's station clock in the Mondaine colourway, keeping its own livery |
dots |
Koppel's dotted minute track, needle hands with a spike opposite each |
squircle |
The badge's own furniture, in the page theme |
digital |
No dial: date, place, the time the height of the band, weather under it |
lcd |
The same layout in seven-segment digits, over their own unlit segments |
Without a location the clock still keeps time, and the weather readouts read "no location set".
The same settings work from the command line, for a host with no browser near it. Anything stored by the UI wins over the flag.
statsbadge serve --extension clock.place=Sheffield
statsbadge serve --extension clock.latitude=53.38 --extension clock.longitude=-1.47
Notes
The hands run off the badge's own clock, set once from the host, so they keep time when the host goes away and the second hand sweeps whether or not a reading has landed. A place name is looked up once ever rather than once a launch.
The seven segments are DSEG by keshikan, under the SIL Open Font License, whose text travels with the package.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file statsbadge_clock-1.0.1.tar.gz.
File metadata
- Download URL: statsbadge_clock-1.0.1.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd445c159b44d2d9e706ce0761c59b4196ce21a9d3c6a9c44499869dbc651eb6
|
|
| MD5 |
f89c598b77274a47ba0a366f17dcc6b0
|
|
| BLAKE2b-256 |
3fe48230b406efd41cc09a9e935d5f43fe285fa7a77bbb0069d8f7ddb3428e09
|
File details
Details for the file statsbadge_clock-1.0.1-py3-none-any.whl.
File metadata
- Download URL: statsbadge_clock-1.0.1-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d363fbd062b245e68c3682f2f2b61fcb4613ecac1d2be79434e41af76a5ee7c
|
|
| MD5 |
6ccb3d6abb72db7af2eca4991cda7c5a
|
|
| BLAKE2b-256 |
dafa0ff26f0b7036eb77e6d2056c2a487e421e7053cd8fb6155d75d5ba02dc4e
|