Aaron Schmocker 75303eb608 Delete .gitignore~
2018-10-10 00:20:18 +02:00
2018-10-06 20:56:12 +02:00
2018-10-10 00:19:11 +02:00
2018-10-10 00:19:11 +02:00
2018-10-06 18:32:52 +02:00

WebSocket Bridge for our LND enabled Beer Tap

build application

./gradlew build

how to run

get the built application from ./build/libs

java -jar websocket-bridge-0.0.1-SNAPSHOT.jar --url=wss://ln-self-order-pos-dev.ose3.puzzle.ch/websocket/invoice?access_token= --topic=/topic/invoice --command=./dummy_command.sh

Options:

  • url: the websocket to connect to
  • topic: the topic to subscribe to
  • command: the shell command that is executed when a message was received on the websocket

Two Options will be routed to the shell command that is executed

  • --memo
  • --products

for example:

./dummy_command.sh --memo="puzzleUp #9c4a Grey Card (CHF 5.00)" --products=PRODUCT_1

GPIO handler

To execute this python module the user has to be part of the group gpio.

Dependencies

  • RPi-GPIO (preinstalled on all raspberry pi distros)
  • argparse

how to run

python beerme.py --product=[large,small] [--test, --memo="asdf"]
Description
No description provided
Readme MIT 3.6 MiB
Languages
Java 67.3%
Python 16%
Shell 14.1%
Dockerfile 2.6%