[weewx-user] Re: Forecast Xtide

2020-06-02 Thread mwall
hi phil,

there are two parts to the answer:

1) how far into the future should the forecast go
2) how much of that forecast should be shown

for the first part, the default is 28 days.  if you want a longer forecast, 
change the 'duration' parameter.  these are the parameters that control the 
forecast generation:

[Forecast]
  [[XTide]]
location = Boston
interval = 1209600 # how often to generate forecast. default is 14 days
duration = 2419200 # how far in future to forecast. default is 28 days
max_age = 2419200 # how long to keep each forecast

for the second part, adjust the reporting parameters in the skin.  for the 
tides.html.tmpl template, this is controlled by this expression:

#for $tide in $tides
...
#end for

this will return every tide value from the current time into the future.

so if you have 28 days of tide predictions, and you do the report on day 1, 
you'll see tide values for 28 days.

if you do the report on day 10, you will see tide values for 18 days.

so there are a few ways to "show more tide data"

option 1: set a longer duration.  make the forecast generate more data 
points, then there will be more to display

option 2: adjust the "interval" parameter.  if you generate a forecast once 
per day, then each report will always have a full 28 days of forecast data

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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0f926079-45f5-4d0e-a833-c878c2731883%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-02 Thread Phil Owers
Thanks for the quick reply
Ive checked that Im using
#set $tides = $forecast.xtides
#if len($tides) > 0
  #for $tide in $tides
$tide.event_ts $tide.hilo $tide.offset
  #end for
and the interval and duration are set to the default
Ive check that in the forecast.sdb has tide times that go to June28
The page gets updated every 10 mins and the first tide is June 2 16:18 but 
the last time is June 14th
When the first time is reached that goes and a new date gets added to the 
end
.I cant get it to go any further. than 12 days
Phil

On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>
> Hi
> Using the tide.html.tmpl that is associated with weewx-forecast-master.zip 
> it displays 12 days ish of tide times
> Im trying to increase this to a month or even longer. The times in the 
> forecast.sdb are for about a month 
> Just wondered how I could display further than 12 days.
> Thanks for any help
> Phil
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9bab27e2-d31a-40e5-8bf1-77d6d8ff%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-02 Thread Phil Owers
Sorry I had set the interval to 86400.

On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>
> Hi
> Using the tide.html.tmpl that is associated with weewx-forecast-master.zip 
> it displays 12 days ish of tide times
> Im trying to increase this to a month or even longer. The times in the 
> forecast.sdb are for about a month 
> Just wondered how I could display further than 12 days.
> Thanks for any help
> Phil
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4a2c37d3-6301-47e5-9721-8790fb286d1d%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-02 Thread Phil Owers
Whatever I change It still only displays 12 days
Any help will be appreciated
Thanks Phil


On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>
> Hi
> Using the tide.html.tmpl that is associated with weewx-forecast-master.zip 
> it displays 12 days ish of tide times
> Im trying to increase this to a month or even longer. The times in the 
> forecast.sdb are for about a month 
> Just wondered how I could display further than 12 days.
> Thanks for any help
> Phil
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/89c8d7ee-2653-485f-bafd-c0255bc52f6f%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-02 Thread mwall


On Tuesday, June 2, 2020 at 4:04:30 PM UTC-4, Phil Owers wrote:
>
> Whatever I change It still only displays 12 days
>

what does the log say?

exactly what configuration are you using?

you might want to stop weewx, delete the forecast database, then start weewx

if you just keep restarting weewx, there is a good chance that forecast is 
doing nothing, since you already have a tide forecast.  it won't calculate 
a new forecast until it has to.

the log will tell you what is happening

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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/16c1c70c-ff67-44bf-8e9d-b1cfcd25b05c%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-02 Thread Phil Owers
Thanks Mathew
By changing the interval and deleting the database I can now change whats 
displayed
Interval = 86400 displays jun3 to jun4
Interval = 864000 gives a display of Jun3rd to Jun14
However changing the interval to anything higher  say 20 days (1728000) 
makes no difference and I did delete the database twice .
When you start weewx the log shows 
Xtide interval=1728000 max_age=2419200 duration=3456000
Xtide thread getting tides for 3/6/2020 to 13/7/2020
Im changing the parameters interval and max_age is also there but I cant 
find duration so Im wondering where that is.
weewx is ver 4.1

