It doesn't work on my Win7 machine.
It gives:

Error: None of the following supported coordinate standards are configured.

    - Environment variable COORDINATES_WGS84_LON_LAT_HAE
    - Filesystem /etc/local.coordiantes file

  at C:/Perl64/site/lib/Geo/Local/Server.pm line 98.


Let me know how well it works on you box.


Mike


On 11/25/2014 8:28 AM, Michael R. Davis wrote:
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 [email protected] <mailto:[email protected]>
> 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

_______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/

Reply via email to