Skip to content

Instantly share code, notes, and snippets.

@jamesottaway
Last active January 7, 2018 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesottaway/ad682f4a8e48b4e445f7aa6bc3a6a4d1 to your computer and use it in GitHub Desktop.
Save jamesottaway/ad682f4a8e48b4e445f7aa6bc3a6a4d1 to your computer and use it in GitHub Desktop.
Morning
<ContentItem source="INTERNET_RADIO" location="50585"/>
#!/usr/bin/env sh
BEDROOM=192.168.0.8
curl -X POST -d @sunshower.xml "http://${BEDROOM}:8090/speaker"
sleep 27
curl -X POST -d @50585.xml "http://${BEDROOM}:8090/select"
<play_info>
<app_key>McbdKNo2FKMFouG1c8WjQEaFI34bor7G</app_key>
<url>https://gist.githubusercontent.com/jamesottaway/ad682f4a8e48b4e445f7aa6bc3a6a4d1/raw/ac72f89d8a544d2e5defe77ec2b55500da260c20/Sunshower.ogg</url>
<service>Alarm</service>
<volume>25</volume>
</play_info>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment