Skip to content

Instantly share code, notes, and snippets.

@dapepe
Created October 13, 2017 16:48
Show Gist options
  • Save dapepe/b38786d4cb5c32696ac31f21ddf2355c to your computer and use it in GitHub Desktop.
Save dapepe/b38786d4cb5c32696ac31f21ddf2355c to your computer and use it in GitHub Desktop.
Configuration for SparkPOS
---
request:
url: http://192.168.157.143:50505
log:
error: log/error.log
default: log/default.log
rules:
- name: EAN scannen
input: ".*"
action:
type: store
var: barcode
then:
type: beep
count: 1
then:
type: request
route: "barcode/%barcode%"
method: GET
200:
type: output
data: "OK - %barcode%"
500:
type: output
style: danger
data: Fehler - %barcode%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment