A Simple Script for Recording CGMiner Stats into an SQL Database
-
Add SQL and Miner details to the functions.inc.php file.
-
Create the SQL table using the create-table.sql script.
-
Copy the update-db.php and functions.inc.php files to your raspberry pi and schedule it to run the update-db script as a cron job at your required interval.
-
Upload the index.php, style.css and functons.inc.php files onto your webserver to view the Database records.