Code to retrieve sunrise/sundown times

Job ID: 37079067

Budget: $750 – $1,500 USD

I am looking for a programmer to write code to retrieve the sunrise/sundown times for a specified location. This code/program will run on a Red Lion DA70 device to control exterior lights. Red Lion describes their software language as "C like". The latitude and longitude will be provided by an attached GPS on a cellular modem.

The code should be easy to use and modify. It should also be able to accurately and quickly generate and output the sunrise/sundown times.

Would like to possibly use one of these sources:
https://sunrisesunset.io/api/
https://sunrise-sunset.org/api
Code will read latitude and longitude from specified tags. Code will then retrieve times from source and write to specified tags. If there is a failure or null value returned, code should change another specified tag to "1" and set specified tags to default times of 0800 and 2000.

If you have the expertise to complete this project to a high standard, please reach out and provide any past works and references. Thank you for your time.