Module Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args defaults body Expr Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str With Call NameLoad Str Str NameStore body For NameStore Call AttributeLoad NameLoad attr body If CompareGt Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str Assign NameStore IfExp CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Str decorator_list
N/A N/A json N/A urllib2 N/A string settings PROTOCOL HOSTNAME http_server stop refresh_devices N/A N/A N/A N/A N/A N/A stop N/A tokenFile N/A open token.txt N/A token N/A N/A tokenFile read N/A N/A N/A tokenFile close N/A devicesFile N/A open devices.txt w N/A N/A open endpoints.txt r fh N/A N/A endpoint N/A N/A fh readlines N/A N/A N/A N/A N/A endpoint __len__ 1 N/A N/A deviceType N/A switches locks N/A N/A endpoint N/A N/A endpoint strip N/A url N/A N/A {protocol}://{hostname}{endpoint}/{deviceType} format protocol PROTOCOL hostname HOSTNAME endpoint endpoint deviceType deviceType N/A req N/A N/A urllib2 Request url N/A N/A N/A req add_header Authorization N/A Bearer %s token N/A response N/A N/A urllib2 urlopen req N/A the_page N/A N/A response read N/A jsonData N/A N/A json loads the_page N/A device jsonData N/A N/A deviceKey N/A N/A {endpoint}/{deviceType}/{deviceId} format endpoint endpoint deviceType deviceType deviceId N/A device N/A id N/A deviceValue N/A N/A N/A len N/A device N/A label 0 N/A device N/A name N/A device N/A label N/A deviceCache N/A N/A {key}:{value}
 format key deviceKey value deviceValue N/A N/A N/A devicesFile write deviceCache N/A N/A N/A devicesFile close N/A Your SmartThings device cache has been updated N/A