Saturday, July 4, 2015

RaspberryPI xbmc-send - Playing Youtube videos from laptop

If we are watching some youtube videos on our laptop or desktop and want to push that video to RaspberryPI we can follow the following steps.

1. Install xbmc-send software on our system where we are watching youtube.
2. Next copy paste the code from [1] and replace RaspberryPI_ip with your RaspberryPI IP address.
3. Next make the script executable with "chmod +x" Then call it with youtube url as parameter for it.




[1]

http://pastebin.com/mw5LGJpu

Raspberry PI JASON

Wow now we can use Jason to control RaspberryPI :-)


curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"This is the title of the message","message":"This is the body of the message"},"id":1}' http://username:password@RasbperryPi_IPaddress/jsonrpc

The list of all method we can using under jason is given under [1].  [2] showed how to explore the methods in a more structured way.

[1]
http://pastebin.com/AmR3r1Gy

[2]
http://jsonviewer.stack.hu/
https://www.jsoneditoronline.org/