Weathermap from console on Windows - error

Trying to generate weathermap from console under windows, but got bunch of errors. What am I doing wrong?

wethermap 0.98
PHP 5.6.40 (cli) (built: Jan 9 2019 15:12:06)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies

C:\scripts>“C:\Program Files\PHP5\php.exe” “C:\Inetpub\weathermap\weathermap” --config “C:\Inetpub\weathermap\configs\network.conf” --output “C:\Inetpub\weathermap\output\network.png” --htmloutput “C:\Inetpub\weathermap\output\network.html”
PHP Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\datasources,C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\datasources): The filename, directory name, or volume label syntax is incorrect. (code: 123) in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699

Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\datasources,C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\datasources): The filename, directory name, or volume label syntax is incorrect. (code: 123) in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699
PHP Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\datasources): failed to open dir: No such file or directory in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699

Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\datasources): failed to open dir: No such file or directory in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699
WARNING: Couldn’t open data Plugin directory (C:\Inetpub\weathermap\lib\lib\datasources). Things will probably go wrong. [WMWARN06]
PHP Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\pre,C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\pre): The filename, directory name, or volume label syntax is incorrect. (code: 123) in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699

Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\pre,C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\pre): The filename, directory name, or volume label syntax is incorrect. (code: 123) in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699
PHP Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\pre): failed to open dir: No such file or directory in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699

Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\pre): failed to open dir: No such file or directory in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699
WARNING: Couldn’t open pre Plugin directory (C:\Inetpub\weathermap\lib\lib\pre). Things will probably go wrong. [WMWARN06]
PHP Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\post,C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\post): The filename, directory name, or volume label syntax is incorrect. (code: 123) in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699

Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\post,C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\post): The filename, directory name, or volume label syntax is incorrect. (code: 123) in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699
PHP Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\post): failed to open dir: No such file or directory in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699

Warning: opendir(C:\Inetpub\weathermap\C:\Inetpub\weathermap\lib\lib\post): failed to open dir: No such file or directory in C:\Inetpub\weathermap\lib\Weathermap.class.php on line 699
WARNING: Couldn’t open post Plugin directory (C:\Inetpub\weathermap\lib\lib\post). Things will probably go wrong. [WMWARN06]
WARNING: C:\Inetpub\weathermap\configs\network.conf: ProcessTargets: LINK node04951-node04831, target: X:\RRD\ROUTERS\10.12.0.5\vlan206.rrd on config line 49 of C:\Inetpub\weathermap\configs\network.conf was not recognised as a valid TARGET [WMWARN08]

Which version of Weathermap is this? Where did you get it? If it’s actually 0.98, downloaded as a zip from the website, does 0.98a still do it?

The actual issue is that it’s looking in lib/lib/pre instead of lib/pre for plugins.

Just redownloaded from https://github.com/howardjones/network-weathermap/releases/download/version-0.98a/php-weathermap-0.98a.zip but no change.

When downloading, notify from your page weathermap should be run on PHP 4.3.x so tried to switch to this version, but than I got message:

X-Powered-By: PHP/4.4.4
Content-type: text/html


Warning: main(Console/Getopt.php) [function.main]: failed to open stream: No such file or directory in C:\Inetpub\weathermap\weathermap on line 8

Fatal error: main() [function.require]: Failed opening required 'Console/Getopt.php' (include_path='.;c:\php4\pear') in C:\Inetpub\weathermap\weathermap on line 8

Oh please don’t go antique shopping! :slight_smile: It requires at least 4.3.x not exactly 4.3.x. Version 5.6 or 7.x should be fine. I will update the website.

But have you any idea about my problem?

Not really. I’ve never seen it double up paths like this - twice the base path, and then two lib too. Does it still do that if you cd to the relevant directory first? I can only think that something might be getting confused about relative paths.

EDIT: I just install xampp 7.4 to check, and indeed, if I sit in some other directory and do

php.exe c:\xampp\htdocs\weathermap\weathermap

I get the same kind of strange path concatenation issues. If I cd into that directory first, and use

php.exe weathermap

it works. I get some other compatibility complaints from php 7.4, but no path issues.

When I run it from weathermap directory, got another error:

PHP Parse error: syntax error, unexpected ‘$cg’ (T_VARIABLE) in C:\INetpub\weathermap\weathermap on line 34

Parse error: syntax error, unexpected ‘$cg’ (T_VARIABLE) in C:\Inetpub\weathermap\weathermap on line 34

Mine doesn’t. What do the lines immediately above that look like? It sounds like maybe an unclosed string for the rrdtool path…

My fault, missing semicolon after rrdtool.exe path declaration. Its working now. Thanks for help…

BTW: Could you please extend documentation with info about running command from directory where weathermap reside?