2015-05-06, 09:23
Hi!
I'm trying to use JSON-RPC to monitor the current playing song and display it as Desktop Notification.
I wrote a simple python script, using socket to send/recv JSON, which works, but I get a lot of socket.timeout errors, and I don't know why...
Also, I would like to avoid polling, and want to use notifications, as described here. But I don't understand how to do that.
Does somebody have examples, based on socket or websocket, in python?
Thanks,
I'm trying to use JSON-RPC to monitor the current playing song and display it as Desktop Notification.
I wrote a simple python script, using socket to send/recv JSON, which works, but I get a lot of socket.timeout errors, and I don't know why...
Also, I would like to avoid polling, and want to use notifications, as described here. But I don't understand how to do that.
Does somebody have examples, based on socket or websocket, in python?
Thanks,