Difference between revisions of "Trigger"
From Fixme.ch
(Created page with "Category:Services == Information == * Trigger for the space status, also controls the LED_Retrofit * This is part of the Internal_Server * It uses the [https://github...") |
Binary Brain (Talk | contribs) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Services]] | [[Category:Services]] | ||
== Information == | == Information == | ||
− | + | ||
− | + | https://trigger.fixme.ch | |
− | * It uses the [https://github.com/fixme-lausanne/Twitter-Hackerspace-Status twitter.pl and spaceapi.py scripts] to retrieve the status and to change it, using javascript | + | |
+ | Trigger (also known as '''ctrl''') is a web interface created to change the space status, and control [[LED_Retrofit]] and [[Orbital]] (in Lamp mode) | ||
+ | |||
+ | Git Repo: https://git.fixme.ch/FIXME/ctrl | ||
+ | |||
+ | * git clone git@git.fixme.ch:FIXME/ctrl.git | ||
+ | * It uses the [https://github.com/fixme-lausanne/Twitter-Hackerspace-Status twitter.pl and spaceapi.py scripts] to retrieve the status and to change it, using javascript and XMLHttpRequest | ||
* It controls the LEDs over HTTP using | * It controls the LEDs over HTTP using | ||
− | * It is deployed using a [[Gitolite#Deploy|gitolite hook]] | + | * It's deployed in [[Kubernetes]], the image is built locally. |
+ | |||
+ | == How to push changes == | ||
+ | |||
+ | <pre> | ||
+ | $ ssh ubuntu@k8s.fixme.ch | ||
+ | |||
+ | # Update the local repository | ||
+ | cd ~/ctrl | ||
+ | git pull | ||
+ | |||
+ | # Build the docker image | ||
+ | sudo docker build -t trigger . | ||
+ | |||
+ | # Killthe pod and watch it come back | ||
+ | kubectl delete --namespace ctrl pod/trigger-579d7dd765-krfvk | ||
+ | kubectl get --namespace=ctrl pods | ||
+ | </pre> | ||
+ | |||
+ | == Archives == | ||
+ | * It was deployed using a [[Gitolite#Deploy|gitolite hook]] | ||
+ | * This was part of the [[Internal_Server]] |
Latest revision as of 17:34, 5 February 2023
Information
Trigger (also known as ctrl) is a web interface created to change the space status, and control LED_Retrofit and Orbital (in Lamp mode)
Git Repo: https://git.fixme.ch/FIXME/ctrl
- git clone git@git.fixme.ch:FIXME/ctrl.git
- It uses the twitter.pl and spaceapi.py scripts to retrieve the status and to change it, using javascript and XMLHttpRequest
- It controls the LEDs over HTTP using
- It's deployed in Kubernetes, the image is built locally.
How to push changes
$ ssh ubuntu@k8s.fixme.ch # Update the local repository cd ~/ctrl git pull # Build the docker image sudo docker build -t trigger . # Killthe pod and watch it come back kubectl delete --namespace ctrl pod/trigger-579d7dd765-krfvk kubectl get --namespace=ctrl pods
Archives
- It was deployed using a gitolite hook
- This was part of the Internal_Server