On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>
> Hi
> Using the tide.html.tmpl that is associated with weewx-forecast-master.zip 
> it displays 12 days ish of tide times
> Im trying to increase this to a month or even longer. The times in the 
> forecast.sdb are for about a month 
> Just wondered how I could display further than 12 days.
> Thanks for any help
> Phil
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a550f42e-c18d-43d6-91c2-ad64dbe3af2e%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-02 Thread mwall
On Tuesday, June 2, 2020 at 7:51:11 PM UTC-4, Phil Owers wrote:
>
> By changing the interval and deleting the database I can now change whats 
> displayed
> Interval = 86400 displays jun3 to jun4
> Interval = 864000 gives a display of Jun3rd to Jun14
> However changing the interval to anything higher  say 20 days (1728000) 
> makes no difference and I did delete the database twice .
>

the 'interval' determines how often the tide forecast is calculated

the 'duration' determines how far into the future the forecast will extend

if you do not specify a duration, then the duration defaults to twice the 
interval

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e4fe132e-3895-4142-845f-cee5574a016f%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-03 Thread Phil Owers
>From the logs

Jun  3 00:05:16 raspberrypi weewx[15036] INFO user.forecast: MainThread: 
XTide: forecast version 3.4.0b1
Jun  3 00:05:16 raspberrypi weewx[15036] INFO user.forecast: MainThread: 
XTide: interval=1728000 max_age=2419200 location='Cromer, England' 
duration=3456000

Jun  3 00:10:15 raspberrypi weewx[15036] INFO user.forecast: XTideThread: 
XTide: generating tides from 2020-06-03 00:00:00 BST (1591138800) to 
2020-07-13 00:00:00 BST (1594594800)
Jun  3 00:10:15 raspberrypi weewx[15036] INFO user.forecast: 
ZambrettiThread: Zambretti: generated 1 forecast record
Jun  3 00:10:15 raspberrypi weewx[15036] INFO user.forecast: UKMOThread: 
UKMO: got 34 forecast records
Jun  3 00:10:15 raspberrypi weewx[15036] INFO user.forecast: XTideThread: 
XTide: saved 154 forecast records
Jun  3 00:10:16 raspberrypi weewx[15036] INFO user.forecast: XTideThread: 
XTide: deleted forecasts prior to 1588720215

Duration is 3456000 with the interval set at 1728000 (20 days) so shouldn't 
that display 20 days, I cant get it any further than 12 days.

To clear one thing up 
[Forecast]
  [[XTide]]
location = Boston
interval = 1209600 # how often to generate forecast. default is 14 days
duration = 2419200 # how far in future to forecast. default is 28 days
max_age = 2419200 # how long to keep each forecast
Where should this go please as Im changing the values in forecast.py where 
I couldn't find DURATION
Sorry to be a pain
Phil



On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>
> Hi
> Using the tide.html.tmpl that is associated with weewx-forecast-master.zip 
> it displays 12 days ish of tide times
> Im trying to increase this to a month or even longer. The times in the 
> forecast.sdb are for about a month 
> Just wondered how I could display further than 12 days.
> Thanks for any help
> Phil
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e4e78a67-adef-49ac-93dc-744131023270%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-03 Thread Phil Owers
Took a while for the penny to drop but now  realise they go in the 
weewx.conf file. 
Still cant display more than 12 days with the previous method but using the 
following method

#set $periods = $forecast.weather_periods('XTide', max_events=50)
  #for $period in $periods
  $period.event_ts $period.hilo
  #end for

I can get anything I wont displayed.

Phil

