weathermap |
Subversion Repositories: |
Rev 11 | Rev 13 | |
---|---|---|
Line 1... | Line 1... | |
#!/usr/bin/php |
#!/usr/local/bin/php | |
<?php |
<?php | |
|
| |
// PHP Weathermap 0.91 |
// PHP Weathermap 0.92 | |
// Copyright Howard Jones, 2005-2007 howie@thingy.com |
// Copyright Howard Jones, 2005-2007 howie@thingy.com | |
// http://www.network-weathermap.com/ |
// http://www.network-weathermap.com/ | |
// Released under the GNU Public License |
// Released under the GNU Public License | |
require_once 'Console/Getopt.php'; |
require_once 'Console/Getopt.php'; | |
|
| |
Line 25... | Line 25... | |
$dumpconfig=''; |
$dumpconfig=''; | |
$defines=array(); |
$defines=array(); | |
|
| |
// ************************************************************************************** |
// ************************************************************************************** | |
// THIS IS THE ONE LINE IN HERE YOU MIGHT HAVE TO CHANGE! |
// THIS IS THE ONE LINE IN HERE YOU MIGHT HAVE TO CHANGE! | |
$map->rrdtool="/usr/bin/rrdtool"; |
$map->rrdtool="/usr/local/rrdtool-1.2.15/bin/rrdtool"; | |
// (on Windows, use / instead of \ in pathnames - c:/rrdtool/bin/rrdtool.exe for example) |
// (on Windows, use / instead of \ in pathnames - c:/rrdtool/bin/rrdtool.exe for example) | |
// ************************************************************************************** |
// ************************************************************************************** | |
|
| |
// initialize object |
// initialize object | |
$cg=new Console_Getopt(); |
$cg=new Console_Getopt(); | |
Line 136... | Line 136... | |
|
| |
print " --image-uri {uri} - URI to prefix <img> tags in HTML.\n"; |
print " --image-uri {uri} - URI to prefix <img> tags in HTML.\n"; | |
print " --bulge - Enable link-bulging mode. See manual.\n\n"; |
print " --bulge - Enable link-bulging mode. See manual.\n\n"; | |
|
| |
print " --no-data - skip the data-reading process (just a 'grey' map)\n"; |
print " --no-data - skip the data-reading process (just a 'grey' map)\n"; | |
print " --random-data - as above, but use random data\n"; |
print " --randomdata - as above, but use random data\n"; | |
print " --debug - produce (LOTS) of debugging information during run\n"; |
print " --debug - produce (LOTS) of debugging information during run\n"; | |
print " --dump-after - dump all internal PHP structures (HUGE)\n"; |
print " --dump-after - dump all internal PHP structures (HUGE)\n"; | |
print " --dumpconfig {filename} - filename to write a new config to (for testing)\n\n"; |
print " --dumpconfig {filename} - filename to write a new config to (for testing)\n\n"; | |
|
| |
print " --help - show this help\n"; |
print " --help - show this help\n"; |