Skip to content

zymurgybc/sphere-go-state-service

 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 88.4%
  • Makefile 11.6%