jso / py-wink

Python library for interfacing with Wink devices by Quirky
MIT License
46 stars 25 forks source link

query: if i might impose? #3

Closed mrose17 closed 10 years ago

mrose17 commented 10 years ago

i'm back!

could you run your api and capture the output of "/users/me/wink_devices" and copy and paste that. be sure to '***' any sensitive information, but what's show in the api spec for wink_devices doesn't match up with what i think should be there…

sorry to be a pest (but i am excitable)… (-;

jso commented 10 years ago

Here's the output of that call. As you can see, dial index 2 is the one I have been messing with.

import wink w = wink.init() from pprint import pprint pprint(w.get_devices())

[{u'alarms': [], u'cloud_clockid': u’**’, u'cloud_clock_triggers': [], u'dials': [{u'brightness': 25, u'channel_configuration': {u'channel_id': u'1', u'locale': u'en_us', u'timezone': u'America/Chicago'}, u'dial_configuration': {u'max_position': 720, u'max_value': 86400, u'min_position': 0, u'min_value': 0, u'num_ticks': 12, u'rotation': u'cw', u'scale_type': u'linear'}, u'dialid': u'**', u'dial_index': 0, u'label': u'8:18 PM', u'labels': [u'8:18 PM', u'Chicago'], u'name': u'Time', u'position': 249.40833333333342, u'refreshed_at': 1389147529, u'value': 73129.0}, {u'brightness': 25, u'channel_configuration': {u'channel_id': u'2', u'latlng': [*, __], u'locale': u'enus', u'location': u', United States', u'reading_type': u'weather_conditions'}, u'dial_configuration': {u'max_position': 135, u'max_value': 25, u'min_position': -135, u'min_value': -25, u'num_ticks': 12, u'rotation': u'cw', u'scale_type': u'linear'}, u'dial_id': u'_', u'dial_index': 1, u'label': u'TEMP 5', u'labels': [u'TEMP 5', u'Partly Cloudy'], u'name': u'Weather', u'position': 37.8, u'refreshed_at': 1389146072, u'value': 7.0}, {u'brightness': 25, u'channel_configuration': {u'channel_id': u'10'}, u'dial_configuration': {u'max_position': 90, u'max_value': 24, u'min_position': -90, u'min_value': 1, u'num_ticks': 12, u'rotation': u'cw', u'scale_type': u'linear'}, u'dialid': u'', u'dial_index': 2, u'label': u'foooo', u'labels': [u'foooo'], u'name': u'foooooo', u'position': 90.0, u'refreshed_at': 1389074846, u'value': 24.0}, {u'brightness': 25, u'channel_configuration': {u'channel_id': u'5', u'linked_service_ids': [u'_'], u'linked_service_types': [u'google.read_messages'], u'reading_type': u'unread_message_count'}, u'dial_configuration': {u'max_position': 135, u'max_value': 1000, u'min_position': -135, u'min_value': 1, u'num_ticks': 12, u'rotation': u'cw', u'scale_type': u'log'}, u'dialid': u'', u'dial_index': 3, u'label': u'0 MSGS', u'labels': [u'0 MSGS', u'EMAIL'], u'name': u'Email', u'position': 225.0, u'refreshed_at': 1389146358, u'value': 0.0}], u'last_reading': {u'connection': None, u'connection_updated_at': None}, u'locale': u'en_us', u'mac_address': u'', u'name': u'', u'serial': u'_', u'subscription': {u'pubnub': {u'channel': u'cloudclock-|user-|', u'subscribe_key': u'_'}}, u'triggers': [], u'userids': [u'**']}]

On Tue, Jan 7, 2014 at 8:16 PM, mrose17 notifications@github.com wrote:

i'm back!

could you run your api and capture the output of "/users/me/wink_devices" and copy and paste that. be sure to '***' any sensitive information, but what's show in the api spec for wink_devices doesn't match up with what i think should be there…

sorry to be a pest (but i am excitable)… (-;

— Reply to this email directly or view it on GitHubhttps://github.com/jso/py-wink/issues/3 .

mrose17 commented 10 years ago

many thanks. exactly what i was looking for!

mrose17 commented 10 years ago

heh, heh… they just oauth'd me… details to follow on testing...

jso commented 10 years ago

Great news, good luck! Now that I have the basics fairly settled, I'm getting to the fun part. :)

On Tue, Jan 7, 2014 at 8:55 PM, mrose17 notifications@github.com wrote:

heh, heh… they just oauth'd me… details to follow on testing...

— Reply to this email directly or view it on GitHubhttps://github.com/jso/py-wink/issues/3#issuecomment-31801865 .

mrose17 commented 10 years ago

+1