An example of how to use Screenly Pro's API for dynamic content.
Branch: master
Clone or download
Latest commit afd6116 Dec 13, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
LICENSE Initial commit Nov 1, 2017
Procfile
README.md Readme tweak Dec 13, 2017
app.json Adds formation. Dec 12, 2017
app.py First! Dec 12, 2017
requirements.txt First! Dec 12, 2017

README.md

Dynamic content example using Screenly Pro's API

Heroku

Automated approach

Deploy

Manual approach

Clone the repo

$ git clone git@github.com:Screenly/api-example-dynamic-content.git
$ cd api-example-dynamic-content

Configure and deploy to Heroku

$ heroku create
$ heroku config:set \
    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 PLAYLIST_ID= \
    -e TOKEN= \
    -e DARKSKY_API_KEY= \
    -e LAT= \
    -e LNG= \
    -e TEMP_THRESHOLD= \
    -e ABOVE_OR_BELOW=
    screenly/api-example-dynamic-content