[pm-h] Power::Outlet

Michael R. Davis mrdvt92 at yahoo.com
Tue Nov 25 06:28:26 PST 2014


Perl Folks, >> I'm finally putting plan to code and I ran into an issue that there does not appear to be a standard for the location of a system.  
>> In order to calculate the sunset and sunrise for my is_nighttime/is_daytime scripts, I need to know the location of the host.  
>> Please let me know if you know of any system location standards for something that I feel should be ubiquitous. > From: Mike Flannigan via Houston houston at pm.org
> As far as I know, there is no other way for a computer 
> to know where it is located, except for it's IP address. Well now there is!  I put a package together called Geo::Local::Server http://search.cpan.org/perldoc?Geo%3A%3ALocal%3A%3AServer.It implements two different standards to configure the location of the local server.  One is via an environment variable and one is via the file in /etc/local.coordinates.  It should support Windows platforms too.Check it out.  I've added the is_nighttime/is_daytime scripts that I needed to the distro too. Now, I guess, I should to turn this into an RFC somehow.  Anyone ever done that? Comments welcome.Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/houston/attachments/20141125/21a192df/attachment-0001.html>


More information about the Houston mailing list