Re: [weewx-user] Weird error with days_ago in 3.8.0

2023-04-06 Thread wxstor...@gmail.com
Thanks all for your input. I was able to determine a couple of issues with my testing efforts and the database that caused the issues. I didn't realize that cheetah would still try to execute the commented out code which made troubleshooting much harder. Once I deleted the code I was able to det

Re: [weewx-user] Weird error with days_ago in 3.8.0

2023-04-05 Thread wxstor...@gmail.com
out half the template and see > if it was the half causing the error. Keep halving the offending part until > you can isolate the line. > > On Tue, Apr 4, 2023 at 5:16 PM wxstor...@gmail.com > wrote: > >> I started getting an type error April 1st using days_ago. "Mus

[weewx-user] Weird error with days_ago in 3.8.0

2023-04-04 Thread wxstor...@gmail.com
I started getting an type error April 1st using days_ago. "Must be a real number, not str". But it is an integer that I am requesting from the database as I am requesting the raw dateTime. Now it works on some days and not others, like 357 days ago but not 360 days. Code from the template and t