diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/status_script.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/status_script.py b/scripts/status_script.py index 5de27f6..1686069 100755 --- a/scripts/status_script.py +++ b/scripts/status_script.py @@ -73,8 +73,7 @@ class SublabStatus(object): def fetch_state(self): if not self.json : try: - with urlopen('http://192.168.2.214:9000') as response: - #with contextlib.closing(urllib.urlopen('http://[2a02:238:f02a:9800:caa0:30ff:feb4:2185]/')) as response: + with urlopen('http://[2a02:238:f02a:9800:caa0:30ff:feb4:2185]/') as response: self.json = json.loads(response.readall().decode('utf-8')) except IOError: with urlopen('http://beaglebone.local.sublab.org/') as response: |