All almanac calculations are done within weewx. If you want to add something
like azimuth and elevation of the sun, you would have two choices:
1. Do the calculations within weewx, then offer the results to the templates
by expanding the search list. Take a look at module weeutil.Sun. It offers
lots of different solar calculations, including azimuth and elevation (see
function sunRADec(), for example). To make the results available from within
the templates, you have to add it to the search list. There are instructions
on how to do this in the document Customizing Weewx, under the section
"Extending an existing generator."
2. If you prefer to do the calculations in javascript, then you will need
the station latitude and longitude. These are available as tags $almanac.lat
and $almanac.lon, respectively, from within the templates. Time is available
as $current.dateTime, expressed in unix epoch time.
I'll put it on my list of "Future Extensions" to add more of these kinds of
astronomical calculations. But, for now, either of these approaches would
work.
Cheers,
-tk
--
You received this message because you are subscribed to the Google Groups
"Weewx Weather Station Discussion" group.
To post to this group, send email to weewx...@googlegroups.com.
To unsubscribe from this group, send email to
weewx-user+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/weewx-user?hl=en.