{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/io-client-python/issues/54","repository_url":"https://api.github.com/repos/adafruit/io-client-python","labels_url":"https://api.github.com/repos/adafruit/io-client-python/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/io-client-python/issues/54/comments","events_url":"https://api.github.com/repos/adafruit/io-client-python/issues/54/events","html_url":"https://github.com/adafruit/io-client-python/pull/54","id":339051409,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5ODMxOTg0","number":54,"title":"MQTT/REST Time Helpers","user":{"login":"brentru","id":322428,"node_id":"MDQ6VXNlcjMyMjQyOA==","avatar_url":"https://avatars2.githubusercontent.com/u/322428?v=4","gravatar_id":"","url":"https://api.github.com/users/brentru","html_url":"https://github.com/brentru","followers_url":"https://api.github.com/users/brentru/followers","following_url":"https://api.github.com/users/brentru/following{/other_user}","gists_url":"https://api.github.com/users/brentru/gists{/gist_id}","starred_url":"https://api.github.com/users/brentru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentru/subscriptions","organizations_url":"https://api.github.com/users/brentru/orgs","repos_url":"https://api.github.com/users/brentru/repos","events_url":"https://api.github.com/users/brentru/events{/privacy}","received_events_url":"https://api.github.com/users/brentru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-06T19:41:55Z","updated_at":"2018-07-06T19:47:16Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/adafruit/io-client-python/pulls/54","html_url":"https://github.com/adafruit/io-client-python/pull/54","diff_url":"https://github.com/adafruit/io-client-python/pull/54.diff","patch_url":"https://github.com/adafruit/io-client-python/pull/54.patch"},"body":"https://github.com/adafruit/io-client-python/issues/53\r\n\r\n> Add ability to subscribe to time topics\r\n> \r\n> time/millis\r\n> time/seconds\r\n> time/ISO-8601\r\n\r\nAPI Client (`client.py`)\r\n- modified `client.py`'s URL parsing to reflect new API call to: `/time/{value}`\r\n- added `receive_time(time_Value)` to `client.py` as a helper method\r\n- example call: `ms_val = aio.receive_time('millis')`\r\n\r\nMQTT Client (`mqtt_client.py`)\r\n- modified `mqtt_client.py` and added in helper `subscribe_time`\r\n- example call: `client.subscribe_time('seconds')`"},"comment":{"url":"https://api.github.com/repos/adafruit/io-client-python/issues/comments/403129839","html_url":"https://github.com/adafruit/io-client-python/pull/54#issuecomment-403129839","issue_url":"https://api.github.com/repos/adafruit/io-client-python/issues/54","id":403129839,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzEyOTgzOQ==","user":{"login":"brentru","id":322428,"node_id":"MDQ6VXNlcjMyMjQyOA==","avatar_url":"https://avatars2.githubusercontent.com/u/322428?v=4","gravatar_id":"","url":"https://api.github.com/users/brentru","html_url":"https://github.com/brentru","followers_url":"https://api.github.com/users/brentru/followers","following_url":"https://api.github.com/users/brentru/following{/other_user}","gists_url":"https://api.github.com/users/brentru/gists{/gist_id}","starred_url":"https://api.github.com/users/brentru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentru/subscriptions","organizations_url":"https://api.github.com/users/brentru/orgs","repos_url":"https://api.github.com/users/brentru/repos","events_url":"https://api.github.com/users/brentru/events{/privacy}","received_events_url":"https://api.github.com/users/brentru/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T19:47:16Z","updated_at":"2018-07-06T19:47:16Z","author_association":"COLLABORATOR","body":"Testing....\r\n**REST API** \r\n`python3 examples/aio_basics/adafruitio_17_time.py\r\n`\r\n\r\n> ---Adafruit IO REST API Time Helpers---\r\n> Seconds: aio.receive_time(seconds)\r\n> \t1530906256\r\n> Milliseconds: aio.receive_time(millis)\r\n> \t1530906256724\r\n> ISO-8601: aio.receive_time(ISO-8601)\r\n> \t2018-07-06T19:44:16+00:00\r\n\r\n**MQTT API**\r\n`python3 examples/mqtt/mqtt_time.py\r\n`\r\n\r\n> * Subscribing to /time/seconds\r\n> Connected to Adafruit IO!\r\n> \t Feed time received new value: 1530906374\r\n> \t Feed time received new value: 1530906375\r\n> * Subscribing to /time/millis\r\n> \t Feed time received new value: 1530906375990\r\n> \t Feed time received new value: 1530906376\r\n> \t Feed time received new value: 1530906376990\r\n> \t Feed time received new value: 1530906377\r\n> * Subscribing to iso-8601\r\n> \t Feed time received new value: 2018-07-06T19:46:17.990Z\r\n> \t Feed time received new value: 1530906377990\r\n> \t Feed time received new value: 1530906378\r\n> \t Feed time received new value: 2018-07-06T19:46:18.990Z\r\n> \t Feed time received new value: 1530906378990\r\n> \t Feed time received new value: 1530906379\r\n\r\nMerging in!"}}
{"actor":{"display_login":"brentru"}}