Added the script and a minimal readme
This commit is contained in:
parent
207c8d6079
commit
c1235f8876
2 changed files with 11 additions and 0 deletions
|
@ -1,2 +1,6 @@
|
|||
# status-script
|
||||
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
7
status-script.rkt
Executable 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"))))
|
Reference in a new issue