title: How to programmatically launch a chromecast app from command line
body: <p>I want to launch a Chromecast app but NOT using the chrome extension or iOS or Android. Doing this from command line.</p>
  
  <p>I noticed that you can send a POST to your chromecast, and it will launch an app. For example if I do</p>
  
  <pre><code>curl -H “Content-Type: application/json” http://CHROMECAST_IP:8008/apps/YouTube -X POST -d ‘v=oHg5SJYRHA0′
  </code></pre>
  
  <p>Then it will start up youtube.</p>
  
  <p>But for some reason I can't do this with custom apps (in dev mode). I thought I'd be able to send a POST to <code>http://CHROMECAST_IP:8008/apps/MY_REGISTERED_APP_ID</code>, but no luck. I just get a 404 response. Hmmm...</p>
  
  <p>My app is just a simple webpage (it is not streamed media). I want to run a little headless server that starts my chromecast app everyday via a CRON task.</p>
  
  <p>Any help is greatly appreciated! Thanks :)</p>