OutOfBrain / the-button

History graph of /r/thebutton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Button Graph

History and live view of the minimum time left on /r/thebutton

View at http://tcial.org/the-button

Running

Requires PHP >= 5.4

Get the code

git clone https://github.com/OutOfBrain/the-button.git

Install Composer and dependencies https://getcomposer.org/download/

php -r "readfile('https://getcomposer.org/installer');" | php
php composer.phar install

Start the Daemon. Use nohup and & to start in the background and not tied to the current ssh session or a user.

nohup php ButtonDaemon.php &

Start the Watcher. In the same way as the daemon. The watcher restarts the Daemon in case it can't find it and reports to a given mail if set in watcher_notify_mail.txt

nohup php Watcher.php &

The Daemon generates the button.csv into the public/ folder. Make that folder available to your webserver with:

ln -s /home/<youruser>/the-button/public/ /var/www/the-button

About

History graph of /r/thebutton


Languages

Language:PHP 44.8%Language:JavaScript 40.0%Language:HTML 11.8%Language:CSS 3.2%Language:ApacheConf 0.2%