|
In the web UI you can upload a single image and push that to a panel. I would like to do that via a script. I've read the OpenAPI spec. I believe I need Thank you in advance for any help you might be willing to render. I've installed Tesserae as an app in Home Assistant. |
Replies: 1 comment 5 replies
|
Your reading of the spec was right, and the spec was the problem. Answers first, What a page is. Page and dashboard are the same thing; "page" is the older Why it couldn't do what you asked. New endpoint, on edge now. curl -sS -X POST http://<your-host>:8765/api/v1/push/image \
-H "Authorization: Bearer $TESSERAE_TOKEN" \
-F image=@photo.jpg \
-F device_ids=hallway \
-F fit=fill{"status": "sent", "sent": ["hallway"], "quiet": [], "failed": []}Notes:
One thing to watch, since you're on the Home Assistant App. Call the It's on the edge build, not a release yet. If you're able to try it and tell me |
Your reading of the spec was right, and the spec was the problem. Answers first,
then something new to try.
What a page is. Page and dashboard are the same thing; "page" is the older
internal name that leaked into the API. The id is the slug in its URL: open a
dashboard and you'll be at
/pages/<page_id>, and that string is what/api/v1/pushwants.Why it couldn't do what you asked.
/api/v1/pushre-renders a saveddashboard. There is no image parameter and no way to add one, so for a
one-off picture it was the wrong endpoint and you weren't missing a trick.
There was a way to do it, through the Companion API used by the iOS app, but
that isn't in the public spec, so you had no way to find …