#!/usr/bin/perl use strict; use vars qw ($file $DELAY); ########## CONFIG $file = "lcd4linux"; # .png is appended $DELAY = 0; # delay in seconds # if delay is zero, file is sent when modified. ################# use CGI qw/:push -nph/; $| = 1; my ($mtime, $nmtime, $size, $nsize); (undef, undef, undef, undef, undef, undef, undef, $size, undef, $mtime) = stat "$file.png"; print multipart_init(-boundary=>'----------------here we go!'); while (1) { print multipart_start(-type=>'image/png'); undef $/; open(IN, "$file.png") or die("Can't read '$file.png'"); $_ = ; print $_; close(IN); print multipart_end; if ($DELAY) { sleep $DELAY; } else { W: while (1) { # sleep(1); (undef, undef, undef, undef, undef, undef, undef, $nsize, undef, $nmtime) = stat "$file.png"; if($mtime != $nmtime || $size != $nsize) { $mtime = $nmtime; $size = $nsize; last W; } } } } /table>
aboutsummaryrefslogtreecommitdiffstats
path: root/config.sub (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2011-07-27driver for Newhaven's NHD‐0420D3Z‐FL‐GBW. 4x20 LCD by Rusty Clarksonmichael9-4/+573
2011-07-27indentation :-(michael1-3/+3
2011-07-27magic bold escape char by Andrew Thompsonmichael1-1/+9
2011-07-27picoLCDGraphics needs keypad linkedmichael2-0/+2
2011-07-27various compiler warnings fixedmichael13-60/+39
2011-07-27Autoconf 2.68michael3-1455/+2751
2011-07-27run smoketest on all of my 8 coresmichael1-2/+2
2011-07-27indentationmichael4-330/+320
2011-07-27patch to replace outdate library libmpd with recent library libmpdclient from...michael2-240/+427
2011-07-27lcd4linux-wireless.patch from Hans de Goedemichael1-1/+1
2011-07-27st2205-width-height-swap.patch from Hans de Goedemichael1-2/+2
2011-07-27hwmon patch from Hans de Goedemichael1-0/+14
2011-07-27patch to support SureElectronicsDE-LD023 from Matt Joicemichael1-3/+16
2011-05-06Fixed keypad widget in GLCD2USBharbaum1-0/+7
2011-02-12timer.c: fixed detection of positive clock skew (and some typos)mzuther4-10/+10
2011-01-23timer.c: fixed clock skew detectionmzuther1-26/+46
2011-01-23timer.c: skip intermediate timer intervalsmzuther2-16/+46
2011-01-05fix for a bug introduced in the DE-LD021 drivermichael1-3/+3
2011-01-04indentationmichael2-3/+3
2011-01-04support for Sure Electronics DE-LD021 by Natanael Olaizmichael1-10/+8
2011-01-02driver for EFN LED modules by Tilman Glötznermichael9-21/+469
2010-11-28commented, corrected and beautified both timer and timer group codemzuther11-197/+511
2010-11-27finished commenting the timer codemzuther2-46/+138
2010-11-20started commenting the timer codemzuther5-52/+170
2010-11-19Added brightness support for GLCD2USBharbaum5-28/+8014