cvanderschuere / musicbox Goto Github PK
View Code? Open in Web Editor NEWMagic in a box
Magic in a box
Use Amazon S3 as the backend for user library track: instead of storing spotify URL, store S3 URL and deliver when requested
When the server shutdowns, we should have a deferred method that will set the state in the database of all music boxes to disconnected
On my network, had to find IP address to ssh to box.
Server should hold upcoming song queue so when a device reconnects it will pick up where it left off.
Add webhosting to server package: should work on either localhost or aws
We are going to want to let users set playlists or streams for a device. So this will need to be saved in the device details on the server
The playing flag is currently (0 = offline, 1 = paused, 2 = playing), this should be both a playing and an offline boolean flag to improve code readability.
The songs added to the queue recommendations aren't being passed to the website.
In my opinion the different states should be:
-1 = disconnected
0 = paused
1 = playing
as the numbers represent what is going on better.
given s lat/lng, find the musicbox IDs/useranames
Potentially filter on fb friends list
Purchase and setup wifi dongle
Publish message to signify endOfTrack
Could be useful for making device functional in both local and hosted scenarios
http://aws.typepad.com/aws/2013/09/dynamodb-local-for-desktop-development.html
Make it handle different source types better
fully contained
2014/02/09 19:16:00 http: panic serving 172.31.15.196:60012: runtime error: invalid memory address or nil pointer dereference
goroutine 14 [running]:
net/http.func·007()
/usr/local/go/src/pkg/net/http/server.go:1022 +0xac
main.recommendSongs(0xc2001349c0, 0xc200332f60, 0x26, 0xc20035c2f0, 0x1, ...)
/home/ubuntu/gocode/src/MusicBox/Server/rpc.go:112 +0x3d1
postmaster.(_Server).handleCall(0xc2000d1720, 0xc2001349c0, 0xc200305380, 0xe, 0xc200332f60, ...)
/home/ubuntu/gocode/src/postmaster/server.go:313 +0x62f
postmaster.(_Server).recieveOnConn(0xc2000d1720, 0xc2001349c0, 0xc2000c8bd0)
/home/ubuntu/gocode/src/postmaster/server.go:162 +0x620
postmaster.(_Server).HandleWebsocket(0xc2000d1720, 0xc2000c8bd0)
/home/ubuntu/gocode/src/postmaster/server.go:86 +0x1cd
postmaster.func·001(0xc2000c8bd0)
/home/ubuntu/gocode/src/postmaster/postmaster.go:14 +0x36
code.google.com/p/go.net/websocket.Server.serveWebSocket(0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/gocode/src/code.google.com/p/go.net/websocket/server.go:98 +0x230
code.google.com/p/go.net/websocket.Server.ServeHTTP(0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/gocode/src/code.google.com/p/go.net/websocket/server.go:78 +0x61
code.google.com/p/go.net/websocket.(_Server).ServeHTTP(0xc2000d1780, 0xc200101480, 0xc200133a10, 0xc20013a1a0)
/home/ubuntu/gocode/src/code.google.com/p/go.net/websocket/client.go:0 +0xb1
net/http.(_ServeMux).ServeHTTP(0xc2000b6510, 0xc200101480, 0xc200133a10, 0xc20013a1a0)
/usr/local/go/src/pkg/net/http/server.go:1416 +0x11d
net/http.serverHandler.ServeHTTP(0xc2000b3960, 0xc200101480, 0xc200133a10, 0xc20013a1a0)
/usr/local/go/src/pkg/net/http/server.go:1517 +0x16c
net/http.(_conn).serve(0xc2000c8b40)
/usr/local/go/src/pkg/net/http/server.go:1096 +0x765
created by net/http.(*Server).Serve
/usr/local/go/src/pkg/net/http/server.go:1564 +0x266
Seperate out lat,lng,city,.... in musicBox object.
Seems to be a race condition as behavior on device is different than in simulator. Not proven
Track types with inheritance
Make sure unable to affect state while offline
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.