Hi Pat. I can't think of anything. The bands are put on belchertown.py and the change of theme is in a js. The color of the plotbands should be changed in the javascript when the button is pressed.
El sábado, 2 de noviembre de 2019, 22:03:55 (UTC+1), Pat escribió: > > Kike, so far so good with my testing in the 1.1 beta release. I have not > committed it to my development GitHub branch yet because I still need to > work out how to get the dark mode to show the gradients. > > On Friday, October 25, 2019 at 8:18:29 AM UTC-4, Kike .Asekas wrote: >> >> You're right. I had not taken into account the light and dark mode. You >> have to change the color, at least for the dark mode. As is the >> transition is not seen. I put the colors at the beginning of the >> run(self) method and in weewx.conf I created 2 new variables, plotDayNight >> to enable or disable it and daynight_gradient for the number of bands of >> the gradient. >> >> El miércoles, 23 de octubre de 2019, 16:05:08 (UTC+2), Pat escribió: >>> >>> Looking at it now and it looks great. Quite a bit of work to figure this >>> out. >>> >>> I may change the config to be in graphs.conf so there is granular >>> control on the plot bands- will think about this. >>> >>> Will the color bands change based on light/dark mode? Or is the selected >>> color ok for both site modes? >>> >>> >>> On Wednesday, October 23, 2019 at 8:35:11 AM UTC-4, Kike .Asekas wrote: >>>> >>>> I send you the files here. The configuration has two parameters. >>>> plotDayNight and daynight_gradient. The first is to activate or >>>> deactivate it and the second is the number of gradient bands that by >>>> default is 20 as in plotgen.py. >>>> The changes are basically from line 1237 at belchertown.js.tmpl and >>>> line 1247 from belchertown.py, although there are other lines. >>>> >>>> El martes, 22 de octubre de 2019, 14:58:12 (UTC+2), Pat escribió: >>>>> >>>>> Great thanks. You can try the GitHub but if that confuses you then you >>>>> can just attach the files here and I can try to figure it out when I have >>>>> some time. >>>>> >>>>> On Tuesday, October 22, 2019 at 8:52:37 AM UTC-4, Kike .Asekas wrote: >>>>>> >>>>>> 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/bfb276d6-a845-44b9-a726-ef90a8cbb432%40googlegroups.com.
