Skip to content

Rendering your own applets using homebridge tidbyt

Nicholas Penree edited this page Dec 30, 2021 · 5 revisions

Current Features

  • Control brightness of Tidbyt using a Lightbulb control
  • Schedule and render Starlark-based applets using pixlet
  • Dynamic config values using JS modules

Possible Features

  • Custom app triggered by virtual switch devices in Homekit?
  • Previews using Cameras?

Prerequisites

Setup

Via JSON:

{
    ...
    "platforms": [
        {
            "authToken": "...",
            "discoverFrequency": 60000,
            "managedDevices": [
                {
                    "id": "mainly-awesome-viking-rabbit-2e1"
                }
            ],
            "customApps": [
                {
                    "id": "TwitterFollowers",
                    "enabled": true,
                    "updateOnStartup": true,
                    "script": "/home/pi/tidbyt/twitter.star",
                    "schedule": "*/30 * * * *",
                    "config": [
                        {
                            "key": "screen_name",
                            "value": "npenree"
                        }
                    ]
                }
            ],
            "platform": "Tidbyt"
        }
    ]
}

Demos

Brightness Control

Custom Apps

The Custom Apps feature allows you to render a pixlet and push it to your device on a schedule using cron-like expressions. Use this feature to install all the cool stuff the Tidbyt Community comes up with!

Twitter Followers

Using tidbyt-twitter and the configuration above, I have a nice custom applet that updates every 30 minutes with my current Twitter follower count: