Cleversounds
From Music Hack Day
Contents |
[edit] Who Are You?
Dylan Jones - 21 year-old Electronic and Communications student at the University of Leeds
[edit] What Is It?
You are walking around between shops, pubs, clubs and your house - they usually have some music playing in the background. Wouldn't it be nice if they played your favourite music?
You register your Bluetooth enabled mobile device to the website cleversounds.info, link your Last.fm and facebook accounts. Next time you visit a place with a cleversounds jukebox (at the moment, just my laptop), you will be played artists that you like!
You get a complete record of what, where and when a track was played for you through the website. You are also offered recommendations on artists we think you may like! You can even see a map of where your tracks were played!
[edit] APIs
- Last.fm
- bbc.co.uk/music
- Facebook Graph API
- Echo Nest
- Google Maps
- University Radio York
[edit] Hardware & Software
[edit] Other Libraries
[edit] Languages
- PHP
- Javascript/HTML
- SQL
- Welsh
[edit] How?
This project is split into 2 parts. The website and Jukebox.
The website handles user registration and stores their login credentials and MAC address in the database. The user then provides lastfm and facebook credentials and using their APIs, their favourite artists are cached to the database, these are called 'likes'. Images of artists are retrieved from bbc.co.uk/music and lastfm. The site then offers recommendations (provided by the echonest API), along with artist images and biographical information (provided by lastfm).
The Jukebox looks after detecting Bluetooth devices and submitting a list of them to the cleversounds website. The BluetoothViewer.exe is run by a PHP script, which then scrapes the MAC address returning them in JSON.
The website checks:
- which MAC addresses, if any, are registered
- whom has had the least recent play
- what they like
and returns an appropriate track. If there are no registered users, a random track is returned to enjoy.
The track then is provided by University Radio York (more on this below). The song metadata and url are passed to the Jukebox where it then requests images and biographical information (provided by lastfm). The successful 'play' is then registered back to the website along with the MAC address associated with it and the location of the Jukebox. The play data is stored for the users home feed and map.
[edit] Screenshots
MAC address search Jukebox Now Playing Account Homepage Recommendations Hardware
[edit] DEMO
You can now demo the application live. Register at cleversounds.info and listen to the Jukebox
[edit] The Music Library
I used to be Chief Engineer at URY so have acces to their record library, providing me with acces to 10,000s of tracks on the fly - very handy)