Skip to content

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

Open
lucasrangit wants to merge 10 commits intoc-base:masterfrom
lucasrangit:http-votes
Open

add key 'w' to show winner(s) from voting#2
lucasrangit wants to merge 10 commits intoc-base:masterfrom
lucasrangit:http-votes

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