On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>
> Hi
> Using the tide.html.tmpl that is associated with weewx-forecast-master.zip 
> it displays 12 days ish of tide times
> Im trying to increase this to a month or even longer. The times in the 
> forecast.sdb are for about a month 
> Just wondered how I could display further than 12 days.
> Thanks for any help
> Phil
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d74b3491-35bf-47c1-bc49-ab25faa97979%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-03 Thread mwall


On Wednesday, June 3, 2020 at 5:07:35 AM UTC-4, Phil Owers wrote:
>
>
> Where should this go please as Im changing the values in forecast.py where 
> I couldn't find DURATION
> Sorry to be a pain
>

no pain at all!  we just need a common reference frame.

when you make changes to weewx, most of the time you will modify the 
configuration file (typically weewx.conf) to affect the program behavior, 
or the template files (typically in a directory called 'skins') to affect 
the look/content of reports.  you should never have to modify the code (the 
.py files) unless you are writing new features or working on a bleeding 
edge bugfix.

in this case, you should modify weewx.conf.  it should be in 
/etc/weewx/weewx.conf or /home/weewx/weewx.conf, depending on how you 
installed weewx.

in that file, look for a section called 'Forecast'.  that is where you make 
the changes

then you must restart weewx for the changes to take effect

you should also only delete the forecast database while weewx is stopped - 
if you delete it while weewx is running it could become very confused

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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/acbab33c-42ef-4daa-83dc-f92b55d1f2db%40googlegroups.com.


[weewx-user] Re: Forecast Xtide

2020-06-04 Thread Phil Owers
Hi Mathew
Sorry I need your help again
Im trying to display at least 3 months of tide time data

Jun  4 15:32:12 raspberrypi weewx[9290] INFO user.forecast: MainThread: 
XTide: forecast version 3.4.0b1
Jun  4 15:32:12 raspberrypi weewx[9290] INFO user.forecast: MainThread: 
XTide: interval=86400 max_age=2419200 location='Cromer, England' 
duration=864
The above log has the data in the database and have confirmed by looking at 
the XTide first and last entry.
By using
#set $tides = $forecast.xtides
#if len($tides) > 0
  #for $tide in $tides
$tide.event_ts $tide.hilo $tide.offset
  #end for
I can only get 12 days displayed so I decided to see what this displayed 
#set $periods = $forecast.weather_periods('XTide', max_events=100)
  #for $period in $periods
  $period.event_ts $period.hilo
  #end for
It worked but only up to 54 events and refused to go any further
So what am I doing wrong.
Thanks in advance
Phil


On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>
> Hi
> Using the tide.html.tmpl that is associated with weewx-forecast-master.zip 
> it displays 12 days ish of tide times
> Im trying to increase this to a month or even longer. The times in the 
> forecast.sdb are for about a month 
> Just wondered how I could display further than 12 days.
> Thanks for any help
> Phil
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/03a35cca-2c4d-4127-a1d1-5e4b78c0ad75%40googlegroups.com.


[weewx-user] Re: Forecast XTide error

2019-04-12 Thread mwall
the only way we can work magic is if you provide more information.

what does the log say (more explicitly, we need to see the stack trace from 
the 'forecast failure')?

what location?

which version of harmonics?

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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Forecast XTide error

2019-04-13 Thread ABZ
Appreciate your prompt reply.  Not sure what you mean by stack trace.  
Here's the log:

Apr 13 10:15:15 cmpweewx weewx[21000]: manager: Added record 2019-04-13 
10:15:00 EDT (1555164900) to database 'weewx.sdb'

Apr 13 10:15:15 cmpweewx weewx[21000]: manager: Added record 2019-04-13 
10:15:00 EDT (1555164900) to daily summary in 'weewx.sdb'

Apr 13 10:15:15 cmpweewx weewx[21000]: forecast: DSThread: DS: downloading 
forecast from 
'https://api.darksky.net/forecast/630a/38.9345,-74.9647?exclude=currently,minutely,hourly,alerts,flags&lang=en&units=us'

