Added the script and a minimal readme

This commit is contained in:
Lowl3v3l 2017-04-24 01:36:27 +02:00
parent 207c8d6079
commit c1235f8876
2 changed files with 11 additions and 0 deletions

View file

@ -1,2 +1,6 @@
# status-script # status-script
a simple script in racket that reports on the room status ( without using the api itself) a simple script in racket that reports on the room status ( without using the api itself)
reports #t if the space is open and #f otherwise based on the image on the website.
to start it, have racket installed and either run racket status-script.rkt or chmod it
and run ./status-script.rkt

7
status-script.rkt Executable file
View file

@ -0,0 +1,7 @@
#! /usr/bin/racket
#lang racket
(require net/url)
(regexp-match? #rx"krautspace_pixelicon_open.png"
(port->string (get-pure-port (string->url "https://kraut.space/start"))))