Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code
This branch is 78 commits ahead of lukasklein:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Steamy iTunes Colors

Uses a port of Panic's iTunes album art color algorithm in JavaScript to get colors from a given Steam screenshot.

Screenshot

How to Run

cp env.sh.sample env.sh

Edit env.sh to specify the URL to where your Steam screenshots RSS feed app is hosted, as well as your Steam web API key.

npm install
bundle
rackup

Visit localhost:9292.

How to Update the List of Steam Apps

npm install
npm run-script update-steam-apps
npm run-script update-steam-apps-index

How to Deploy to Heroku

After pushing to Heroku with git push heroku master, you need to set some environment variables:

heroku config:set RSS_SERVICE_URL=http://url-to-steam-screenshot-rss.com
heroku config:set STEAM_API_KEY=your_steam_web_api_key
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git
heroku ps:scale web=1

Thanks

Thanks to lukasklein for the JavaScript to extract colors from the screenshots. Thanks to TinyColor for color parsing. Thanks to lunr.js for the Steam app search. Thanks to lunr-index-build for the tool used to build the lunr.js search index from the list of Steam apps.

You can’t perform that action at this time.