Apr 13 10:15:15 cmpweewx weewx[21000]: forecast: XTideThread: XTide: 
generating tides from 2019-04-13 00:00:00 EDT (1555128000) to 2019-05-11 
00:00:00 EDT (1557547200)

Apr 13 10:15:15 cmpweewx weewx[21000]: forecast: DSThread: DS: forecast 
failure: initial_value must be unicode or None, not str

Apr 13 10:15:15 cmpweewx weewx[21000]: forecast: XTideThread: XTide: 
forecast failure: invalid literal for int() with base 10: 'Cape May Point, 
Sunset Beach, Delaware Bay, New Jersey'

Apr 13 10:15:20 cmpweewx weewx[21000]: cheetahgenerator: Generated 15 files 
for report StandardReport in 4.82 seconds

Apr 13 10:15:21 cmpweewx weewx[21000]: imagegenerator: Generated 12 images 
for StandardReport in 1.39 seconds



Also, here's the tide command:


*$* tide -l "Cape May Point, Sunset Beach, Delaware Bay, New Jersey"

Indexing /usr/share/xtide/harmonics-dwf-20100529-free.tcd...

Indexing /usr/share/xtide/harmonics-initial.tcd...

Cape May Point, Sunset Beach, Delaware Bay, New Jersey

38.9467° N, 74.9717° W


2019-04-13 12:57 PM EDT   Moonrise

2019-04-13  4:05 PM EDT   4.18 feet  High Tide

2019-04-13  7:34 PM EDT   Sunset



How do I determine the harmonics file version? 

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Forecast XTide error

2019-04-13 Thread ABZ
p.s.  I replaced the harmonics file with the most recent version.  I didn't 
expect it to make a difference and apparently, it didn't:

Apr 13 11:30:15 cmpweewx weewx[21000]: forecast: XTideThread: XTide: 
generating tides from 2019-04-13 00:00:00 EDT (1555128000) to 2019-05-11 
00:00:00 EDT (1557547200)

Apr 13 11:30:15 cmpweewx weewx[21000]: forecast: DSThread: DS: forecast 
failure: initial_value must be unicode or None, not str

Apr 13 11:30:16 cmpweewx weewx[21000]: forecast: XTideThread: XTide: 
forecast failure: invalid literal for int() with base 10: 'Cape May Point, 
Sunset Beach, Delaware Bay, New Jersey'


XTides still works:


tide -l "Cape May Point, Sunset Beach, Delaware Bay, New Jersey"

Indexing /usr/share/xtide/harmonics-dwf-20181227-free.tcd...

Indexing /usr/share/xtide/harmonics-initial.tcd...

Indexing /usr/share/xtide/harmonics-dwf-20100529-free.tcd-hold...

Cape May Point, Sunset Beach, Delaware Bay, New Jersey

38.9467° N, 74.9717° W


2019-04-13 12:57 PM EDT   Moonrise

2019-04-13  4:05 PM EDT   4.18 feet  High Tide

2019-04-13  7:35 PM EDT   Sunset



>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Forecast XTide error

2019-04-14 Thread mwall
On Saturday, April 13, 2019 at 10:25:49 AM UTC-4, ABZ wrote:
>
> Appreciate your prompt reply.  Not sure what you mean by stack trace.
>

please set debug=1 in your weewx configuration file, then restart weewx.  
post the log output from the time that weewx starts until the first archive 
interval.
 

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Forecast XTide error

