<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div id="yui_3_16_0_1_1416924889002_2916">Perl Folks,</div><div id="yui_3_16_0_1_1416924889002_2912"> </div><div id="yui_3_16_0_1_1416924889002_2911">>> 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.  <br>>> In order to calculate the sunset and sunrise for my is_nighttime/is_daytime scripts, I need to know the location of the host.  <br>>> Please let me know if you know of any system location standards for something that I feel should be ubiquitous.</div><div id="yui_3_16_0_1_1416924889002_2897"> </div><div id="yui_3_16_0_1_1416924889002_2898">> From: Mike Flannigan via Houston <a id="yui_3_16_0_1_1416924889002_2913" href="mailto:houston@pm.org">houston@pm.org</a><br>> As far as I know, there is no other way for a computer <br>> to know where it is located, except for it's IP address.</div><div id="yui_3_16_0_1_1416924889002_2899"> </div><div id="yui_3_16_0_1_1416924889002_2900">Well now there is!  I put a package together called Geo::Local::Server <a id="yui_3_16_0_1_1416924889002_2904" href="http://search.cpan.org/perldoc?Geo%3A%3ALocal%3A%3AServer">http://search.cpan.org/perldoc?Geo%3A%3ALocal%3A%3AServer</a>.</div><div id="yui_3_16_0_1_1416924889002_2901">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.</div><div id="yui_3_16_0_1_1416924889002_2902">Check it out.  I've added the is_nighttime/is_daytime scripts that I needed to the distro too.</div><div id="yui_3_16_0_1_1416924889002_2936"> </div><div id="yui_3_16_0_1_1416924889002_2934">Now, I guess, I should to turn this into an RFC somehow.  Anyone ever done that?</div><div id="yui_3_16_0_1_1416924889002_2943"> </div><div id="yui_3_16_0_1_1416924889002_2944" dir="ltr">Comments welcome.</div><div id="yui_3_16_0_1_1416924889002_2903">Thanks,<br>Mike</div></div></body></html>