Skip to content

Converting the custom made lap-desk into a smart desk using the Raspberry pi running raspBMC and controlling its various features via Dataplicity

License

Notifications You must be signed in to change notification settings

vivek306/smartdesk

Repository files navigation

smartdesk

Converting the custom made lap-desk into a smart desk using the Raspberry pi running raspBMC and controlling its various features via Dataplicity

alt tag

initial setup

intall raspBMC (http://www.raspberrypi.org/downloads/) into your SD Card (there are various ways to do it and if you are a Mac user I would strongly recommend using Pi Filler (http://ivanx.com/raspberrypi/)

install Dataplicity (http://dataplicity.com/get-started/), it is an amazing free tool for devs to control Raspberry pi online

SSH into the raspBMC

The most efficient way to get into the command line for raspBMC OS is to SSH it (http://www.raspbmc.com/wiki/user/using-ssh/)

Once you login your screen should say something like

pi@raspbmc :

There is a great tutorial for Rasbian OS (http://dataplicity.com/get-started/raspberry-pi/), but for RaspBMC there are some minor changes

1 - 'Prep the pi'

Just before 'Install the dataplicity examples' you got to sudo install git and ssl certificates

sudo apt-get install git-core
sudo apt-get install ca-certificates (more details on ssl can be found here https://help.ubuntu.com/community/OpenSSL)

3 - 'Register hardware'

sudo dataplicity init -u USERNAME -p PASSWORD initializes the dataplicity Core

Now in raspBMC '~/' = /home/pi/
to avoid this confusion quickly do a 'ls -la' to list all files, by default it should be
/home/pi/dataplicity/dataplicity/examples/sinewave

5 - 'Hotting up'

'vi' editor should be present by default to edit text files
sudo vi dataplicity.conf will get you into the file as admin. Press 'i' to edit the file and once completed press 'Esc' followed by 'Shift + zz" to save and close the file

To create a new file with 'vi' just go
'sudo vi pitest.py'

You should now have some grip of Dataplicity and the RaspBMC, next is to install Fusion

There are many tutorials for this, I personally followed this http://www.youtube.com/watch?v=EA6A-YwpaSI

Great, now the Pi should be on Steroids breathing fire

Just to make sure everything is fine, go to Music->Music Addons and look for "Radio" Plugin (If it is missing see if you can find it in "Get More" and if you still can't find it make sure you followed the fusion tutorial properly)

Smart-Desk, Sapota 1.0 Beta

![alt tag](https://raw.githubusercontent.com/vivek306/smartdesk/master/images/Sapota%20Small.png)

I have only tested this on nBox Skin (It is the sexiest of all!!), System->System->Skin and install nBox

Install and Run Sapota 1.0 Beta

Log back into the SSH Sapota requires XBMC Client sudo pip install xbmc-json https://github.com/jcsaaddupuy/python-xbmc this is a great tool for controlling the raspBMC via JASON Rest based calls

Navigate into dataplicity examples
cd dataplicity/dataplicity/examples

Git Clone the Smart Desk
git clone https://github.com/vivek306/smartdesk.git

To Run the Smart Desk
sudo dataplicity run inside the Smartdesk folder and to stop "Ctrl+c"

Now Go to your dataplicity account and you should see my/Smart Desk/"Weird Numbers"/"Yor Device with Weird Numbers" click it
alt tag

Now "Check" - Relax and Click "Play Music", you should see
alt tag

Please note that polling happens once every 60 secs and hence the music will take some time to play, feel free to poll it every second

Credits

Essa Saulat (Helped me build Custom Case for the Raspberry Pi with the help of http://squareitround.co.uk/Resources/Punnet_net_Mk1.pdf")
alt tag

Essa Saulat and Riham Satti (Helped me name the the software Sapota :D)

About

Converting the custom made lap-desk into a smart desk using the Raspberry pi running raspBMC and controlling its various features via Dataplicity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages