KS-A is one of the best offerings from the OVH cloud, but the availability.... This application checks the availability of the KS-A server and sends a PushOver if there is any stock available :)
The preferred way of deploying this "application", is using Docker. It's also the easiest, since you don't need to install all the requirements or set up a Virtual Env.
Using docker takes a couple of steps.
Clone the repository and build the docker container
cd KS-A_checker
docker build -t ksa_checker .
It's possible to deploy it using a docker run command, but using a docker-compose file is easier. Isn't it? :)
---
services:
ksa-checker:
image: ksa_checker
container_name: ksa-checker
env_file: "docker.env"
restart: unless-stopped
The compose looks for a 'docker.env', where you define your environment variables. You can call it any way you want, aslong Docker can read it.
PushOver Token PO_TOKEN=
PushOver User Key PO_USER_KEY=
OVH App Key OVH_APP_KEY=
OVH App Secret OVH_APP_SECRET=
OVH Consumer Key OVH_CONSUMER_KEY=
Check interval - the amount of seconds the application should check. Default this is 60s, but can up to 1. CHECK_INTERVAL=
Setting the API keys is mandatory, the interval isn't.
if you encounter any issues, let me know by creating a issue :-)