comparison agl.py @ 12:b610ce4ec081

Cull dead code.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 11 Sep 2017 20:57:10 +0930
parents 9fac3371e9ad
children 988e511a5f29
comparison
equal deleted inserted replaced
11:9fac3371e9ad 12:b610ce4ec081
14 14
15 loginurl = 'https://command.aglsolar.com.au/api/v2/Account/LoginUser' 15 loginurl = 'https://command.aglsolar.com.au/api/v2/Account/LoginUser'
16 dataurl = 'https://command.aglsolar.com.au/api/v2/graph/b8e08afb-818f-4d2d-9d28-5afe8fc76a32' 16 dataurl = 'https://command.aglsolar.com.au/api/v2/graph/b8e08afb-818f-4d2d-9d28-5afe8fc76a32'
17 # ?endDate=2017-08-23&granularity=Minute&metrics=read&startDate=2017-08-23&units=W' 17 # ?endDate=2017-08-23&granularity=Minute&metrics=read&startDate=2017-08-23&units=W'
18 logouturl = 'https://command.aglsolar.com.au/api/v2/Account/Logout' 18 logouturl = 'https://command.aglsolar.com.au/api/v2/Account/Logout'
19
20 class UTC(datetime.tzinfo):
21 def utcoffset(self, dt):
22 return datetime.timedelta(0)
23
24 def dst(self, dt):
25 return datetime.timedelta(0)
26
27 def tzname(self, dt):
28 return "UTC"
29
30 19
31 def valid_date(s): 20 def valid_date(s):
32 try: 21 try:
33 return datetime.datetime.strptime(s, "%Y-%m-%d") 22 return datetime.datetime.strptime(s, "%Y-%m-%d")
34 except ValueError: 23 except ValueError: