Anytime Help Center

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support
  • Guest
  • Log In
English (US)
US English (US)
DE German
CN Chinese
MX Spanish (Mexico)
Chinese (Simplified)
  • AKG
    Microphones Wireless Integrated Systems Automatic Mixers Headphones Discontinued Products (AKG) General AKG Inquiries Certifications (AKG)
  • AMX
    Networked A/V Distribution (AVoIP) Traditional A/V Distribution Video Signal Processing Architectural Connectivity User Interfaces Control Processing Power (AMX) Programming (AMX) Software (AMX) Discontinued Products (AMX) General AMX Inquiries Certifications (AMX)
  • BSS
    Soundweb™ Omni Soundweb™ London Soundweb™ Contrio™ Software (BSS) Discontinued Products (BSS) General BSS Inquiries Certifications (BSS)
  • Crown
    CDi DriveCore Series CDi Series Commercial Series ComTech Series DCi DriveCore Series I-Tech HD Series XLC series XLi Series XLS DriveCore 2 Series XTi 2 Series Discontinued Products (Crown) Software (Crown) General Crown Inquiries Certifications (Crown)
  • dbx
    CX Series 500 Series DriveRack Personal Monitor Control ZonePRO Zone Controllers FeedBack Suppression Microphone Preamps Dynamics Processors Crossovers Equalizers Software (dbx) Discontinued Products (dbx) General dbx Inquiries Certifications (dbx)
  • Flux::
    Immersive Processing Analysis Subscriptions General FLUX: Inquiries
  • JBL
    Cinema Sound Installed Live Portable Tour Sound Recording & Broadcast Software (JBL) Discontinued Products (JBL) Video Manual Series (JBL) General JBL Inquiries Certifications (JBL)
  • Lexicon
    Plugins Effects Processors Cinema Discontinued Products (Lexicon) Video Manual Series (Lexicon) General Lexicon Inquiries Certifications (Lexicon)
  • Martin
    Atomic ELP ERA Exterior MAC P3 VC VDO Tools Discontinued Products (Martin) General Martin Inquiries Certifications (Martin)
  • Soundcraft
    Digital Analog Connected Analog Only Discontinued Products (Soundcraft) Video Manual Series (Soundcraft) General Soundcraft Inquiries Certifications (Soundcraft)
  • General HARMAN Inquiries
    Dante
+ More
  • Home
  • AMX
  • Programming (AMX)
  • Programming

267-SunriseSunset-axi Application Note

Technical Support Guide

Written by Will Fraser

Updated at February 10th, 2026

Table of Contents

Brand: Models: Overview: Usage: Events Triggered: Example Code : Longitude and Latitude  NOTE:

Brand:

  • AMX

Models:

  • Netlinx

Overview:

The application note applies to:

ASTRO_CLOCK Astronomical clock function and Netlinx Sunrise and Sunset Times.

This include file wraps the Netlinx ASTRO_CLOCK function with a virtual device to provide pushes and channel status for sunrise and sunset times. It also implements Daylight Savings Time, as the astronomical clock function is tied to both time and time zone information. The DLS portion of the code can be turned off for parts of the country that do not subscribe to DLS.


Usage:

Include SunriseSunset.axi into your program. 
Create a virtual device for the Sunrise Sunset functions. 
Call Sunrise Sunset and pass in your Virtual Device, Longitude, Latitude, Time zone, and Daylight Saving Preference.


Events Triggered:

Channel 1, on the virtual device, will provide a push and ON channel status from sunrise to sunset time. 
Channel 2, on the virtual device, will provide a push and ON channel status from sunset to sunrise time. 
Channel 3, on the virtual device, will provide a push and ON channel status when the time zone changes from standard to daylight savings time. 
Channel 3, on the virtual device, will provide a release and OFF channel status when the time zone changes from daylight savings time to standard.


Example Code :

(**********************************************************)
(* DEVICE NUMBER DEFINITIONS GO BELOW *)
(**********************************************************)
DEFINE_DEVICE  dvVIRT = 33001:1:0
(**********************************************************)  (* INCLUDE FILE GOES BELOW *)
(**********************************************************)
#INCLUDE 'SunriseSunset.axi'
(**********************************************************)
(* THE ACTUAL PROGRAM GOES BELOW *)
(**********************************************************)
DEFINE_PROGRAM
CALL 'SunriseSunset' (dvVIRT,-96.8,32.8,-6,1)
PUSH[dvVIRT,1]
SEND_STRING 0,"DATE,' SUNRISE=',TIME"
PUSH[dvVIRT,2]
SEND_STRING 0,"DATE,' SUNSET=',TIME"  PUSH[dvVIRT,3]
SEND_STRING 0,"DATE,' DLS ACTIVE'"
RELEASE[dvVIRT,3]
SEND_STRING 0,"DATE,' DLS INACTIVE'"
(**********************************************************)
(* END OF PROGRAM *)
(* DO NOT PUT ANY CODE BELOW THIS COMMENT *)
(**********************************************************)

Longitude and Latitude 

Longitude and latitude information can be found on many websites. You can try to search your favorite search engine site for a calculator. Below is a quick list of US cities and their coordinates: 

Name  Latitude  Longitude
Salt Lake City, UT  40.8  -111.9
New York, NY  40.7  -73.9
Miami, FL  25.8  -80.2
Fort Lauderdale, FL  26.1  -80.2
Buffalo, NY  42.9  -78.8
Spanish Fork, UT  40.1  -111.7
Atlanta, GA  33.8  -84.4
Austin, TX  30.3  -97.7
Baltimore, MD  39.3  -76.6
Boston, MA  42.3  -71.1
Chicago, IL  41.9  -87.7
Cleveland, OH  41.5  -81.7
Dallas, TX  32.8  -96.8
Denver, CO  39.7  -105
Houston, TX  29.8  -95.4
Kansas City, MO  39  -94.5
Las Vegas, NV  36.2  -115.2
Los Angeles, CA  34.1  -118.4
Nashville, TN  36.2  -86.8
New Orleans, LA  30  -90.1
Orlando, FL  28.5  -81.4
Philadelphia, PA  40  -75.2
Phoenix, AZ  33.5  -112.1
Pittsburgh, PA  40.4  -80
Portland, OR  45.5  -122.7
San Antonio, TX  29.4  -98.5
San Diego, CA  32.8  -117.1
San Francisco, CA  37.8  -122.4
San Jose, CA  37.3  -121.9
Seattle, WA  47.6  -122.3
St. Louis, MO  38.6  -90.3
Washington, D.C.  38.9  -77

NOTE:

If you need to implement sunrise/sunset a lot and are a user of AOL's Instant Messenger service, try adding the user zipcodebot to your buddy list. If you send this "user" a zip code, it will respond with the latitude/longitude.

 

 

Related Videos

framework blueprint

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Brand: Models: Overview: Usage: Events Triggered: Example Code : Longitude and Latitude  NOTE:

Related Articles

  • Extending USB Connectivity for the Acendo Vibe
  • Vi and Si Dante Card Update - AES67

Related Articles

  • Extending USB Connectivity for the Acendo Vibe
  • Vi and Si Dante Card Update - AES67
Copyright © HARMAN Professional. All rights reserved. Privacy Policy | Terms of Use
Expand