{"action":"created","issue":{"url":"https://api.github.com/repos/spesmilo/electrum/issues/1568","labels_url":"https://api.github.com/repos/spesmilo/electrum/issues/1568/labels{/name}","comments_url":"https://api.github.com/repos/spesmilo/electrum/issues/1568/comments","events_url":"https://api.github.com/repos/spesmilo/electrum/issues/1568/events","html_url":"https://github.com/spesmilo/electrum/issues/1568","id":119417939,"number":1568,"title":"Add notifications to electrum","user":{"login":"Jzarecta","id":1203274,"avatar_url":"https://avatars.githubusercontent.com/u/1203274?v=3","gravatar_id":"","url":"https://api.github.com/users/Jzarecta","html_url":"https://github.com/Jzarecta","followers_url":"https://api.github.com/users/Jzarecta/followers","following_url":"https://api.github.com/users/Jzarecta/following{/other_user}","gists_url":"https://api.github.com/users/Jzarecta/gists{/gist_id}","starred_url":"https://api.github.com/users/Jzarecta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jzarecta/subscriptions","organizations_url":"https://api.github.com/users/Jzarecta/orgs","repos_url":"https://api.github.com/users/Jzarecta/repos","events_url":"https://api.github.com/users/Jzarecta/events{/privacy}","received_events_url":"https://api.github.com/users/Jzarecta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-30T04:44:28Z","updated_at":"2016-01-31T06:32:36Z","closed_at":null,"body":"Would be nice to have sound and visual notification on wallet movements. Notifications are important where the software is not on the active desktop (minimized). Doing transfers and expecting a deposit by the user could be greatly enhaced by a sound notification. Using Qsound is rather easy to add this feature to the electrum wallet. \r\n```python\r\nfrom PyQt4 import QtGui\r\ns = QtGui.QSound('test.wav')\r\ns.play()\r\nwhile not s.isFinished():\r\n    sleep(0.1)\r\n```\r\nVisual notification can be used through Growl or libnotify.\r\n```python\r\n    def notify(self, receiver, event):\r\n        \"\"\" Pass the event on, printing diagnostics if enabled. \"\"\"\r\n  \r\n        if self.assertOnEvents:\r\n            print('Post-termination event: receiver = %s, event = %s' % (receiver, event))\r\n        return QApplication.notify(self, receiver, event)\r\n```\r\nHere is an example of the NuWallet Qt app using growl:\r\nhttps://bitbucket.org/JordanLeePeershares/nubit/src/6fe88883f316b1ff3448d52438e9d122f808da51/src/qt/notificator.cpp?at=master&fileviewer=file-view-default"},"comment":{"url":"https://api.github.com/repos/spesmilo/electrum/issues/comments/177411869","html_url":"https://github.com/spesmilo/electrum/issues/1568#issuecomment-177411869","issue_url":"https://api.github.com/repos/spesmilo/electrum/issues/1568","id":177411869,"user":{"login":"kyuupichan","id":3319176,"avatar_url":"https://avatars.githubusercontent.com/u/3319176?v=3","gravatar_id":"","url":"https://api.github.com/users/kyuupichan","html_url":"https://github.com/kyuupichan","followers_url":"https://api.github.com/users/kyuupichan/followers","following_url":"https://api.github.com/users/kyuupichan/following{/other_user}","gists_url":"https://api.github.com/users/kyuupichan/gists{/gist_id}","starred_url":"https://api.github.com/users/kyuupichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyuupichan/subscriptions","organizations_url":"https://api.github.com/users/kyuupichan/orgs","repos_url":"https://api.github.com/users/kyuupichan/repos","events_url":"https://api.github.com/users/kyuupichan/events{/privacy}","received_events_url":"https://api.github.com/users/kyuupichan/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T06:32:36Z","updated_at":"2016-01-31T06:32:36Z","body":"Can you provide two or three suggested sounds?  Unless ThomasV objects, and as he's left this open he probably doesn't, I will look to adding this if we have a couple of appropriately licensed sounds."}}