{"action":"created","issue":{"url":"https://api.github.com/repos/denzilferreira/aware-client/issues/2","labels_url":"https://api.github.com/repos/denzilferreira/aware-client/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/denzilferreira/aware-client/issues/2/comments","events_url":"https://api.github.com/repos/denzilferreira/aware-client/issues/2/events","html_url":"https://github.com/denzilferreira/aware-client/issues/2","id":62693720,"number":2,"title":"New device is not added to aware_device table in the database","user":{"login":"sbobek","id":5968474,"avatar_url":"https://avatars.githubusercontent.com/u/5968474?v=3","gravatar_id":"","url":"https://api.github.com/users/sbobek","html_url":"https://github.com/sbobek","followers_url":"https://api.github.com/users/sbobek/followers","following_url":"https://api.github.com/users/sbobek/following{/other_user}","gists_url":"https://api.github.com/users/sbobek/gists{/gist_id}","starred_url":"https://api.github.com/users/sbobek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbobek/subscriptions","organizations_url":"https://api.github.com/users/sbobek/orgs","repos_url":"https://api.github.com/users/sbobek/repos","events_url":"https://api.github.com/users/sbobek/events{/privacy}","received_events_url":"https://api.github.com/users/sbobek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-03-18T13:26:53Z","updated_at":"2015-04-23T08:24:59Z","closed_at":null,"body":"When new device was added with the QR-code scanning it was not added to the list of devices.\r\nIn the web api website the list of devices is empty and it looks like it constantly loading something, but nothing is ever happening. (I have 19 devices but none of them is displayed in the web api panel)\r\nThe other data from device sensors are coming to the database."},"comment":{"url":"https://api.github.com/repos/denzilferreira/aware-client/issues/comments/95487847","html_url":"https://github.com/denzilferreira/aware-client/issues/2#issuecomment-95487847","issue_url":"https://api.github.com/repos/denzilferreira/aware-client/issues/2","id":95487847,"user":{"login":"denzilferreira","id":8342829,"avatar_url":"https://avatars.githubusercontent.com/u/8342829?v=3","gravatar_id":"","url":"https://api.github.com/users/denzilferreira","html_url":"https://github.com/denzilferreira","followers_url":"https://api.github.com/users/denzilferreira/followers","following_url":"https://api.github.com/users/denzilferreira/following{/other_user}","gists_url":"https://api.github.com/users/denzilferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/denzilferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denzilferreira/subscriptions","organizations_url":"https://api.github.com/users/denzilferreira/orgs","repos_url":"https://api.github.com/users/denzilferreira/repos","events_url":"https://api.github.com/users/denzilferreira/events{/privacy}","received_events_url":"https://api.github.com/users/denzilferreira/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T08:24:59Z","updated_at":"2015-04-23T08:24:59Z","body":"Now that I’m looking into this… you might actually have to delete the .db file from the AWARE folder for open weather to recreate the database, with the correct schema. This should have been done automatically, but it seems I forgot to change the database version number, hence Android did not update the schema when updating the plugin.\n\n\n    Denzil;—\n\nUniversity of Oulu\n\n\nOffice: TS388 | Team: comag.oulu.fi\n\n\n@denzilferreira | denzilferreira.com | awareframework.com\n\nOn Thu, Apr 23, 2015 at 11:12 AM, null <ferreiradenzil@gmail.com> wrote:\n\n> Try removing and reinstalling the plug-in. That should update the schema locally on the phone. However, you will lose previous collected data :( do a backup of the collected data before doing this. I'll have to implement a similar updating schema function on Android. For now all it does is drop the table and create a new one when updating the schema.\n> On the server side, the update should keep previous data and modify the database schema to match your phone's schema.\n>         Denzil;\n> ----\n> University of Oulu\n> Group: comag.oulu.fi\n> Research: denzilferreira.com | awareframework.com \n> \t\n> On Thu, Apr 23, 2015 at 1:01 AM -0700, \"sbobek\" <notifications@github.com> wrote:\n> OK. So Here is how it looks like (good you've asked about the latest version of the plugin).\n> 1.) I have checked the SQLite database on the phone, and it is not updated. The plugin is collecting data, but it uses the old schema.\n> 2.) I got an information about the OpenWeather  plugin update from the system notification, so I did not checked that before (Current version that is displayed in application manager is 1.3).\n> 3.) Now, the problem seems obvious: a) either my plugin is not updated  - how do I update it? b) Or my plugin is updated, but somehow works on the old database.\n> —\n> Reply to this email directly or view it on GitHub."}}