{"action":"created","issue":{"url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/233","labels_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/233/comments","events_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/233/events","html_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/233","id":124589359,"number":233,"title":"Inconsistent devicestatus upload between Rest API and Direct Mongolab upload ","user":{"login":"Fredensvold","id":11913664,"avatar_url":"https://avatars.githubusercontent.com/u/11913664?v=3","gravatar_id":"","url":"https://api.github.com/users/Fredensvold","html_url":"https://github.com/Fredensvold","followers_url":"https://api.github.com/users/Fredensvold/followers","following_url":"https://api.github.com/users/Fredensvold/following{/other_user}","gists_url":"https://api.github.com/users/Fredensvold/gists{/gist_id}","starred_url":"https://api.github.com/users/Fredensvold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fredensvold/subscriptions","organizations_url":"https://api.github.com/users/Fredensvold/orgs","repos_url":"https://api.github.com/users/Fredensvold/repos","events_url":"https://api.github.com/users/Fredensvold/events{/privacy}","received_events_url":"https://api.github.com/users/Fredensvold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-02T12:44:08Z","updated_at":"2016-01-02T15:46:49Z","closed_at":null,"body":"There is a small difference in the devicestatus format between Rest API and Direct Mongolab upload.\r\n\r\n1. If you use direct Mongolab upload from within xDrip your battery status will not show up in yoursite.azurewebsites.net\r\n2. If you use Rest API upload from within xDrip your battery status will show up in yoursite.azurewebsites.net\r\n\r\nThe battery status is the uploader phones battery status when the wixel is inside the phone.\r\n\r\nThe image below shows the difference. \r\n\r\nThis error is with cgm-remote-monitor version 8.4. When I use cgm-remote-monitor version 8.2 both cased above will actually show the battery status! I guess there must have been changes in cgm-remote-monitor.\r\n\r\n![devicestatus](https://cloud.githubusercontent.com/assets/11913664/12074438/ae8c1482-b154-11e5-83de-23865d7862da.jpg)"},"comment":{"url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/comments/168401424","html_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/233#issuecomment-168401424","issue_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/233","id":168401424,"user":{"login":"tzachi-dar","id":7942372,"avatar_url":"https://avatars.githubusercontent.com/u/7942372?v=3","gravatar_id":"","url":"https://api.github.com/users/tzachi-dar","html_url":"https://github.com/tzachi-dar","followers_url":"https://api.github.com/users/tzachi-dar/followers","following_url":"https://api.github.com/users/tzachi-dar/following{/other_user}","gists_url":"https://api.github.com/users/tzachi-dar/gists{/gist_id}","starred_url":"https://api.github.com/users/tzachi-dar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzachi-dar/subscriptions","organizations_url":"https://api.github.com/users/tzachi-dar/orgs","repos_url":"https://api.github.com/users/tzachi-dar/repos","events_url":"https://api.github.com/users/tzachi-dar/events{/privacy}","received_events_url":"https://api.github.com/users/tzachi-dar/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T15:46:49Z","updated_at":"2016-01-02T15:46:49Z","body":"It seems that on the rest api, created_at is not introduced by the uploader.\r\nCan you add one line to the code, and see if this solves the problem?\r\n\r\nit seems to me that on the functoin postDeviceStatus you need to add the line:\r\njson.put(\"created_at\", format.format(System.currentTimeMillis());\r\n\r\nThis is in the file Nightscoutuploader.java at line 285 (on my system).\r\n\r\nIf you have a problem compiling this, please let me know.\r\n\r\nThanks\r\nTzachi\r\n\r\n"}}