Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' | |
nocolor='\033[0m' | |
status=$(curl -s http://status.schaffenburg.org) | |
if [ "$status" == "verriegelt" ]; then | |
status="${red}closed${nocolor}" | |
else | |
status="${green}open${nocolor}" |
#!/usr/local/bin/python3 | |
import json | |
from urllib.request import urlopen | |
request = urlopen("http://status.schaffenburg.org/spaceapi.php") | |
json = json.loads(request.read()) | |
status = json['state']['open'] | |
print (status and "space open | color=green" or "space closed | color=red") |