This example is documented in detail in this blog post.
$ git clone [email protected]:Screenly/playground.git
$ cd playground/dynamic-playlists
$ heroku create
$ heroku config:set \
PLAYLIST_ID= \
TOKEN= \
OPENWEATHERMAP_API_KEY= \
LAT= \
LNG= \
TEMP_THRESHOLD= \
ABOVE_OR_BELOW=
$ git push heroku master
$ docker run -d \
--name=screenly-api-example \
-e PLAYLIST_ID= \
-e TOKEN= \
-e OPENWEATHERMAP_API_KEY= \
-e LAT= \
-e LNG= \
-e TEMP_THRESHOLD= \
-e ABOVE_OR_BELOW=
screenly/api-example-dynamic-content