Matt - Thanks for the reply. I'm guessing from your response that there is no documentation on xtide integration. XTide is running perfectly on the RPi, but the syslog is still indicating that there is an issue with weewx: forecast: XTide even after implementing your suggested path update and location in (presumably) /etc/weewx/weewx.conf
*Details* RE: weewx_forecasting-extension_xtide pi@raspberrypi:~ $ uname -a Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux *Sequence of Events* 20190221 Installed forecasting extension, sudo apt-get xtide, and sudo apt-get xtide-data 20190222 Realized deprecated deb package and data, sudo apt-get remove xtide, and sudo apt-get remove xtide-data 20190222 Built XTide v2.15.1 from source files 20190224 XTide v2.15.2 available 20190226 Built XTide v2.15.2 from source files (time off to work on https://flaterco.com/files/xtide/XTide%20v2.15.2%20Help%20b20190309.chm) 20190312 Examined /var/log/syslog and discovered xtide STATION_NOT_FOUND errors 20190313 Examined /usr/bin/ and discovered tide v2.13.2 was not removed(!) - manually removed - and left wondering what other lingering bits could there be from the original installation on 20190221 of the deprecated stuff, this despite the overt sudo apt-get remove efforts. 9:13 AM Wednesday, March 13, 2019 (VKB) pi@raspberrypi:~ $ sudo rm /usr/bin/tide pi@raspberrypi:~ $ sudo leafpad /etc/weewx/weewx.conf @ line number 652 [[XTide]], inserted and edited the following lines prog = /usr/local/bin/tide location = Boston pi@raspberrypi:~ $ sudo /etc/init.d/weewx stop [ ok ] Stopping weewx (via systemctl): weewx.service. pi@raspberrypi:~ $ sudo /etc/init.d/weewx start [ ok ] Starting weewx (via systemctl): weewx.service. ################ And again from /var/log/syslog Mar 13 10:30:16 raspberrypi weewx[2614]: manager: Added record 2019-03-13 10:30:00 EDT (1552487400) to database 'weewx.sdb' Mar 13 10:30:16 raspberrypi weewx[2614]: manager: Added record 2019-03-13 10:30:00 EDT (1552487400) to daily summary in 'weewx.sdb' Mar 13 10:30:16 raspberrypi weewx[2614]: forecast: XTideThread: XTide: generating tides from 2019-03-13 00:00:00 EDT (1552449600) to 2019-04-10 00:00:00 EDT (1554868800) Mar 13 10:30:16 raspberrypi weewx[2614]: atmocomudp: MainThread: Listening for UDP broadcasts to IP address <broadcast> on port 12000, with timeout 90 and share_socket True... Mar 13 10:30:17 raspberrypi weewx[2614]: forecast: XTideThread: XTide: got no tidal events Mar 13 10:30:17 raspberrypi weewx[2614]: forecast: XTideThread: XTide: generate forecast failed: XTide Error: STATION_NOT_FOUND The specified station was not found in any harmonics file. Error details: Could not find: Boston FY(and your students)I & FWIW - https://flaterco.com/xtide/harmonics.html Kind regards, Kelly On Tuesday, March 12, 2019 at 5:49:32 PM UTC-4, mwall wrote: > > On Tuesday, March 12, 2019 at 5:04:16 PM UTC-4, V. Kelly Bellis wrote: >> >> I was wondering if there might be any documentation written for >> non-programmers in how weewx and XTide have been integrated? >> > > the forecast extension invokes xtide, parses the output, then stores the > result in the forecast database. the results can then be combined with > other forecast data when generating reports. > > by default, the forecast extension will invoke /usr/bin/tide > > if your 'tide' program is located somewhere else, you can tell the > extension to find it like this: > > [Forecast] > [[XTide]] > prog = /path/to/tide > location = Boston > > as for the tide location, you must test that directly with tide. once you > have a string that works, use that string as the 'location' parameter for > the forecast extension. if the location has commas or spaces then put it > in quotes. > > btw, this spring i'm hoping to have some students put together a guide for > how to create your own harmonics from your own data. we have been using > maxbotix ultrasonic sensors on raspberry pi running weewx to collect tide > data from a couple of islands in maine. apparently you can create your own > harmonics with 6-9 months of data (the data we have so far tracks the xtide > predictions for tenants harbor and camden pretty well, but there are > offsets in magnitude and phase). its been a bit of a struggle - power > outages, snow on solar panels, critters chewing through cables, > seawater/corrosion. but we'll get there... > > 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.
