ParqetWidget: Use a proxy to reduce JSON size #236
No reviewers
Labels
No labels
bug
conflicts
documentation
DO NOT MERGE
duplicate
enhancement
good first issue
hardware
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
greg/info-orbs!236
Loading…
Reference in a new issue
No description provided.
Delete branch "parqet-proxy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This will drastically reduce the memory footprint on the ESP (like 100kB -> 3kb) and increase the parsing speed.
This also allows us to use
TaskFactory::createHttpGetTaskto fetch the Parqet data in background.I'm hosting the proxy on my server at the moment, but everybody can host their own proxy if they want (e.g. for privacy reasons).
The proxy source code (in Python) with Docker support can be found here:
https://github.com/flattermann/info-orbs-parqet-proxy/
This PR supersedes #229.
I just tried this Parqet portfolio with 71 assets (18 widget pages) and it worked fine:
https://app.parqet.com/p/6756061197b522e6d882e465
The proxied JSON is around 15kB instead of >400kB. Nice. 🙂