2019-04-14 Thread ABZ
Apr 14 09:39:34 cmpweewx weewx[31848]: engine: Initializing weewx version 
3.9.1
Apr 14 09:39:34 cmpweewx weewx[31848]: engine: Using Python 2.7.13 
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Apr 14 09:39:34 cmpweewx weewx[31848]: engine: Platform 
Linux-4.9.59-v7+-armv7l-with-debian-9.8
Apr 14 09:39:34 cmpweewx weewx[31848]: engine: Locale is 'en_US.UTF-8'
Apr 14 09:39:34 cmpweewx weewx[31848]: engine: pid file is 
/var/run/weewx.pid
Apr 14 09:39:34 cmpweewx weewx[31836]: Starting weewx weather system: weewx.
Apr 14 09:39:34 cmpweewx systemd[1]: Started LSB: weewx weather system.
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Using configuration file 
/etc/weewx/weewx.conf
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Debug is 1
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Initializing engine
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Loading station type Vantage 
(weewx.drivers.vantage)
Apr 14 09:39:34 cmpweewx weewx[31852]: vantage: Driver version is 3.1.1
Apr 14 09:39:34 cmpweewx weewx[31852]: vantage: Opened up serial port 
/dev/ttyUSB0; baud 19200; timeout 4.00
Apr 14 09:39:34 cmpweewx weewx[31852]: vantage: Gentle wake up of console 
successful
Apr 14 09:39:34 cmpweewx weewx[31852]: vantage: Hardware type is 16
Apr 14 09:39:34 cmpweewx weewx[31852]: vantage: ISS ID is 1
Apr 14 09:39:34 cmpweewx weewx[31852]: vantage: Hardware name: Vantage Pro2
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Loading service 
weewx.engine.StdTimeSynch
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Finished loading service 
weewx.engine.StdTimeSynch
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Loading service 
weewx.engine.StdConvert
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: StdConvert target unit is 0x1
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Finished loading service 
weewx.engine.StdConvert
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Loading service 
weewx.engine.StdCalibrate
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Finished loading service 
weewx.engine.StdCalibrate
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Loading service 
weewx.engine.StdQC
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Finished loading service 
weewx.engine.StdQC
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Loading service 
weewx.wxservices.StdWXCalculate
Apr 14 09:39:34 cmpweewx weewx[31852]: wxcalculate: The following values 
will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, 
dewpoint=prefer_hardware, appTemp=prefer_hardware, 
rainRate=prefer_hardware, windrun=prefer_hardware, 
heatindex=prefer_hardware, maxSolarRad=prefer_hardware, 
humidex=prefer_hardware, pressure=prefer_hardware, 
inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
cloudbase=prefer_hardware
Apr 14 09:39:34 cmpweewx weewx[31852]: wxcalculate: The following 
algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Finished loading service 
weewx.wxservices.StdWXCalculate
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Loading service 
weewx.engine.StdArchive
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Archive will use data 
binding wx_binding
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Record generation will be 
attempted in 'hardware'
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Using archive interval of 
300 seconds (specified by hardware)
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Use LOOP data in hi/low 
calculations: 1
Apr 14 09:39:34 cmpweewx weewx[31852]: manager: Daily summary version is 2.0
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Using binding 'wx_binding' 
to database 'weewx.sdb'
Apr 14 09:39:34 cmpweewx weewx[31852]: manager: Starting backfill of daily 
summaries
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Finished loading service 
weewx.engine.StdArchive
Apr 14 09:39:34 cmpweewx weewx[31852]: engine: Loading service 
user.forecast.ZambrettiForecast
Apr 14 09:39:35 cmpweewx weewx[31852]: forecast: MainThread: Zambretti: 
forecast version 3.4.0rc1
Apr 14 09:39:35 cmpweewx weewx[31852]: forecast: MainThread: Zambretti: 
last forecast issued 2019-04-14 09:00:00 EDT (1555246800), requested 
2019-04-14 09:00:00 EDT (1555246800)
Apr 14 09:39:35 cmpweewx weewx[31852]: forecast: MainThread: Zambretti: 
interval=600 max_age=604800 winddir_period=1800 pressure_period=10800 
hemisphere=NORTH lower_pressure=950.0 upper_pressure=1050.0
Apr 14 09:39:35 cmpweewx weewx[31852]: engine: Finished loading service 
user.forecast.ZambrettiForecast
Apr 14 09:39:35 cmpweewx weewx[31852]: engine: Loading service 
user.forecast.NWSForecast
Apr 14 09:39:35 cmpweewx weewx[31852]: forecast: MainThread: NWS: forecast 
version 3.4.0rc1
Apr 14 09:39:35 cmpweewx weewx[31852]: forecast: MainThread: NWS: last 
forecast issued 2019-04-14 06:37:00 EDT (1555238220), requested 2019-04-14 
07:05:16 EDT (1555239916)
Apr 14 09:39:35 cmpweewx weewx[31852]: forecast: MainThread: NWS: 
interval=10800 max_age=604800 lid=NJZ025 

