community icon indicating copy to clipboard operation
community copied to clipboard

New App: JSON Status for Tidbyt

Open wojciechka opened this issue 1 year ago • 7 comments

Displays JSON Status for one or more items by fetching a provided URL.

Retrieves a JSON with progress status that may return up to 4 elements, showing status of each element on the Tidbyt display.

wojciechka avatar Aug 13 '22 09:08 wojciechka

This currently works if the URL is set to https://raw.githubusercontent.com/wojciechka/community/feat/jsonstatus/apps/jsonstatus/example-status.json but should work with the default URL once the PR is merged.

wojciechka avatar Aug 13 '22 09:08 wojciechka

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

tidbyt-bot avatar Aug 13 '22 09:08 tidbyt-bot

I have read the CLA Document and I hereby sign the CLA

wojciechka avatar Aug 13 '22 09:08 wojciechka

Hey @wojciechka. Thanks for the contribution!

As much as I like the idea (and the code, and the design), I'm afraid we currently can't merge apps that make http calls to fully user-provided URLs. This policy is in place to keep our backend from being used to spam or otherwise cause trouble. I hope we can come up with a reasonable way around this in the future, but we're not there right now.

matslina avatar Aug 18 '22 16:08 matslina

Hey @wojciechka. Thanks for the contribution!

As much as I like the idea (and the code, and the design), I'm afraid we currently can't merge apps that make http calls to fully user-provided URLs. This policy is in place to keep our backend from being used to spam or otherwise cause trouble. I hope we can come up with a reasonable way around this in the future, but we're not there right now.

Oh, I did not think that you're running this on the backend, not the device, I assumed that which is why I thought the URL has to be publicly accessible, but that would make sense that it's a security issue on your end.

What if I would limit this to specific website or websites. For example GitHub gists (just an example, here the problem would probably be API limits without a GitHub token) or a pastebin-like service that would allow API-based updates? I'd have to research which service(s) allow that, but would that even be a viable alternative?

This way I and perhaps others could push status / updates using an API and the Tidbyt app would just fetch the current status, hopefully without authentication.

One other alternative is for me to create a simple service for this purpose, perhaps with simple CRUD to add/remove progress indicators, but I am not sure I want to build an entire service, with auth and everything, just for the purpose of seeing status on Tidbyt.

wojciechka avatar Aug 19 '22 08:08 wojciechka

Hey! Yeah, limiting it to fetching data from certain sites where we can reason about request rates and limits would be a path forward.

matslina avatar Aug 25 '22 15:08 matslina

Hey! Yeah, limiting it to fetching data from certain sites where we can reason about request rates and limits would be a path forward.

Ok. I think it's better I ask before I spend more time on this.

Would limiting it to MongoDB Atlas work?

It has a free plan, data API that is rest and would make it easy to fetch the data.

Then the schema for the widget would be to ask for token (same as todoistnext is doing it) and any other parameters needed to make the calls.

I could also add snippets on how to initialize a database to README.

Would that work?

wojciechka avatar Aug 31 '22 19:08 wojciechka

We're automatically closing this issue because it hasn't had any activity in 30 days. If that seems like a mistake, please feel free to re-open. Thanks!

stale[bot] avatar Oct 01 '22 23:10 stale[bot]

We're automatically closing this issue because it hasn't had any activity in 30 days. If that seems like a mistake, please feel free to re-open. Thanks!

stale[bot] avatar Nov 02 '22 21:11 stale[bot]