/tl-t-b

Traffic light (html) changeble via bot api (telegram).

Primary LanguageHTML

tl-t-b

(T)raffic (l)ight (t)elegram (b)ot

Traffic light (html) changeble via bot api (telegram).

Usage by kubectl

k create secret generic glbasecamp --from-literal=token.json={\"token\":\"YOUR_TOKEN\"}

k create -f kube/app.yaml

k expose pod trafficlight --port 8080 --target-port 8000 --type LoadBalancer

k apply -f kube/ingress.yaml

Messages to your bot

RED ON

RED OFF

AMBER ON

AMBER OFF

GREEN ON GREEN OFF

Message must be exactly the same, otherwise it will respond incorrect input

Libs and code

Interface based onsnippet in docker on :8000, and via kuber commands on :80

TODO

  • Rewrite in pure nodejs, avoid overhead
  • Rewrite in assembly, maximum super ultra performence