{"action":"created","issue":{"url":"https://api.github.com/repos/Fourdee/DietPi/issues/1827","repository_url":"https://api.github.com/repos/Fourdee/DietPi","labels_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1827/labels{/name}","comments_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1827/comments","events_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1827/events","html_url":"https://github.com/Fourdee/DietPi/issues/1827","id":330327794,"node_id":"MDU6SXNzdWUzMzAzMjc3OTQ=","number":1827,"title":"META | Public DietPi-Survey result web page","user":{"login":"MichaIng","id":28480705,"node_id":"MDQ6VXNlcjI4NDgwNzA1","avatar_url":"https://avatars2.githubusercontent.com/u/28480705?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaIng","html_url":"https://github.com/MichaIng","followers_url":"https://api.github.com/users/MichaIng/followers","following_url":"https://api.github.com/users/MichaIng/following{/other_user}","gists_url":"https://api.github.com/users/MichaIng/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaIng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaIng/subscriptions","organizations_url":"https://api.github.com/users/MichaIng/orgs","repos_url":"https://api.github.com/users/MichaIng/repos","events_url":"https://api.github.com/users/MichaIng/events{/privacy}","received_events_url":"https://api.github.com/users/MichaIng/received_events","type":"User","site_admin":false},"labels":[{"id":954060024,"node_id":"MDU6TGFiZWw5NTQwNjAwMjQ=","url":"https://api.github.com/repos/Fourdee/DietPi/labels/META","name":"META","color":"6dffcc","default":false}],"state":"open","locked":false,"assignee":{"login":"MichaIng","id":28480705,"node_id":"MDQ6VXNlcjI4NDgwNzA1","avatar_url":"https://avatars2.githubusercontent.com/u/28480705?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaIng","html_url":"https://github.com/MichaIng","followers_url":"https://api.github.com/users/MichaIng/followers","following_url":"https://api.github.com/users/MichaIng/following{/other_user}","gists_url":"https://api.github.com/users/MichaIng/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaIng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaIng/subscriptions","organizations_url":"https://api.github.com/users/MichaIng/orgs","repos_url":"https://api.github.com/users/MichaIng/repos","events_url":"https://api.github.com/users/MichaIng/events{/privacy}","received_events_url":"https://api.github.com/users/MichaIng/received_events","type":"User","site_admin":false},"assignees":[{"login":"MichaIng","id":28480705,"node_id":"MDQ6VXNlcjI4NDgwNzA1","avatar_url":"https://avatars2.githubusercontent.com/u/28480705?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaIng","html_url":"https://github.com/MichaIng","followers_url":"https://api.github.com/users/MichaIng/followers","following_url":"https://api.github.com/users/MichaIng/following{/other_user}","gists_url":"https://api.github.com/users/MichaIng/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaIng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaIng/subscriptions","organizations_url":"https://api.github.com/users/MichaIng/orgs","repos_url":"https://api.github.com/users/MichaIng/repos","events_url":"https://api.github.com/users/MichaIng/events{/privacy}","received_events_url":"https://api.github.com/users/MichaIng/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Fourdee/DietPi/milestones/57","html_url":"https://github.com/Fourdee/DietPi/milestone/57","labels_url":"https://api.github.com/repos/Fourdee/DietPi/milestones/57/labels","id":2623376,"node_id":"MDk6TWlsZXN0b25lMjYyMzM3Ng==","number":57,"title":"Website Tasks","description":"","creator":{"login":"Fourdee","id":7077026,"node_id":"MDQ6VXNlcjcwNzcwMjY=","avatar_url":"https://avatars3.githubusercontent.com/u/7077026?v=4","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2017-07-05T16:19:21Z","updated_at":"2018-06-07T15:36:00Z","due_on":null,"closed_at":null},"comments":21,"created_at":"2018-06-07T15:35:59Z","updated_at":"2018-07-02T21:21:13Z","closed_at":null,"author_association":"COLLABORATOR","body":"As we restart the new updated safer and more transparent DietPi-Survey (https://github.com/Fourdee/DietPi/pull/1822), I though it would be nice to have a public result page to review current statistics. So users know exactly what we do with the data and we can also easily access them without the need to do manual extraction, sorting and evaluation.\r\n\r\nI though about some cron job, that extracts the data, sorts them and writes them back to some simple HTML file that can be accessed publicly.\r\n\r\nExtremely nice would be of course a ready to use PHP table script with sorting, filtering and search function, but I couldn't find one through quick www research. The latter one would e.g. need the data to be regularly read and saved into a MariaDB table from where the PHP script can read. If someone knows how to achieve this or has fun to write such script, would be welcome.\r\n\r\nThe installed software part could be a bid tricky, as the software IDs change by times. I thought about another (array) file for each DietPi version that connects software IDs with software title. \r\n\r\nThis is how the survey files currently look like:\r\n```\r\n-------------------------\r\nDietPi-Survey v$SURVEY_VERSION\r\n-------------------------\r\nUpload Count   : $SURVEY_SENTCOUNT\r\nDietPi Version : $DIETPI_VERSION\r\nHardware Index : $G_HW_MODEL\r\nHardware Name  : $G_HW_MODEL_DESCRIPTION\r\nDistro Index   : $G_DISTRO\r\nAutoboot Index : $(</DietPi/dietpi/.dietpi-autostart_index)\r\nHostname       : $(</etc/hostname)\r\n-------------------------\r\nDietPi-Software Installed\r\n-------------------------\r\n$(grep '=2' /DietPi/dietpi/.installed)\r\n```\r\nAh @Fourdee we should remove hostname for anonymity? Can't think of value we get through this."},"comment":{"url":"https://api.github.com/repos/Fourdee/DietPi/issues/comments/401940138","html_url":"https://github.com/Fourdee/DietPi/issues/1827#issuecomment-401940138","issue_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1827","id":401940138,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTk0MDEzOA==","user":{"login":"MichaIng","id":28480705,"node_id":"MDQ6VXNlcjI4NDgwNzA1","avatar_url":"https://avatars2.githubusercontent.com/u/28480705?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaIng","html_url":"https://github.com/MichaIng","followers_url":"https://api.github.com/users/MichaIng/followers","following_url":"https://api.github.com/users/MichaIng/following{/other_user}","gists_url":"https://api.github.com/users/MichaIng/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaIng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaIng/subscriptions","organizations_url":"https://api.github.com/users/MichaIng/orgs","repos_url":"https://api.github.com/users/MichaIng/repos","events_url":"https://api.github.com/users/MichaIng/events{/privacy}","received_events_url":"https://api.github.com/users/MichaIng/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T21:21:13Z","updated_at":"2018-07-02T21:21:13Z","author_association":"COLLABORATOR","body":"@Fourdee \r\nWill do testing now, handling is already partly added to survey-report script. As you check the current survey script, the loops already contain those array number increases of type: `((aSURVEY_VERSION[6]++))`\r\nWhen sourcing the file, this is not done automatically to the right array. Values look correct. Translation of arrays to html file does not change, as the arrays are the same that are already created for v6.9."}}
{"actor":{"display_login":"MichaIng"}}