Perhaps generate skin.conf programmatically ?? On Sunday, October 13, 2024 at 10:15:21 AM UTC-7 Carter Humphreys wrote:
> Sorry, I probably could have explained that better. > > I’m trying to go that second route. I’m trying to avoid the repetition of > having to define a plot in the generator for each of the defined sensors. > > So the ability to do something like: > > for sensor in user_config['sensors']: > [[[ plot_example 1]]] > [[[ plot_example 2]]] > > That way the same plots are generated for each sensor (since they all have > the same data). > > I’m guessing the way this would work is to go is just create a json file > with the data from the time series tag, and then create the plots in > JavaScript. > > Carter > > On Oct 13, 2024, at 04:18, Tom Keffer <[email protected]> wrote: > > > > I'm not exactly sure what you're asking for. > > Right now, the image generator requires that there be a quadruple stanza > ("[[[[ ... ]]]]") for each plot. For many skins, for example, the Seasons > skin, whether it actually gets used depends on whether it is mentioned > under [DisplayOptions] and whether it has any data in it. Is that what > you're looking for? > > Or, do you mean that you want to just start with some observation type, > such as "houseVoltage", and from that create a plot, perhaps using a > template? In this case, it's a good idea, but the image generator cannot do > that. > > -tk > > On Sat, Oct 12, 2024 at 8:36 PM Carter Humphreys <[email protected]> > wrote: > >> >> Fff >> Is it possible to dynamically create plots from a weewx skin config? My >> extension creates variables in a database based on sensors defined in >> weewx.config, so I want to create the same plots across all sensors. >> >> So what I was hoping to do is make it so that I can define the sensor IDs >> in the weewx.config, then be able to generate plots for those without >> having to define the same plot for each sensor. >> >> Any ideas how to do this? Or if it is even possible? >> >> Thanks! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-development" 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-development/e8364d88-db4c-4794-a62b-045a51df2852n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-development/e8364d88-db4c-4794-a62b-045a51df2852n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/b13f8a5a-3db0-4f72-9230-35b226c005d8n%40googlegroups.com.
