Skip to content

Instantly share code, notes, and snippets.

@raspberrypisig
Last active November 8, 2025 20:42
Show Gist options
  • Select an option

  • Save raspberrypisig/27404c27ac654bb4ad7b7eb76ba859d5 to your computer and use it in GitHub Desktop.

Select an option

Save raspberrypisig/27404c27ac654bb4ad7b7eb76ba859d5 to your computer and use it in GitHub Desktop.
load("render.star", "render")
def main():
return render.Root(
child = render.Text("Hello, World!")
)
load("render.star", "render")
load("time.star", "time")
def main(config):
timezone = config.get("timezone") or "America/New_York"
now = time.now().in_location(timezone)
return render.Root(
delay = 500,
child = render.Box(
child = render.Animation(
children = [
render.Text(
content = now.format("3:04 PM"),
font = "6x13",
),
render.Text(
content = now.format("3 04 PM"),
font = "6x13",
),
],
),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment