{"action":"created","issue":{"url":"https://api.github.com/repos/openaps/openaps/issues/101","repository_url":"https://api.github.com/repos/openaps/openaps","labels_url":"https://api.github.com/repos/openaps/openaps/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/openaps/openaps/issues/101/comments","events_url":"https://api.github.com/repos/openaps/openaps/issues/101/events","html_url":"https://github.com/openaps/openaps/issues/101","id":161004289,"number":101,"title":"Report nightscout/recent-missing-entries.json fails with AttributeError","user":{"login":"bfaloona","id":86428,"avatar_url":"https://avatars.githubusercontent.com/u/86428?v=3","gravatar_id":"","url":"https://api.github.com/users/bfaloona","html_url":"https://github.com/bfaloona","followers_url":"https://api.github.com/users/bfaloona/followers","following_url":"https://api.github.com/users/bfaloona/following{/other_user}","gists_url":"https://api.github.com/users/bfaloona/gists{/gist_id}","starred_url":"https://api.github.com/users/bfaloona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfaloona/subscriptions","organizations_url":"https://api.github.com/users/bfaloona/orgs","repos_url":"https://api.github.com/users/bfaloona/repos","events_url":"https://api.github.com/users/bfaloona/events{/privacy}","received_events_url":"https://api.github.com/users/bfaloona/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-18T03:23:47Z","updated_at":"2016-10-03T17:03:23Z","closed_at":null,"body":"This gist shows the details of the report, and the Traceback.\r\n\r\nhttps://gist.github.com/bfaloona/6e2e9ea3ee734614631d8f99f0f7d528\r\n\r\n```\r\npi@openaps-lp:~/openaps-lp-01 $ openaps report show nightscout/recent-missing-entries.json --ini\r\n[report \"nightscout/recent-missing-entries.json\"]\r\noper = format-recent-type\r\nuse = shell\r\nreporter = JSON\r\ndevice = ns\r\nremainder = tz entries nightscout/glucose-raw.json\r\njson_default = True\r\n\r\npi@openaps-lp:~/openaps-lp-01 $ openaps report show nightscout/glucose-raw.json --ini\r\n[report \"nightscout/glucose-raw.json\"]\r\noper = get\r\ndevice = ns\r\nuse = shell\r\nremainder = entries.json count=288\r\nreporter = JSON\r\n\r\npi@openaps-lp:~/openaps-lp-01 $ openaps report show monitor/glucose.json --ini\r\n[report \"monitor/glucose.json\"]\r\nuse = rezone\r\nreporter = JSON\r\nastimezone = True\r\ndate = timestamp dateString start_at end_at created_at system_time display_time\r\nadjust = missing\r\ntimezone = \r\ndevice = tz\r\ninput = nightscout/glucose-raw.json\r\n\r\npi@openaps-lp:~/openaps-lp-01 $ openaps use ns shell format-recent-type tz entries nightscout/glucose-raw.json\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/openaps-use\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')\r\n  File \"/usr/local/lib/python2.7/dist-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/__init__.py\", line 719, in run_script\r\n  File \"/usr/local/lib/python2.7/dist-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/__init__.py\", line 1504, in run_script\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use\", line 63, in <module>\r\n    app( )\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py\", line 51, in __call__\r\n    self.run(self.args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use\", line 57, in run\r\n    output = app(args, self)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/__init__.py\", line 92, in __call__\r\n    return self.method.selected(args)(args, app)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/__init__.py\", line 31, in __call__\r\n    return self.method(args, app)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py\", line 45, in __call__\r\n    output = self.main(args, app)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/__init__.py\", line 298, in main\r\n    if spec.includes(get(elem)):\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/__init__.py\", line 264, in get\r\n    return parse(item.get(args.date))\r\n  File \"/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py\", line 1164, in parse\r\n    return DEFAULTPARSER.parse(timestr, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py\", line 552, in parse\r\n    res, skipped_tokens = self._parse(timestr, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py\", line 671, in _parse\r\n    l = _timelex.split(timestr)         # Splits the timestr into tokens\r\n  File \"/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py\", line 188, in split\r\n    return list(cls(s))\r\n  File \"/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py\", line 184, in next\r\n    return self.__next__()  # Python 2.x support\r\n  File \"/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py\", line 177, in __next__\r\n    token = self.get_token()\r\n  File \"/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py\", line 93, in get_token\r\n    nextchar = self.instream.read(1)\r\nAttributeError: 'NoneType' object has no attribute 'read'\r\nNo JSON object could be decoded\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/openaps-use\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')\r\n  File \"/usr/local/lib/python2.7/dist-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/__init__.py\", line 719, in run_script\r\n  File \"/usr/local/lib/python2.7/dist-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/__init__.py\", line 1504, in run_script\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use\", line 63, in <module>\r\n    app( )\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py\", line 51, in __call__\r\n    self.run(self.args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use\", line 58, in run\r\n    reporter(output)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/__init__.py\", line 33, in __call__\r\n    self.blob = self.serialize(data)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/__init__.py\", line 31, in serialize\r\n    return self.method.serialize(render(data), self)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py\", line 56, in prerender_json\r\n    return json.loads(data)\r\n  File \"/usr/lib/python2.7/json/__init__.py\", line 338, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"/usr/lib/python2.7/json/decoder.py\", line 366, in decode\r\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n  File \"/usr/lib/python2.7/json/decoder.py\", line 384, in raw_decode\r\n    raise ValueError(\"No JSON object could be decoded\")\r\nValueError: No JSON object could be decoded\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/openaps/openaps/issues/comments/251163311","html_url":"https://github.com/openaps/openaps/issues/101#issuecomment-251163311","issue_url":"https://api.github.com/repos/openaps/openaps/issues/101","id":251163311,"user":{"login":"mwilliams","id":525,"avatar_url":"https://avatars.githubusercontent.com/u/525?v=3","gravatar_id":"","url":"https://api.github.com/users/mwilliams","html_url":"https://github.com/mwilliams","followers_url":"https://api.github.com/users/mwilliams/followers","following_url":"https://api.github.com/users/mwilliams/following{/other_user}","gists_url":"https://api.github.com/users/mwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/mwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwilliams/subscriptions","organizations_url":"https://api.github.com/users/mwilliams/orgs","repos_url":"https://api.github.com/users/mwilliams/repos","events_url":"https://api.github.com/users/mwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/mwilliams/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T17:03:23Z","updated_at":"2016-10-03T17:03:23Z","body":"Is there any reason the above commit shouldn't move upstream?  Still no\nluck getting data into Nightscout here.  I have basal histories uploading\njust fine, but no glucose history.  I'm sure I'm overlooking something\ntrivial, and I've done so many revisions on it, my reports and alias's are\na bit messy.  I should take a few steps back and give it a whirl.  Seems\nlike separate tutorials for Dexom vs Enlite users might be valuable (or\nincluded a built in `generate-nightscout-upload-alias` util that simply\ndoes it all with all the reporting assumptions in place (not sure if that's\npushing things too far).\n\nOn Fri, Sep 30, 2016 at 12:01 AM Tim Mecklem <notifications@github.com>\nwrote:\n\n> I encountered the same thing recently with elite data. It seems like the\n> output from mm-format-ns-glucose wasn't compatible with the expected input\n> of format-recent-type. I made a change equivalent to this commit and it all\n> started working: tmecklem/oref0@bed40e5\n> <https://github.com/tmecklem/oref0/commit/bed40e521191903e03914249250064c306934d19>\n>\n> Is this a version mismatch or something?\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/openaps/openaps/issues/101#issuecomment-250653422>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAACDT7ii7Scoe9hagk4ekY3VQbw_0W2ks5qvImugaJpZM4I425b>\n> .\n>\n"}}
{"actor":{"display_login":"mwilliams"}}