On Wednesday, March 22, 2017 at 5:53:21 PM UTC-4, Alec Bennett wrote: > > Would it be possible to use weeWX's plotting engine for this? >
you will probably find it easier to start from scratch. the weewx plotting classes do not really offer much that would help you with a graphic rendering of the tides. one way to do what you want is to implement a TideGenerator. this would be some fairly simple python code, say user/tidegen.py it would make a call to xtide, then use the result to draw the picture, using Pillow/PIL. parameterize the picture (e.g., width, height, colors, start time, end time, etc), and read the parameters from a [TideGenerator] stanza in skin.conf. then add TideGenerator to the list of generators in your skin, and include the resulting png in your templates. another way would be to use a TideGenerator to emit SVG or javascript vector graphics, then include those in your template. similar coding pattern to doing PNG images, but different output. m -- 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]. For more options, visit https://groups.google.com/d/optout.