[weewx-user] Re: Forecast XTide error

2019-04-14 Thread mwall
please use forecast.py version 3.4.0rc2, not 3.4.0rc1.

https://groups.google.com/group/weewx-user/attach/639775dd1c899/forecast-3.4.0rc2.py

if that link does not work, you can find 3.4.0rc2 in this thread in a 
posting made 05apr2019:

https://groups.google.com/forum/#!topic/weewx-user/CEs-qlhj69U

'real work' is sucking up a lot of my time at the moment, but i'm trying to 
get the new WU forecasts, UK met fixes, and possibly one or two additional 
forecast sources into the 3.4.0 release of forecast extension.  until then, 
please use rc2.

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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Forecast XTide error

2019-04-16 Thread V. Kelly Bellis
Thanks Matt for all of your donated labors for the weewx community; it is 
very much appreciated!

When you've time, one other forecast request; i.e. 

[Forecast] 
  [[*needed_fixes*]]

   - WU new API keys and commands - already mentioned
   - *NWS new Point-n-Click product*
   
The old NWS 3-letter forecast office identifier (foid, also referred to as 
HADS) and 6-character location identifier (lid) are being phased out; this 
is the NWS so-called PFM product. It has been replaced with the 
Point-n-Click product (quasi-official product name) allowing for more 
localized forecasts from a gridded database. More on that here: 
https://www.weather.gov/mdl/ndfd_home

Thanks again for fixing the XTide v2.15.2 issue!

Kind regards,

Kelly



On Sunday, April 14, 2019 at 6:44:39 PM UTC-4, mwall wrote:
>
> 'real work' is sucking up a lot of my time at the moment, but i'm trying 
> to get the new WU forecasts, UK met fixes, and possibly one or two 
> additional forecast sources into the 3.4.0 release of forecast extension.  
> until then, please use rc2.
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Forecast Xtide

2020-06-04 Thread Phil Owers
In forecast.py under def xtides there is a max_events = 45. Changing that
to a higher number has sorted my problem, however you may well tell me that
could upset something.
Phil

On Thu, 4 Jun 2020, 16:10 Phil Owers,  wrote:

> Hi Mathew
> Sorry I need your help again
> Im trying to display at least 3 months of tide time data
>
> Jun  4 15:32:12 raspberrypi weewx[9290] INFO user.forecast: MainThread:
> XTide: forecast version 3.4.0b1
> Jun  4 15:32:12 raspberrypi weewx[9290] INFO user.forecast: MainThread:
> XTide: interval=86400 max_age=2419200 location='Cromer, England'
> duration=864
> The above log has the data in the database and have confirmed by looking
> at the XTide first and last entry.
> By using
> #set $tides = $forecast.xtides
> #if len($tides) > 0
>   #for $tide in $tides
> $tide.event_ts $tide.hilo $tide.offset
>   #end for
> I can only get 12 days displayed so I decided to see what this displayed
> #set $periods = $forecast.weather_periods('XTide', max_events=100)
>   #for $period in $periods
>   $period.event_ts $period.hilo
>   #end for
> It worked but only up to 54 events and refused to go any further
> So what am I doing wrong.
> Thanks in advance
> Phil
>
>
> On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>>
>> Hi
>> Using the tide.html.tmpl that is associated with
>> weewx-forecast-master.zip it displays 12 days ish of tide times
>> Im trying to increase this to a month or even longer. The times in the
>> forecast.sdb are for about a month
>> Just wondered how I could display further than 12 days.
>> Thanks for any help
>> Phil
>>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/03a35cca-2c4d-4127-a1d1-5e4b78c0ad75%40googlegroups.com
> 
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CALTQ7pP_W5DYviLYOAKtaDAk88Nkk5Ek867B%2BYEm2BKKSNzsjA%40mail.gmail.com.


