Use Python get Sunrise/Sunset time

opkg update
opkg install python-openssl #adds ssl support to python
opkg install distribute #it contains the easy_install command line tool (this can take some time)
easy_install pip #installs pip  (this can take some time)
pip install astral
nano /mnt/sda1/sunrise.py
import datetime
from astral import Astral
city_name = 'New York'
a = Astral()
a.solar_depression = 'civil'
city = a[city_name]
print('Information for %s/%s\n' % (city_name, city.region))
timezone = city.timezone
print('Timezone: %s' % timezone)
print('Latitude: %.02f; Longitude: %.02f\n' % \
    (city.latitude, city.longitude))
sun = city.sun(date=datetime.date.today(), local=True)
print('Dawn:    %s' % str(sun['dawn']))
print('Sunrise: %s' % str(sun['sunrise']))
print('Noon:    %s' % str(sun['noon']))
print('Sunset:  %s' % str(sun['sunset']))
print('Dusk:    %s' % str(sun['dusk']))
python sunrise.py
Information for New York/USA

Timezone: US/Eastern
Latitude: 40.72; Longitude: -74.00

Dawn:    2015-04-04 06:06:27-04:00
Sunrise: 2015-04-04 06:34:13-04:00
Noon:    2015-04-04 12:58:59-04:00
Sunset:  2015-04-04 19:23:37-04:00
Dusk:    2015-04-04 19:51:23-04:00

http://pythonhosted.org/astral/