I just received my Tidbyt and love it so far. I got up and running with pixlet pretty quickly, and I’m fairly comfortable with Python.
I’m trying to write a simple app that uses the Fi Collar API to do something simple like display the step count of our dog. There’s a nice Python wrapper here - pytryfi · PyPI), but this is my first experience of Starlark. I see most of the libraries in Starlib are written in go - would I have to basically recreate the bits of the pytryfi library in go, or is there a graphql library for Starlark I could use?
Alright, I figured it out. I’ll push everything to git at some point, but just in case anyone is checking here.
I’ll work on the render part next, but basically some experimenting in Postman and trying to recreate it in Starlark got me to this point - I now get my dog’s step count for the day!
This post was super helpful and I was able to make use of it, thank you!
In order to make this work, I had to grab the PET_ID using the pytryfi library posted by @jeremy above.
Once I had the PET_ID, your sample worked great!
Sorry for reviving the thread, but this is essentially the only page that comes up in search results for the topic and I wanted to connect the dots for anyone else that lands here from google like myself.