Re: [weewx-user] Re: Forecast Xtide

2020-06-04 Thread John Kline
It’s best to leave forecast.py alone and pass max_events as an arg when using 
that variable.

For example, to change max_events to 100 in the tides.html.tmpl template that 
ships with the extension:

Change:
#set $tides = $forecast.xtides()
to:
#set $tides = $forecast.xtides(max_events=100)

> On Jun 4, 2020, at 12:08 PM, Phil Owers  wrote:
> 
> 
> In forecast.py under def xtides there is a max_events = 45. Changing that to 
> a higher number has sorted my problem, however you may well tell me that 
> could upset something.
> Phil
> 
>> On Thu, 4 Jun 2020, 16:10 Phil Owers,  wrote:
>> Hi Mathew
>> Sorry I need your help again
>> Im trying to display at least 3 months of tide time data
>> 
>> Jun  4 15:32:12 raspberrypi weewx[9290] INFO user.forecast: MainThread: 
>> XTide: forecast version 3.4.0b1
>> Jun  4 15:32:12 raspberrypi weewx[9290] INFO user.forecast: MainThread: 
>> XTide: interval=86400 max_age=2419200 location='Cromer, England' 
>> duration=864
>> The above log has the data in the database and have confirmed by looking at 
>> the XTide first and last entry.
>> By using
>> #set $tides = $forecast.xtides
>> #if len($tides) > 0
>>   #for $tide in $tides
>> $tide.event_ts $tide.hilo $tide.offset
>>   #end for
>> I can only get 12 days displayed so I decided to see what this displayed 
>> #set $periods = $forecast.weather_periods('XTide', max_events=100)
>>   #for $period in $periods
>>   $period.event_ts $period.hilo
>>   #end for
>> It worked but only up to 54 events and refused to go any further
>> So what am I doing wrong.
>> Thanks in advance
>> Phil
>> 
>> 
>>> On Tuesday, June 2, 2020 at 1:18:55 PM UTC+1, Phil Owers wrote:
>>> Hi
>>> Using the tide.html.tmpl that is associated with weewx-forecast-master.zip 
>>> it displays 12 days ish of tide times
>>> Im trying to increase this to a month or even longer. The times in the 
>>> forecast.sdb are for about a month 
>>> Just wondered how I could display further than 12 days.
>>> Thanks for any help
>>> Phil
>> 
>> -- 
>> 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 weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/03a35cca-2c4d-4127-a1d1-5e4b78c0ad75%40googlegroups.com.
> 
> -- 
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/CALTQ7pP_W5DYviLYOAKtaDAk88Nkk5Ek867B%2BYEm2BKKSNzsjA%40mail.gmail.com.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8D8A8CC7-260B-4C1F-8A91-F151AA4A5238%40johnkline.com.


Re: [weewx-user] Re: Forecast XTide error

2019-04-14 Thread zListserv
Many thanks.  I give it a try and await the updated version.

> On 2019-04 -14, at 18:44, mwall  wrote:
> 
> please use forecast.py version 3.4.0rc2, not 3.4.0rc1.
> 
> https://groups.google.com/group/weewx-user/attach/639775dd1c899/forecast-3.4.0rc2.py
> 
> if that link does not work, you can find 3.4.0rc2 in this thread in a posting 
> made 05apr2019:
> 
> https://groups.google.com/forum/#!topic/weewx-user/CEs-qlhj69U
> 
> 'real work' is sucking up a lot of my time at the moment, but i'm trying to 
> get the new WU forecasts, UK met fixes, and possibly one or two additional 
> forecast sources into the 3.4.0 release of forecast extension.  until then, 
> please use rc2.
> 
> 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/-xC0miZ8rY4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+unsubscr...@googlegroups.com.
> 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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.