[weewx-user] Re: Plotting ocean tide data?

2017-06-16 Thread Dan'l B
On Wednesday, March 22, 2017 at 5:53:21 PM UTC-4, Alec Bennett wrote: > > I'd like to add a chart showing current ocean tides to our weather page, > as well as our current position in the tide. > > I can easily get the day's tides from NOAA or the program xTide, but does > anyone have any idea h

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-30 Thread Dan'l B
On Friday, March 24, 2017 at 1:00:38 PM UTC-4, Alec Bennett wrote: > > Just wanted to correct this, which after some research I think is wrong: > > > Doing some research, it looks like the key to plotting curves in PIL is > Bezier Curves. > > Ater some trial and error I don't think those curves ar

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-24 Thread Alec Bennett
Just wanted to correct this, which after some research I think is wrong: > Doing some research, it looks like the key to plotting curves in PIL is Bezier Curves. Ater some trial and error I don't think those curves are appropriate for plotting exact numbers. -- You received this message bec

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread Alec Bennett
Doing some research, it looks like the key to plotting curves in PIL is Bezier Curves. There's lots of examples out there, this one being very good: http://stackoverflow.com/questions/246525/how-can-i-draw-a-bezier-curve-using-pythons-pil I just whipped up a quick dummy tide chart using it: http

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread Alec Bennett
> > tide -l boston -f p -m g -o /home/weewx/test.png D'oh! Indeed that works. But oddly when changing my xTide location to "boston" (lowercase) in my config file, I still don't get any data in public_html/forecast/tides.html. The contents still says "Tide forecast is not available." I'm not part

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread mwall
On Wednesday, March 22, 2017 at 7:54:31 PM UTC-4, Alec Bennett wrote: > > It now says it's working, but I don't see any files for xTide in my > public_html/forecast folder. The log says: > > Mar 22 23:43:12 tide2 wee_reports[7136]: reportengine: copied 14 files to >> /home/weewx/public_html >> Ma

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread mwall
On Wednesday, March 22, 2017 at 8:06:38 PM UTC-4, Alec Bennett wrote: > > Also this gives me an error: > > # emit image as PNG >> cmd = "/usr/bin/tide -l LOCATION -f p -o OUTPUTFILE.png" > > > Running that line directly: > > *tide -l "Boston" -f p -o /home/weewx/test.png* > you probably want thi

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread mwall
On Wednesday, March 22, 2017 at 7:54:31 PM UTC-4, Alec Bennett wrote: > > Alas, I do mind that, and would like more control over the generated > image. Do you know if the Forecast extension gives more control, or is it > just using xTide's default output? > the forecast extension only shows tide

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread Alec Bennett
Also this gives me an error: # emit image as PNG > cmd = "/usr/bin/tide -l LOCATION -f p -o OUTPUTFILE.png" Running that line directly: *tide -l "Boston" -f p -o /home/weewx/test.png* I get: > *tide -l "Boston" -f p -o /home/weewx/test.png*Indexing > /usr/local/bin/harmonics/harmonics-2004-0

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread Alec Bennett
> > > looks like you're missing the skin= directive in a section in > [StdReport] > Thanks for that, adding "skin = Standard" to the [StdReport] config section fixed that error. Looking at backups of my config file, that line has always been missing for some reason. the forecast extension *s

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread mwall
On Wednesday, March 22, 2017 at 6:54:47 PM UTC-4, Alec Bennett wrote: > > It seems to fit the bill, but I'm currently getting lots of these errors > during generation: > >> File "/usr/local/lib/python2.7/dist-packages/configobj.py", line 554, >> in __getitem__ >> val = dict.__getitem__(self

[weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread mwall
i forgot to mention what might be the easiest option (assuming that you do not mind the XWindows-circa-1990s look) - just use the image that xtide emits. once again, write a TideGenerator, but all you do is invoke xtide with args to emit an image. then include that image in your templates. pu

Re: [weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread Alec Bennett
Right after posting I found the forecastnig extension, that has a tide component: https://github.com/weewx/weewx/wiki/forecasting It seems to fit the bill, but I'm currently getting lots of these errors during generation: Traceback (most recent call last): > File "/home/weewx/bin/weewx/reporte

[weewx-user] Re: Plotting ocean tide data?

2017-03-22 Thread mwall
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 t