-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
44 lines (32 loc) · 1.62 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
CRON
*/1 * * * * /path/to/getblockdata.py > /path/to/blockdata
*/1 * * * * /usr/bin/lynx -source http://domain.com/bitcoin/cron.php
DATA FILES
The following files may be used for writing by the web server and require manually providing write permissions:
graphs/
bcbuy.php, bcsell.php
These scripts require cron.getmarketdata.php to function properly
cron.php
Make sure to comment includes that do not exist.
Uses PHP exec() function to execute a bash script.
cron.getmarketdata.php
Make sure can use PHP exec() otherwise rewrite code to accomodate for this.
Make sure web server has write access to files open in this script and rename paths accordingly if desired.
This file provides the basis of functionality for all other market data related scripts.
cron.statistix.php
Make sure web server has write access to files opened in this script.
This file produces a data file used for charting flot/gnuplot graphs
getblockdata.sample
This is a bash script. Rename it to "getblockdata" so that the cron.php file can parse it.
index.php
Remove the link for donate or make your own donate page.
Remove the flot and gnuplot links as they are not useful yet until I have included them into this repository.
jquery
Download from http://jquery.com
rpc.php
jsonRPCClient.php: Download from http://jsonrpcphp.org/?page=download&lang=en
Rename rpcdefault.php to rpc.php and fill in user and pass.
statistix.php
For graphs to display make sure cron.statistix.php parses without errors.
date_default_timezone_set("America/Chicago");
Make sure to change instances of these if necessary