{"action":"created","issue":{"url":"https://api.github.com/repos/obihann/archey-osx/issues/17","labels_url":"https://api.github.com/repos/obihann/archey-osx/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/obihann/archey-osx/issues/17/comments","events_url":"https://api.github.com/repos/obihann/archey-osx/issues/17/events","html_url":"https://github.com/obihann/archey-osx/issues/17","id":110343525,"number":17,"title":"1.5 IP timeout & Battery","user":{"login":"jhersh","id":175139,"avatar_url":"https://avatars.githubusercontent.com/u/175139?v=3","gravatar_id":"","url":"https://api.github.com/users/jhersh","html_url":"https://github.com/jhersh","followers_url":"https://api.github.com/users/jhersh/followers","following_url":"https://api.github.com/users/jhersh/following{/other_user}","gists_url":"https://api.github.com/users/jhersh/gists{/gist_id}","starred_url":"https://api.github.com/users/jhersh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhersh/subscriptions","organizations_url":"https://api.github.com/users/jhersh/orgs","repos_url":"https://api.github.com/users/jhersh/repos","events_url":"https://api.github.com/users/jhersh/events{/privacy}","received_events_url":"https://api.github.com/users/jhersh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/obihann/archey-osx/labels/1.5.0","name":"1.5.0","color":"eb6420"},{"url":"https://api.github.com/repos/obihann/archey-osx/labels/1.5.1-pre-release","name":"1.5.1-pre-release","color":"006b75"},{"url":"https://api.github.com/repos/obihann/archey-osx/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"obihann","id":1507841,"avatar_url":"https://avatars.githubusercontent.com/u/1507841?v=3","gravatar_id":"","url":"https://api.github.com/users/obihann","html_url":"https://github.com/obihann","followers_url":"https://api.github.com/users/obihann/followers","following_url":"https://api.github.com/users/obihann/following{/other_user}","gists_url":"https://api.github.com/users/obihann/gists{/gist_id}","starred_url":"https://api.github.com/users/obihann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obihann/subscriptions","organizations_url":"https://api.github.com/users/obihann/orgs","repos_url":"https://api.github.com/users/obihann/repos","events_url":"https://api.github.com/users/obihann/events{/privacy}","received_events_url":"https://api.github.com/users/obihann/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/obihann/archey-osx/milestones/2","html_url":"https://github.com/obihann/archey-osx/milestones/1.5.1","labels_url":"https://api.github.com/repos/obihann/archey-osx/milestones/2/labels","id":1357775,"number":2,"title":"1.5.1","description":"","creator":{"login":"obihann","id":1507841,"avatar_url":"https://avatars.githubusercontent.com/u/1507841?v=3","gravatar_id":"","url":"https://api.github.com/users/obihann","html_url":"https://github.com/obihann","followers_url":"https://api.github.com/users/obihann/followers","following_url":"https://api.github.com/users/obihann/following{/other_user}","gists_url":"https://api.github.com/users/obihann/gists{/gist_id}","starred_url":"https://api.github.com/users/obihann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obihann/subscriptions","organizations_url":"https://api.github.com/users/obihann/orgs","repos_url":"https://api.github.com/users/obihann/repos","events_url":"https://api.github.com/users/obihann/events{/privacy}","received_events_url":"https://api.github.com/users/obihann/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"open","created_at":"2015-10-15T17:38:09Z","updated_at":"2015-10-30T17:58:41Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-10-07T23:56:19Z","updated_at":"2015-10-30T19:15:48Z","closed_at":"2015-10-30T17:28:41Z","body":"Thanks for a really great utility! :+1: I wanted to report 2 issues with 1.5:\r\n\r\n```\r\n% archey -c\r\n\r\n                 ###                  User: jh\r\n               ####                   Hostname: jhmp\r\n               ###                    Distro: OS X 10.11.1\r\n       #######    #######             Kernel: Darwin\r\n     ######################           Uptime: 16:44  up 8 days,  3:36, 4 users, load averages: 1.64 1.53 1.58\r\n    #####################             Shell: /usr/local/bin/zsh\r\n    ####################              Terminal: xterm-256color iTerm.app\r\n    ####################              Packages: 7\r\n    #####################             CPU: Intel Xeon CPU E5-1680 v2 @ 3.00GHz\r\n     ######################           Memory: 32 GB\r\n      ####################            Disk: 36%\r\n        ################              Battery:\r\n         ####     #####               IP Address: ;; connection timed out; no servers could be reached\r\n```\r\n\r\n:battery::no_entry_sign:  I'm on a Mac Pro, which doesn't have a battery, so it seems peculiar to include a blank battery line here.\r\n\r\n:hourglass: archey now takes about 10 seconds to execute because the IP fetch times out. I've verified that the underlying command archey is using (`dig +short myip.opendns.com @resolver1.opendns.com`) is the cause of this delay, and that command still times out and prints the above message when used alone. It may be that my current network is blocking or filtering opendns, but even if not, this network request is still likely to be the slowest part about running archey. Perhaps it's worth adding an optional switch to disable the IP address fetch?"},"comment":{"url":"https://api.github.com/repos/obihann/archey-osx/issues/comments/152621976","html_url":"https://github.com/obihann/archey-osx/issues/17#issuecomment-152621976","issue_url":"https://api.github.com/repos/obihann/archey-osx/issues/17","id":152621976,"user":{"login":"obihann","id":1507841,"avatar_url":"https://avatars.githubusercontent.com/u/1507841?v=3","gravatar_id":"","url":"https://api.github.com/users/obihann","html_url":"https://github.com/obihann","followers_url":"https://api.github.com/users/obihann/followers","following_url":"https://api.github.com/users/obihann/following{/other_user}","gists_url":"https://api.github.com/users/obihann/gists{/gist_id}","starred_url":"https://api.github.com/users/obihann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obihann/subscriptions","organizations_url":"https://api.github.com/users/obihann/orgs","repos_url":"https://api.github.com/users/obihann/repos","events_url":"https://api.github.com/users/obihann/events{/privacy}","received_events_url":"https://api.github.com/users/obihann/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T19:15:48Z","updated_at":"2015-10-30T19:15:48Z","body":"@nilstgmd I added two features that are now in master and 1.5.1 PR, one is the addition of a -o flag that disables the IP check, the other is caching of the IP. Basically we store your IP in ~/.archey-ip and next time we load if that file is less than 6 hours old we just read it instead of checking again."}}