Git Product home page Git Product logo

smartdesk's Introduction

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)

smartdesk's People

Contributors

vivek306 avatar

Watchers

James Cloos avatar Tambralinga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.