Sign inSign up

puzzle/virtual-beerbutton

By puzzle

•Updated over 5 years ago

Image
0

1.0K

puzzle/virtual-beerbutton repository overview

⁠The virtual Puzzle button

The virtual Puzzle Button is a small web application, that allows you to let your colleagues know when ever you're waiting at your virtual or physical break space and want to have company.

You can find the whole idea and how we're using the virtual Coffee and Beer button at Puzzle in the German Blogpost⁠

⁠Configuration

The two buttons basically once clicked send post requests to backend urls.

⁠Beer Button
EnvironmentvariableDescriptionExample
APPLICATION_BACKENDURLBEERBackend urlhttps://homeassistantserver/api/services/script/turn_on⁠ or https://myrocketchat.ch/hooks/DKC4GeDPWYnjKEb5g/jDKAB5zbaG2tHx94cQny7epqAg2QBaE3QFdyBGmYoy3tekgi⁠ or what ever ULR you'd like to send a post request to, when the button was clicked
APPLICATION_AUTHTOKENBEER (optional)The BearerToken to be sent to the backend
APPLICATION_PAYLOADBEER (optional)The Payload that will be sent to the backend in the request{"entity_id": "script.notify_remote_fyrabebier"}
⁠Coffee Button
EnvironmentvariableDescriptionExample
APPLICATION_BACKENDURLCOFFEEBackend urlhttps://homeassistantserver/api/services/script/turn_on⁠ or https://myrocketchat.ch/hooks/DKC4GeDPWYnjKEb5g/jDKAB5zbaG2tHx94cQny7epqAg2QBaE3QFdyBGmYoy3tekgi⁠ or what ever ULR you'd like to send a post request to, when the button was clicked
APPLICATION_AUTHTOKENCOFFEE (optional)The BearerToken to be sent to the backend
APPLICATION_PAYLOADCOFFEE (optional)The Payload that will be sent to the backend in the request{ "icon_emoji": ":ghost:", "text": "Let's have a coffee, join me please Meetingroom⁠" }

⁠Build application

To build the Springboot application just run

./gradlew build

Or build the docker image

docker build -it virtual-puzzle-button .

⁠pre built docker image from dockerhub

get the image from Docker Hub docker pull puzzle/virtual-beerbutton

https://hub.docker.com/r/puzzle/virtual-beerbutton⁠

Tag summary

Content type

Image

Digest

Size

438.6 MB

Last updated

over 5 years ago

docker pull puzzle/virtual-beerbutton