Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add key 'w' to show winner(s) from voting #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

lucasrangit
Copy link
Contributor

Add key 'w' to display winner(s) from BHNT voting app.

Pressing 'w' will initiate the HTTP GET request in the background and only on success will the
results be shown on the matelight.

Uses ofLoadURLAsync to perform HTTP GET to retrieve the JSON list of winners

For example, ["1"] or ["1", "10"] if there's a tie.

Here are some screenshots with the matelight preview.

winners_1

winners_2

@uwekamper this is just the basics. Is this the right approach? And something the animations could be built on?

Add key 'w' to display winner(s) from [BHNT voting app](https://github.com/robotnyc/nodejs-vote-by-mac).

Pressing 'w' will initiate the HTTP GET request in the background and only on success will the
results be shown on the matelight.

Uses `ofLoadURLAsync` to perform HTTP GET to retrieve the JSON list of winners

For example, ["1"] or ["1", "10"] if there's a tie.
@lucasrangit
Copy link
Contributor Author

@uwekamper I made some other changes that might be useful.

…s how many votes are in). in the event of an HTTP error, winner and count is cleared. pressing 'r' resets the counts and aborts any pending updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant