This repository is a community-maintained collection of applications for the Tronbyt (formerly Tidbyt) device. These applications are written in Starlark, a dialect of Python, and utilize the Pixlet framework for development and testing. The repository is a hard fork of the original Tidbyt community repository and is actively maintained by the community.
- Starlark: The primary programming language for the applications.
- Pixlet: The command-line tool for developing, running, and testing Tronbyt apps. The recommended version is specified in the
PIXLET_VERSIONfile. - YAML: Used for the application manifests (
manifest.yaml).
The repository is organized as follows:
apps/: Contains the individual applications. Each application has its own subdirectory.app-viewer/: A web-based application to view the available apps.docs/: Contains documentation for the project, including contribution guidelines.PIXLET_VERSION: Specifies the recommended version of the Pixlet tool.
To develop and run the applications, you need to have the pixlet command-line tool installed. You can find installation instructions in the Pixlet GitHub repository.
To create a new app, run the following command:
pixlet createThis will generate a new directory with a basic "Hello, World!" application.
To run an app, use the pixlet render command:
pixlet render apps/<app_name>/<app_name>.starThis will render the app and display it in a new window.
Before submitting an app, you should run the pixlet check command to ensure it's ready for publication:
pixlet check apps/<app_name>/<app_name>.star- Each application must have a
manifest.yamlfile that contains metadata about the app. - The main application file should be a
.starfile in a separate directory. An application can consist of multiple Starlark files. - Each application should have a
.webpimage that serves as a preview of the app which can be produced by runningpixlet render -z 9with the app directory as input parameter. - If an app supports 2x rendering, it should have a separate 2x preview image with an
@2x.webpsuffix. It can be produced with a command likepixlet render -2 -z 9. - The code should be formatted according to the Starlark style guide (use
pixlet format). - The code should pass the
pixlet lintchecks. - If an app intentionally doesn't produce output (e.g. an app which monitors a music service when nothing is playing), it must return
[]frommain, NOTNone.
Here is an example of a manifest.yaml file:
---
id: fuzzy-clock
name: Fuzzy Clock
summary: Human readable time
desc: Display the time in a groovy, human-readable way.
author: Max Timkovich
fileName: fuzzy_clock.star
packageName: fuzzyclock
recommendedInterval: 1
supports2x: truePadding is a 4-tuple (left, top, right, bottom).