Re: [weewx-user] $almanac varying values

2022-11-04 Thread Tom Keffer
Makes sense. Sounds like for your application constant values for temperature and pressure would probably be best. On Fri, Nov 4, 2022 at 10:36 AM Karen K wrote: > tke...@gmail.com schrieb am Freitag, 4. November 2022 um 17:01:25 UTC+1: > >> $almanac(almanac_time=1655805600, >>

Re: [weewx-user] $almanac varying values

2022-11-04 Thread Karen K
tke...@gmail.com schrieb am Freitag, 4. November 2022 um 17:01:25 UTC+1: > $almanac(almanac_time=1655805600, > temperature=$current(timestamp=1655805600).outTemp.raw, > pressure=$current(timestamp=1655805600).barometer.raw).sunrise > > Hopefully that works! > It works perfect! > Are you

Re: [weewx-user] $almanac varying values

2022-11-04 Thread Tom Keffer
This is a good point. I had it wrong. The value for almanac_time is used for the position of the heavenly body. The database lookup is done with whatever the "current time" is, generally the last timestamp in the database. So, to set both, you'd have to do something like:

Re: [weewx-user] $almanac varying values

2022-11-04 Thread Karen K
tke...@gmail.com schrieb am Freitag, 4. November 2022 um 13:38:42 UTC+1: > If you provide almanac_time, then it looks them up in the database. > Otherwise, it uses the last time stamp in the database. > >> >> In my first example I provided an almanac_time. And there was a database record for

Re: [weewx-user] $almanac varying values

2022-11-04 Thread Greg Troxel
Tom Keffer writes: > If you provide almanac_time, then it looks them up in the database. > Otherwise, it uses the last time stamp in the database. > > If the database is not available, then it defaults to 15°C and 1010 mbar. I am curious about the rationale for 1010, vs 1013.25. And,

Re: [weewx-user] $almanac varying values

2022-11-04 Thread Tom Keffer
If you provide almanac_time, then it looks them up in the database. Otherwise, it uses the last time stamp in the database. If the database is not available, then it defaults to 15°C and 1010 mbar. On Fri, Nov 4, 2022 at 5:14 AM Karen K wrote: > tke...@gmail.com schrieb am Donnerstag, 3.

Re: [weewx-user] $almanac varying values

2022-11-04 Thread Karen K
tke...@gmail.com schrieb am Donnerstag, 3. November 2022 um 23:42:17 UTC+1: > Pressure and temperature also factor into the calculation. If you want to > hold them constant as well, then use something like: > > $current.dateTime , $almanac(almanac_time=1655805600, temperature=20.0, >

Re: [weewx-user] $almanac varying values

2022-11-03 Thread Tom Keffer
Pressure and temperature also factor into the calculation. If you want to hold them constant as well, then use something like: $current.dateTime , $almanac(almanac_time=1655805600, temperature=20.0, pressure=1010.0).sunrise See the section *Almanac

[weewx-user] $almanac varying values

2022-11-03 Thread Karen K
I was unsure about some results of the $alamanac tag. So I created a test template. It is very short. It calculates the sunrise time for June 21st, 2022: $current.dateTime , $almanac(almanac_time=1655805600).sunrise Every archive period a file is created out of that template. And I collected