Comment by joshstrange
Comment by joshstrange 11 hours ago
The API is:
You write HTML templates (that are stored on their servers) then can post data to them (or have them poll an endpoint to get the data) to "merge" into the template.
Think:
<h1>Hi {{ username }}</h1>
<div>You have {{ openPRCount }} open PRs</div>
And you need to provide (via push or pull): {"username": "joshstrange", "openPRCount": 10}
That might not be the exact syntax (I wrote my custom plugin a month or two ago and haven't touched it since).They provide a "UI Library" (Design System) [0] to give you building blocks of UI to use if you want.
It made it really easy to get started. They limit to 1 screen update every 15min (that is the fastest you can have the screen update). But you can press the restart button on the back of the device to force it to update, you might need to force your plugin to re-generate the image before you do that.
If you want to flash your own firmware you can lower that (at the expense of battery life) value or even have it call out to your own server that can do whatever you want.