{"action":"opened","issue":{"url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/382","repository_url":"https://api.github.com/repos/freifunk-berlin/firmware","labels_url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/382/comments","events_url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/382/events","html_url":"https://github.com/freifunk-berlin/firmware/issues/382","id":169696368,"number":382,"title":"OWM stats: not well defined JSON structure","user":{"login":"SvenRoederer","id":1755362,"avatar_url":"https://avatars.githubusercontent.com/u/1755362?v=3","gravatar_id":"","url":"https://api.github.com/users/SvenRoederer","html_url":"https://github.com/SvenRoederer","followers_url":"https://api.github.com/users/SvenRoederer/followers","following_url":"https://api.github.com/users/SvenRoederer/following{/other_user}","gists_url":"https://api.github.com/users/SvenRoederer/gists{/gist_id}","starred_url":"https://api.github.com/users/SvenRoederer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvenRoederer/subscriptions","organizations_url":"https://api.github.com/users/SvenRoederer/orgs","repos_url":"https://api.github.com/users/SvenRoederer/repos","events_url":"https://api.github.com/users/SvenRoederer/events{/privacy}","received_events_url":"https://api.github.com/users/SvenRoederer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/freifunk-berlin/firmware/labels/feed-packages_berlin","name":"feed-packages_berlin","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-05T21:05:17Z","updated_at":"2016-08-05T21:05:17Z","closed_at":null,"body":"in issue #378 we found that the JSON-dataset uploaded by luci-app-owm has a bad structure.\r\nThe system->sysinfo-field is just an array of values, w/o fieldnames. So changing the datafields, as required by the LuCI-API change, causes some trouble to stay compatible with current parsers, like http://berlin.freifunk.net/network/stats/ \r\n\r\njson-file Kathleen 1.2\r\n> \"system\":{\"sysinfo\":[\"Atheros AR9344 rev 2\",\"TP-Link TL-WDR3600 v1\\n\",126652,12732,3720,82280,278.93000000000000682,0,0,0],\"uptime\":[1982199],\"loadavg\":[0.03369140625,0.09814453125,0.126953125]}\r\n\r\nIt should be something like:\r\n> \"system\":{\r\n   \"systeminfo\": {\"uptime\":1982199,\"loadavg\":[0.03369140625,0.09814453125,0.126953125], \"memory\":{\"buffered\":3633152,\"total\":63037440,\"shared\":1077248,\"free\":25792512}},\r\n   \"hardwareinfo\": {\"model\":\"TP-Link TL-WDR3600 v1\", \"chipset\": \"Atheros AR9344 rev 2\"}\r\n   }\r\n\r\nSo the datafields have individual names and can be parsed in a normal way.\r\n\r\nChanging this definition will for sure require some thoughts of a sane way of migration, esp. for lazy updaters who stay on old code."}}
{"actor":{"display_login":"SvenRoederer"}}