1
0
Fork
You've already forked pi-clock
0
Pi clock, using SDL2
  • Go 82.6%
  • Shell 10.5%
  • Python 6.9%
Find a file
2024年04月09日 23:32:30 -05:00
sense-hat-server Add README, LICENSE, and sense-hat-server Python script 2024年03月11日 20:20:18 -05:00
.build.yml fixup! Fix build script 2024年03月11日 17:17:09 -05:00
bg.png Add a default background. 2021年06月29日 16:09:13 -05:00
build.sh fixup! Fix build scripts 2024年03月11日 17:18:42 -05:00
DejaVuSansCondensed-Bold.ttf Add sr.ht build.yml, local build script, and font 2024年03月10日 23:05:23 -05:00
deploy.yml Add playbook to build and deploy 2021年06月29日 17:28:00 -05:00
go.mod Upgrade go-sdl2 2024年03月11日 21:14:15 -05:00
go.sum Upgrade go-sdl2 2024年03月11日 21:14:15 -05:00
LICENSE Add README, LICENSE, and sense-hat-server Python script 2024年03月11日 20:20:18 -05:00
main.go Add GC collection at the bottom of the running loop 2024年04月09日 23:32:30 -05:00
README.md fixup! Add README, LICENSE, and sense-hat-server Python script 2024年03月11日 20:34:58 -05:00
sans.ttf Add sample font 2021年06月29日 17:28:21 -05:00
screenshot.jpg Add screenshot 2024年03月11日 20:31:56 -05:00
sdl-clock.service Add working service file 2021年06月29日 17:28:12 -05:00

builds.sr.ht status

Description

This turns a Raspberry Pi and it's official 7-inch display into a simple clock,
with a Simpsons' Steamed Hams related-background, a silly little
"Days Since Last Seizure:" counter, based off the old factory
"Days Since Last Injury" counters.

It utilizes SDL2 and runs on the framebuffer, avoiding any Xorg or Wayland shenanigans.

If connected to a Pi with a SenseHat installed and running the included sense-hat-server.py,
or to another server running the sense-hat-server.py and the code in both main.go
and sense-hat-server.py, configured properly (one of the TODOs is to make these values configurable)
it will show the Temperature, Pressure, and Humidity values from the SenseHat.

Screenshot:

Screenshot of the clock in action

Todos:

  • There currently seems to be a slow memory leak that I have been unable to track down,
    likely related to my SDL2 code. This is my first GUI application, so this was a very
    fun little learning experience.

  • Expose the SenseHat server address values, both in the Python and Go code.

  • Expose the "Days Since Last Seizures" value, allowing non-epileptics to count whatever days since whatever they want.