sphere-go-state-service

command module
v0.0.0-...-d6e2118 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2016 License: MIT Imports: 15 Imported by: 0

README

sphere-go-state-service

This service takes state messages from AMQP and stores them in REDIS for use by the api-service which uses it this to populate the state information in rest calls for devices.

Docker

docker run --name ninja-mysql -e MYSQL_ROOT_PASSWORD=ninja -d mysql
docker run --name ninja-rabbit -p 5672:5672 -p 15672:15672 -d mikaelhg/docker-rabbitmq
docker run --name ninja-redis -d redis

Testing

123.$cloud.device.7511a8ecc5.channel.media.event.state

{"params":[{"media":{"id":"x-sonos-spotify:spotify%3atrack%3a3FUS56gKr9mVBmzvlnodlh?sid=12\u0026flags=32\u0026sn=1","type":"music-track","title":"Killing In The Name","duration":314000,"artists":[{"name":"Rage Against The Machine"}],"album":{"name":"Rage Against The Machine"}},"position":239000}],"jsonrpc":"2.0","time":1422501653158}

123.$cloud.device.7511a8ecc5.channel.volume.event.state

{"params":[{"level":0.19,"muted":false}],"jsonrpc":"2.0","time":1422501653233}

123.$cloud.device.7511a8ecc5.channel.media.event.state

{"params":[{"media":{"id":"x-sonos-spotify:spotify%3atrack%3a3FUS56gKr9mVBmzvlnodlh?sid=12\u0026flags=32\u0026sn=1","type":"music-track","title":"Killing In The Name","duration":314000,"artists":[{"name":"Rage Against The Machine"}],"album":{"name":"Rage Against The Machine"}},"position":239000}],"jsonrpc":"2.0","time":1422501658309}

Licensing

sphere-go-state-service is licensed under the MIT License. See LICENSE for the full license text.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL