{"action":"created","issue":{"url":"https://api.github.com/repos/MiEcosystem/miot-plugin-sdk/issues/88","repository_url":"https://api.github.com/repos/MiEcosystem/miot-plugin-sdk","labels_url":"https://api.github.com/repos/MiEcosystem/miot-plugin-sdk/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/MiEcosystem/miot-plugin-sdk/issues/88/comments","events_url":"https://api.github.com/repos/MiEcosystem/miot-plugin-sdk/issues/88/events","html_url":"https://github.com/MiEcosystem/miot-plugin-sdk/issues/88","id":386431456,"node_id":"MDU6SXNzdWUzODY0MzE0NTY=","number":88,"title":"Service.smarthome.getWeatherInfo","user":{"login":"edwardair","id":2043635,"node_id":"MDQ6VXNlcjIwNDM2MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/2043635?v=4","gravatar_id":"","url":"https://api.github.com/users/edwardair","html_url":"https://github.com/edwardair","followers_url":"https://api.github.com/users/edwardair/followers","following_url":"https://api.github.com/users/edwardair/following{/other_user}","gists_url":"https://api.github.com/users/edwardair/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardair/subscriptions","organizations_url":"https://api.github.com/users/edwardair/orgs","repos_url":"https://api.github.com/users/edwardair/repos","events_url":"https://api.github.com/users/edwardair/events{/privacy}","received_events_url":"https://api.github.com/users/edwardair/received_events","type":"User","site_admin":false},"labels":[{"id":1034027048,"node_id":"MDU6TGFiZWwxMDM0MDI3MDQ4","url":"https://api.github.com/repos/MiEcosystem/miot-plugin-sdk/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-12-01T07:02:15Z","updated_at":"2018-12-19T08:52:17Z","closed_at":null,"author_association":"NONE","body":"**平台：iOS**\r\n\r\n> Service\r\n        .smarthome\r\n        .getWeatherInfo(Device.deviceID)\r\n        .then((result)=>{\r\n            MYLOG((\"-------------\"))\r\n            MYLOG((\"get weather:\"+JSON.stringify(result)));\r\n        })\r\n        .catch((error)=>{\r\n            MYLOG((\"-------------\"))\r\n            MYLOG((\"get weather error:\"+JSON.stringify(error)));\r\n        });\r\n\r\n获得的数据只有：\r\n\r\n> {\"city_id\":\"101190000\",\"city\":\"江苏\"}\r\n\r\n1. 请问  `WeatherInfo` 其他的属性开放了么？\r\n\r\n1. 打印 Device.latitude 及  Device.longitude都是0，iOS平台，米家定位权限是打开的"},"comment":{"url":"https://api.github.com/repos/MiEcosystem/miot-plugin-sdk/issues/comments/448516775","html_url":"https://github.com/MiEcosystem/miot-plugin-sdk/issues/88#issuecomment-448516775","issue_url":"https://api.github.com/repos/MiEcosystem/miot-plugin-sdk/issues/88","id":448516775,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODUxNjc3NQ==","user":{"login":"LiuMengzhou","id":13726966,"node_id":"MDQ6VXNlcjEzNzI2OTY2","avatar_url":"https://avatars0.githubusercontent.com/u/13726966?v=4","gravatar_id":"","url":"https://api.github.com/users/LiuMengzhou","html_url":"https://github.com/LiuMengzhou","followers_url":"https://api.github.com/users/LiuMengzhou/followers","following_url":"https://api.github.com/users/LiuMengzhou/following{/other_user}","gists_url":"https://api.github.com/users/LiuMengzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/LiuMengzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiuMengzhou/subscriptions","organizations_url":"https://api.github.com/users/LiuMengzhou/orgs","repos_url":"https://api.github.com/users/LiuMengzhou/repos","events_url":"https://api.github.com/users/LiuMengzhou/events{/privacy}","received_events_url":"https://api.github.com/users/LiuMengzhou/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T08:52:17Z","updated_at":"2018-12-19T08:52:17Z","author_association":"CONTRIBUTOR","body":"> 旧框架是通过 `MHPluginSDK.callSmartHomeAPI` ` '/location/area_prop_info'` 获取的天气数据 @LiuMengzhou\r\n\r\n给出传参和回调的示例。我们加一下"}}
{"actor":{"display_login":"LiuMengzhou"}}