What I did was adapt the renderDayNight function of genplot.py to get the timestamps of dawn and dusk and with those timestamps write plotBands (HighCharts function) in xAxis in the json. The code already has the possibility to activate them or not. It takes about a second on the daily chart in a rpi 2b + to paint them. I am watching the github desktop program so I can send it to you. I guess you will have to make some changes, I don't dominate much python or js.
El sábado, 19 de octubre de 2019, 22:26:17 (UTC+2), Pat escribió: > > Hi Kike, this looks very interesting! Perhaps I can add it as a skin > option to enable/disable it. How did you do it? > > On Saturday, October 19, 2019 at 4:07:41 PM UTC-4, Kike .Asekas wrote: >> >> Hi, Pat. I wanted to make a contribution to such an impressive skin, but >> I don't know very well how to do it. If you are interested tell me how. >> They are the transitions between night and day in the graphics. >> >> [image: Screenshot_2019-10-19 Areal, Padron Weather Conditions(1).png] >> >> [image: Screenshot_2019-10-19 Areal, Padron Weather Conditions(2).png] >> >> [image: Screenshot_2019-10-19 Areal, Padron Weather Conditions.png] >> >> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c953c67e-9052-4c68-b62b-ce525cd7b02b%40googlegroups.com.
