{"action":"created","issue":{"url":"https://api.github.com/repos/CCPPETMR/SIRF-SuperBuild/issues/93","repository_url":"https://api.github.com/repos/CCPPETMR/SIRF-SuperBuild","labels_url":"https://api.github.com/repos/CCPPETMR/SIRF-SuperBuild/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/CCPPETMR/SIRF-SuperBuild/issues/93/comments","events_url":"https://api.github.com/repos/CCPPETMR/SIRF-SuperBuild/issues/93/events","html_url":"https://github.com/CCPPETMR/SIRF-SuperBuild/issues/93","id":297958096,"number":93,"title":"Number of users","user":{"login":"casperdcl","id":10780059,"avatar_url":"https://avatars0.githubusercontent.com/u/10780059?v=4","gravatar_id":"","url":"https://api.github.com/users/casperdcl","html_url":"https://github.com/casperdcl","followers_url":"https://api.github.com/users/casperdcl/followers","following_url":"https://api.github.com/users/casperdcl/following{/other_user}","gists_url":"https://api.github.com/users/casperdcl/gists{/gist_id}","starred_url":"https://api.github.com/users/casperdcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casperdcl/subscriptions","organizations_url":"https://api.github.com/users/casperdcl/orgs","repos_url":"https://api.github.com/users/casperdcl/repos","events_url":"https://api.github.com/users/casperdcl/events{/privacy}","received_events_url":"https://api.github.com/users/casperdcl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"KrisThielemans","id":6362141,"avatar_url":"https://avatars2.githubusercontent.com/u/6362141?v=4","gravatar_id":"","url":"https://api.github.com/users/KrisThielemans","html_url":"https://github.com/KrisThielemans","followers_url":"https://api.github.com/users/KrisThielemans/followers","following_url":"https://api.github.com/users/KrisThielemans/following{/other_user}","gists_url":"https://api.github.com/users/KrisThielemans/gists{/gist_id}","starred_url":"https://api.github.com/users/KrisThielemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrisThielemans/subscriptions","organizations_url":"https://api.github.com/users/KrisThielemans/orgs","repos_url":"https://api.github.com/users/KrisThielemans/repos","events_url":"https://api.github.com/users/KrisThielemans/events{/privacy}","received_events_url":"https://api.github.com/users/KrisThielemans/received_events","type":"User","site_admin":false},"assignees":[{"login":"KrisThielemans","id":6362141,"avatar_url":"https://avatars2.githubusercontent.com/u/6362141?v=4","gravatar_id":"","url":"https://api.github.com/users/KrisThielemans","html_url":"https://github.com/KrisThielemans","followers_url":"https://api.github.com/users/KrisThielemans/followers","following_url":"https://api.github.com/users/KrisThielemans/following{/other_user}","gists_url":"https://api.github.com/users/KrisThielemans/gists{/gist_id}","starred_url":"https://api.github.com/users/KrisThielemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrisThielemans/subscriptions","organizations_url":"https://api.github.com/users/KrisThielemans/orgs","repos_url":"https://api.github.com/users/KrisThielemans/repos","events_url":"https://api.github.com/users/KrisThielemans/events{/privacy}","received_events_url":"https://api.github.com/users/KrisThielemans/received_events","type":"User","site_admin":false},{"login":"bathomas","id":6682729,"avatar_url":"https://avatars2.githubusercontent.com/u/6682729?v=4","gravatar_id":"","url":"https://api.github.com/users/bathomas","html_url":"https://github.com/bathomas","followers_url":"https://api.github.com/users/bathomas/followers","following_url":"https://api.github.com/users/bathomas/following{/other_user}","gists_url":"https://api.github.com/users/bathomas/gists{/gist_id}","starred_url":"https://api.github.com/users/bathomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bathomas/subscriptions","organizations_url":"https://api.github.com/users/bathomas/orgs","repos_url":"https://api.github.com/users/bathomas/repos","events_url":"https://api.github.com/users/bathomas/events{/privacy}","received_events_url":"https://api.github.com/users/bathomas/received_events","type":"User","site_admin":false},{"login":"casperdcl","id":10780059,"avatar_url":"https://avatars0.githubusercontent.com/u/10780059?v=4","gravatar_id":"","url":"https://api.github.com/users/casperdcl","html_url":"https://github.com/casperdcl","followers_url":"https://api.github.com/users/casperdcl/followers","following_url":"https://api.github.com/users/casperdcl/following{/other_user}","gists_url":"https://api.github.com/users/casperdcl/gists{/gist_id}","starred_url":"https://api.github.com/users/casperdcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casperdcl/subscriptions","organizations_url":"https://api.github.com/users/casperdcl/orgs","repos_url":"https://api.github.com/users/casperdcl/repos","events_url":"https://api.github.com/users/casperdcl/events{/privacy}","received_events_url":"https://api.github.com/users/casperdcl/received_events","type":"User","site_admin":false},{"login":"paskino","id":14138589,"avatar_url":"https://avatars0.githubusercontent.com/u/14138589?v=4","gravatar_id":"","url":"https://api.github.com/users/paskino","html_url":"https://github.com/paskino","followers_url":"https://api.github.com/users/paskino/followers","following_url":"https://api.github.com/users/paskino/following{/other_user}","gists_url":"https://api.github.com/users/paskino/gists{/gist_id}","starred_url":"https://api.github.com/users/paskino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paskino/subscriptions","organizations_url":"https://api.github.com/users/paskino/orgs","repos_url":"https://api.github.com/users/paskino/repos","events_url":"https://api.github.com/users/paskino/events{/privacy}","received_events_url":"https://api.github.com/users/paskino/received_events","type":"User","site_admin":false},{"login":"evgueni-ovtchinnikov","id":15048532,"avatar_url":"https://avatars1.githubusercontent.com/u/15048532?v=4","gravatar_id":"","url":"https://api.github.com/users/evgueni-ovtchinnikov","html_url":"https://github.com/evgueni-ovtchinnikov","followers_url":"https://api.github.com/users/evgueni-ovtchinnikov/followers","following_url":"https://api.github.com/users/evgueni-ovtchinnikov/following{/other_user}","gists_url":"https://api.github.com/users/evgueni-ovtchinnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/evgueni-ovtchinnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgueni-ovtchinnikov/subscriptions","organizations_url":"https://api.github.com/users/evgueni-ovtchinnikov/orgs","repos_url":"https://api.github.com/users/evgueni-ovtchinnikov/repos","events_url":"https://api.github.com/users/evgueni-ovtchinnikov/events{/privacy}","received_events_url":"https://api.github.com/users/evgueni-ovtchinnikov/received_events","type":"User","site_admin":false},{"login":"rijobro","id":33289025,"avatar_url":"https://avatars0.githubusercontent.com/u/33289025?v=4","gravatar_id":"","url":"https://api.github.com/users/rijobro","html_url":"https://github.com/rijobro","followers_url":"https://api.github.com/users/rijobro/followers","following_url":"https://api.github.com/users/rijobro/following{/other_user}","gists_url":"https://api.github.com/users/rijobro/gists{/gist_id}","starred_url":"https://api.github.com/users/rijobro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rijobro/subscriptions","organizations_url":"https://api.github.com/users/rijobro/orgs","repos_url":"https://api.github.com/users/rijobro/repos","events_url":"https://api.github.com/users/rijobro/events{/privacy}","received_events_url":"https://api.github.com/users/rijobro/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-02-17T00:15:12Z","updated_at":"2018-03-02T18:49:57Z","closed_at":null,"author_association":"OWNER","body":"- [x] count superbuild clones properly (see [github-stats#viewing][gh-stats])\r\n- [x] count VM downloads (via drupal)\r\n- [x] count docker pulls (![](https://img.shields.io/docker/pulls/ccppetmr/sirf.svg))\r\n  - [x] TODO: subtract travis' docker pulls (or just estimate this from [github-stats][gh-stats]'s decrements)\r\n\r\n[gh-stats]: https://github.com/CCPPETMR/github-stats#viewing\r\n\r\n## Ambitious\r\n\r\n- [x] write a script (probably part of [github-stats][gh-stats]) to collate the following:\r\n  + [x] https://github.com/CCPPETMR/github-stats/blob/CCPPETMR/SIRF-SuperBuild/CCPPETMR_SIRF_SuperBuild.json\r\n  + [x] https://hub.docker.com/v2/repositories/ccppetmr/sirf/\r\n  + [ ] drupal download counts? Could you have a JSON API for this @paskino \r\n  + [x] travis' docker pulls?\r\n\r\n## original description\r\n\r\nWe'd like to estimate the number of users. Sum number of:\r\n\r\n+ (SuperBuild clones) - (travis non-docker jobs) - 2*(travis docker jobs) - (a little extra for devs locally cloning?)\r\n+ (docker pulls) - (travis docker jobs)\r\n+ VM binary downloads\r\n\r\nThe main problem I see is (SuperBuild clones) is only accessible at https://github.com/CCPPETMR/SIRF-SuperBuild/graphs/traffic if you are logged in to github (not publicly accessible via a JSON API) so I can't get that data to generate a badge.\r\n\r\nSo... would it be OK to generate that data ourselves using `cmake`? By that I mean something like\r\n\r\n```cmake\r\nfile(DOWNLOAD \"http://caspersci.uk.to/cgi-bin/hits.cgi?q=sirf-superbuild\"\r\n  \"${CMAKE_BINARY_DIR}/clones.svg\")\r\n# file(REMOVE \"${CMAKE_BINARY_DIR}/clones.svg\")\r\n```\r\n\r\nto increment our counter, and then get `.travis.yml` to call\r\n\r\n```bash\r\nwget https://caspersci.uk.to/cgi-bin/hits.cgi?q=sirf-superbuild-travis -o /dev/null -b\r\n```\r\n\r\na few times to decrement... that way I can give you something like: ![](https://caspersci.uk.to/cgi-bin/hits.cgi?q=sirf-superbuild&m=sirf-superbuild-travis&label=installs&a=display&l=https://avatars2.githubusercontent.com/u/16674841?s=32&amp;v=4)"},"comment":{"url":"https://api.github.com/repos/CCPPETMR/SIRF-SuperBuild/issues/comments/370016495","html_url":"https://github.com/CCPPETMR/SIRF-SuperBuild/issues/93#issuecomment-370016495","issue_url":"https://api.github.com/repos/CCPPETMR/SIRF-SuperBuild/issues/93","id":370016495,"user":{"login":"casperdcl","id":10780059,"avatar_url":"https://avatars0.githubusercontent.com/u/10780059?v=4","gravatar_id":"","url":"https://api.github.com/users/casperdcl","html_url":"https://github.com/casperdcl","followers_url":"https://api.github.com/users/casperdcl/followers","following_url":"https://api.github.com/users/casperdcl/following{/other_user}","gists_url":"https://api.github.com/users/casperdcl/gists{/gist_id}","starred_url":"https://api.github.com/users/casperdcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casperdcl/subscriptions","organizations_url":"https://api.github.com/users/casperdcl/orgs","repos_url":"https://api.github.com/users/casperdcl/repos","events_url":"https://api.github.com/users/casperdcl/events{/privacy}","received_events_url":"https://api.github.com/users/casperdcl/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T18:49:57Z","updated_at":"2018-03-02T18:49:57Z","author_association":"OWNER","body":"should be noted that every time we restart a job on `travis` (because e.g. it failed due to `apt-get` connections issues) then the counter will increment (because `travis` will have cloned the repo and then failed before we could decrement)"}}
{"actor":{"display_login":"casperdcl"}}