Something like this (NOT TESTED) should give you a table of sunrise and
sunset:

    <table>
    #for $day in $year.days
      <tr>
        <td>$day.dateTime.format("%Y-%m-%d")</td>
        <td>$almanac(almanac_time=$day.dateTime.raw,
horizon=-6).sun(use_center=1).rise</td>
        <td>$almanac(almanac_time=$day.dateTime.raw,
horizon=-6).sun(use_center=1).set</td>
      </tr>
    #end for
    </table>

-tk

On Sat, Apr 3, 2021 at 3:28 AM P C <blaise.cacr...@gmail.com> wrote:

> Hello,
> I would like to be able to generate a CSV file with the 365 or 366 days of
> any year with the dusk civilians (6 °) of the sun:
> I include "hard" the year, and so these 3 output values:
>
> date;
> $almanac(horizon=-6).sun(use_center=1).rise;
> $almanac(horizon=-6).sun(use_center=1).set
>
> I know you have to use a model of the genre "crepuscules.csv.tmpl" etc.
>
> It is of course at the level of the code that I am blocked: I do not see
> how to browse the dates.
>
> Well to you,
> Pascal
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/968a02fe-6806-4141-a0aa-594a79b332e6n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/968a02fe-6806-4141-a0aa-594a79b332e6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBNq9GKZBqvGCmuph%3DMxWTOibyRnUf6xzy3pOnhKzyF0g%40mail.gmail.com.

Reply via email to