Skip to content
No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
src
.gitignore
Dockerfile
LICENSE.txt
README.md
build.sbt

README.md

ChromeCast Scala Example

Create S3 Bucket

$ sbt
sbt> awscfCreateBucket <Cloudformation Stack Name> <S3 Bucket Name>

AWS Pollyで作った音声ファイルを Google Home で再生する

Docker

raspberrypi $ sudo -s
raspberrypi # apt remove docker docker-engine docker.io -y
raspberrypi # curl -sSL https://get.docker.com | sh

Build

mac $ sbt clean docker:stage
mac $ docker build -t scala-cast:0.0.1-SNAPSHOT ./
mac $ cd target
mac $ tar cf scala-cast.tar docker
mac $ scp scala-cast.tar USER@RASPBERRYPI:./
mac $ ssh USER@RASPBERRYPI

raspberrypi $ mkdir scala-cast
raspberrypi $ cd scala-cast
raspberrypi $ tar xf ../scala-cast.tar
raspberrypi $ cd docker/stage
raspberrypi $ docker build -t scala-cast:0.0.1-SNAPSHOT ./

Run

raspberrypi $ avahi-browse -r _googlecast._tcp -t
raspberrypi $ export ADDRESS=
raspberrypi $ export AWS_ACCESS_KEY_ID=
raspberrypi $ export AWS_SECRET_ACCESS_KEY=
raspberrypi $ export BUCKET_NAME=
raspberrypi $ docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e BUCKET_NAME -e ADDRESS -it scala-cast:0.0.1-SNAPSHOT --rm
You can’t perform that action at this time.