> > 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 particularly worried about though since it sounds like this method won't work for me anyway, in it's current state at least, snice I'm looking for something graphical. that is not normal log output - there are not UKMO, Aeris, or XTide reports > in a default forecast installation. > it looks like you've got some stanzas in [StdReport] that do not belong > there. Hmm that's odd. And looking here <https://github.com/weewx/weewx/wiki/forecasting> it looks like it should only create one [forecasting] section in the config file, but in mine it created two, one in StdReport and one unnested at the very bottom of the file. Here's my StdReport section for whatever it's worth: http://pastebin.com/kr5hrNbz so that gives you a third approach: write a pure javascript implementation > that uses data from the forecast database. that approach would use cheetah > to iterate through the $forecast.xtide variable, then javascript would > render onto an HTML5 canvas. or perhaps use c3 (or some other d3 > derivative) or highcharts (does highcharts support this kind of plotting?) > to do the rendering. I've had great experiences with the Flot javascript graphing library, it could probably do it fairly easily. But I think it would probably be a bit easier to customize, and ultimately prettier, and re-usable, using PIL. The tides for the day aren't particularly complicated, it's just 4 points connected by a curve: 2017-03-22 9:16 PM PDT 4.20 feet High Tide 2017-03-23 2:20 AM PDT 2.64 feet Low Tide 2017-03-23 8:01 AM PDT 4.92 feet High Tide 2017-03-23 2:46 PM PDT 0.28 feet Low Tide Add an icon for the current time and it's done. For style points add moon rise and set, and sun rise and set. I've never drawn a curve in PIL before though. I'm tempted to build it directly in PIL first and then possibly adapt for weeWX. Anyone else interested in working on that? On Wed, Mar 22, 2017 at 4:07 PM, mwall <[email protected]> wrote: > 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 data in tabular form - there is no > graphic display of tides. one of these days... > > if your xtide is configured properly, if you look at one of the default > forecast reports (table or strip) you should see the tides > > the forecast extension puts the tide data into a forecast database, along > with all of the other forecast data. it works differently from the > TideGenerator approach i described earlier in this thread. > > so that gives you a third approach: write a pure javascript implementation > that uses data from the forecast database. that approach would use cheetah > to iterate through the $forecast.xtide variable, then javascript would > render onto an HTML5 canvas. or perhaps use c3 (or some other d3 > derivative) or highcharts (does highcharts support this kind of plotting?) > to do the rendering. > > m > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/weewx-user/l0I3tBbeYgg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.
