Make clean scripts
parent
4bec9e183d
commit
f1bf78ca91
|
@ -1,3 +1,7 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
# this gives number of people present via spaceapi
|
# this gives number of people present via spaceapi
|
||||||
# but if network down, this does not work
|
# but if network down, this does not work
|
||||||
# better get data direct from pidor or peoplecounter
|
# better get data direct from pidor or peoplecounter
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
# sets color of first neo pixel
|
# sets color of first neo pixel
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
buttonpin=24
|
buttonpin=24
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import urllib, json
|
import urllib, json
|
||||||
|
|
||||||
url = "https://spaceapi.syn2cat.lu/status/json"
|
url = "https://spaceapi.syn2cat.lu/status/json"
|
||||||
response = urllib.urlopen(url);
|
response = urllib.urlopen(url);
|
||||||
data = json.loads(response.read())
|
data = json.loads(response.read())
|
||||||
|
|
Loading…
Reference in New Issue