Skip to content

nixmc/nmstereo-enterprise-edition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@nmstereo -- enterprise edition

Crowd-sourcing the office stereo with Twitter and Spotify

About

Meet @nmstereo - our social office stereo 'bot, responsible for crowd-sourcing what gets played on our office stereo, with help from Twitter, Spotify and generous sprinklings of pixie dust!

How to build your own

Note, this is how we've set things up, but other setups are doubtless possible. I.e. it should be possible to setup everything up on a single Raspberry Pi running Mopidy (see Roadmap, below).

Grab yourself:

  • A suitably named Twitter account, such as @nmstereo.

  • A (preferably) Linux server running:

    Python 2.6+

    RabbitMQ (other AMQP implementations should also work, but aren't tested)

    MongoDB

    virtualenv (optional, but recommended)

    pip (optional, but recommended)

  • An OS X box running:

    Spotify

  • A copy of the source code, checked out on both the Linux server and the OS X box.

On your Linux server:

  • Create a new virtualenv, activate it, and install the requirements listed in requirements.txt:
          $ virtualenv --no-site-packages ENV
          $ source ENV/bin/activate
          $ pip install requirements.txt
      
  • Grant "Read, Write and Direct Messages" permissions to your designated Twitter account.
  • Make a settings.py, and edit the settings to match your own environment.
  • Run the receiver, decoder and broadcaster, either using the example Upstart .conf files or directly, i.e.:
          $ userstream_receiver.py &
          $ decoder.py &
          $ broadcaster.py &
      

On your OS X box:

  • Create a new virtualenv, activate it, and install the requirements listed in requirements.txt:
          $ virtualenv --no-site-packages ENV
          $ source ENV/bin/activate
          $ pip install requirements.txt
      
  • Make a settings.py, and edit the settings to match your own environment.
  • Run the stereo client either using the example LaunchAgent .plist file or directly, i.e.:
          $ stereo.py &
      
  • Invite your friends to "Get their hits out"! :)

Roadmap

Contact

For more info, contact:

  • devden [at] nixonmcinnes.co.uk

About

Crowd-sourcing the office stereo - with Twitter and Spotify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages