Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tronbyt-okmesonet

Oklahoma Mesonet current conditions for a 64×32 Tronbyt/Tidbyt display, written in Pixlet/Starlark. The app and its full README live in apps/okmesonet/ — this repo mirrors the tronbyt/apps layout so the app directory can be submitted upstream as-is.

preview

Layout

apps/okmesonet/
├── ok_mesonet.star   # applet: fetch, render, config schema
├── mesonet.star      # pure parse/format/color logic + generated station list
├── manifest.yaml     # app metadata
├── README.md         # app README (ships with the tronbyt/apps PR)
└── okmesonet.webp    # preview image
scripts/
├── gen_stations.py   # regenerates the STATIONS block in mesonet.star
└── gen_icons.py      # regenerates the tiny PNG icons in ok_mesonet.star
test_parse.star       # self-running unit tests (root: pixlet load paths are
                      # resolved against the root applet's directory)
tests/fixtures/       # real captured feed rows for the tests

Development

Built against tronbyt/pixlet (v0.50+).

# Run the unit tests (any assertion failure aborts the render loudly):
pixlet render test_parse.star -o /tmp/test_out.webp

# Run the app:
pixlet render apps/okmesonet/ok_mesonet.star && open apps/okmesonet/ok_mesonet.webp
pixlet serve apps/okmesonet/ok_mesonet.star

# Validate like tronbyt/apps CI does:
pixlet check apps/okmesonet

# Refresh the baked station list (~120 reporting stations):
python3 scripts/gen_stations.py

Data source & terms

Oklahoma Mesonet data are provided courtesy of the Oklahoma Mesonet, which is jointly operated by Oklahoma State University and the University of Oklahoma. Data © Oklahoma Mesonet; personal, non-commercial use; 5-minute cache TTL matching the feed cadence. See the app README for details.

License

The code is MIT. The license covers the software only, not the weather data, which the Oklahoma Mesonet provides under its own terms.

About

Oklahoma Mesonet current conditions for Tronbyt/Tidbyt (Pixlet)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages