diff options
author | Joachim Tingvold <joachim@tingvold.com> | 2015-04-02 23:37:38 +0200 |
---|---|---|
committer | root <root@einstein.tg15.gathering.org> | 2015-04-02 23:37:38 +0200 |
commit | 247524e087a9d44eba3cca6f5f2e50764027e45c (patch) | |
tree | 688b6df347c74391917ba3f0eaccc39bed9b7e7e /web | |
parent | a4fe4862c69d22ec8a2068bfc1f93a9d3d08d92e (diff) |
More changes. Lawl.
Diffstat (limited to 'web')
-rwxr-xr-x | web/nms-public.gathering.org/weathermap.pl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/web/nms-public.gathering.org/weathermap.pl b/web/nms-public.gathering.org/weathermap.pl new file mode 100755 index 0000000..41aca39 --- /dev/null +++ b/web/nms-public.gathering.org/weathermap.pl @@ -0,0 +1,18 @@ +#! /usr/bin/perl +use strict; +use warnings; +use CGI; +use File::Copy; + +my $cgi = CGI->new; +my $img_filename = "/root/tgmanage/web/nms-public.gathering.org/weathermap.png"; + +# this must be done for windows +binmode STDOUT; + +# flush headers +$|=1; + +# print the image +print $cgi->header(-type=>'image/png; charset=utf-8', -refresh=>'10; weathermap.pl'); +copy "$img_filename", \*STDOUT; |