[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

weathermap --image-uri option is being ignored



This is weathermap 0.96a:

$ weathermap configs/sttl.conf --output pops/sttl.png --htmloutput
pops/sttl.html --image-uri http://IGNORED

$ grep IGNORED pops/sttl.html

(It should be there but it's not.)

What's the img src set to instead?

$ grep src pops/sttl.html | perl -pe 's/.* ( src=\S+ ) .* >/$1.../x'
src="pops/sttl.png"...

A nice guess, but what happens when pops/sttl.html is already in pops/ ?

Answer: the base href is set to pops/ And then the img src is appended, and
the web browser starts looking for http://hostname/path/to/the/html/file/*
pops/pops/*sttl.png. The pops/ directory is doubled; not good.

Copyright 1994-2005, by Howard Jones. howie@thingy.com