<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_1416714219375_17311" dir="ltr">Perl Mongers,</div><div id="yui_3_16_0_1_1416714219375_17312"> </div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17286" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">> or something fancier if you have a daytime/nighttime script</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17285" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">> 0-59/10 * * * * is_nighttime && power<span>-</span>outlet iBoot ON 
 host mylamp</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17284" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">> 5-59/10 * * * * is_daytime   && power<span>-</span>outlet iBoot OFF  host mylamp</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17313" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;"> </div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17293" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">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.</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17294" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr"> </div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17295" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">For now, I'm planning to add a file to /etc/profiles.d to add this environment variable for the users on my server.</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17296" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr"> </div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17304" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">my ($lon, $lat, $hae) = split(/\s/, $ENV{"LOCATION_COORDINATES_WGS84_LON_LAT_HAE"}||"");</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17297" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr"> </div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17298" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">It might be nice to populate it from data stored in a /etc/local.coordinates file or something.  From my perspective, knowing your location is as important as knowing your time zone (e.g. /etc/localtime)</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17305" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr"> </div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17320" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">/etc/local.coordinates</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17361" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">[main]</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17321" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">version=1</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17322" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">crs=wgs84</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17386" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">latitude=38.896783</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17362" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">longitude=-77.036509</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17354" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">hae=30</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17388" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">address=1600 Pennsylvania Avenue NW, Washington, DC</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17363" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr"> </div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17374" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">Any comments?</div><div class="y_msg_container" id="yui_3_16_0_1_1416714219375_17375" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">Thanks,</div><div class="y_msg_container" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;" dir="ltr">Mike</div>  </div></body></html>