Skip to content

Latest commit

 

History

History
executable file
·
48 lines (38 loc) · 918 Bytes

README.md

File metadata and controls

executable file
·
48 lines (38 loc) · 918 Bytes

Dynamic content example using Screenly Pro's API

Heroku

Automated approach

Deploy

Manual approach

Clone the repo

$ git clone git@github.com:anaglyph/screenly-dynamic-content.git
$ cd screenly-dynamic-content

Configure and deploy to Heroku

$ heroku create
$ heroku config:set \
    RAIN_PLAYLIST_ID= \
    COLD_PLAYLIST_ID= \
    TOKEN= \
    DARKSKY_API_KEY= \
    LAT= \
    LNG= \
    TEMP_THRESHOLD= \
    ABOVE_OR_BELOW=
$ git push heroku master

Docker

$ docker run -d \
    --name=screenly-api-example \
    -e RAIN_PLAYLIST_ID= \
    -e COLD_PLAYLIST_ID= \
    -e TOKEN= \
    -e DARKSKY_API_KEY= \
    -e LAT= \
    -e LNG= \
    -e TEMP_THRESHOLD= \
    -e ABOVE_OR_BELOW=
    anaglyph/screenly-dynamic-content