I just posted a reply to the group (via e-mail), but didn't echo it back to my inbox.
I think it must have been eaten by the AEther. :-(
Then I tried a more simple message and it didn't post, either.
So now I am trying from the web interface to google groups.
Something seems to be wrong with the alias, or is it just me?
FWD:
Hey, Robin,
I don't know the weewx way, but here is a sql way that may lead some smart person to a better solution. :-/
I used the system date command up front to get the month-day, which is to avoid asking SQLite to do that computation for every row within the query.
$ today=$(date +%\m-%\d); sqlite3 -header /var/lib/weewx/weewx.sdb "select date(dateTime, 'unixepoch', 'localtime') as day, min, max from archive_day_outTemp where strftime('%m-%d', day)='$today' group by day;"
day|min|max
2017-05-11|46.9|70.0
2018-05-11|43.5|54.9
2019-05-11|39.02|52.7
Oh, and in case outTemp is not the name of your sensor per archive_day_outTemp, above, you can glean the table you need from here:
$ sqlite3 /var/lib/weewx/weewx.sdb ".tables"
And of course to see the column names available, it's:
$ sqlite3 /var/lib/weewx/weewx.sdb ".schema archive_day_outTemp"
CREATE TABLE archive_day_outTemp (dateTime INTEGER NOT NULL UNIQUE PRIMARY KEY, min REAL, mintime INTEGER, max REAL, maxtime INTEGER, sum REAL, count INTEGER, wsum REAL, sumtime INTEGER);
Or the more human readable way:
$ sqlite3 -header /var/lib/weewx/weewx.sdb "select * from archive_day_outTemp limit 1;"
dateTime|min|mintime|max|maxtime|sum|count|wsum|sumtime
1325394000|||||0.0|0|0.0|0
HTH. =D
Regards,
\Leon
--
Leon Shaner :: Dearborn, Michigan (iPad Pro)
#for $day in this_span.this
$day.outTemp.max at $day.outTemp.maxtime
#end for
24.5°C at 11 May 2017 12:51:00
26.7°C at 11 May 2018 13:31:00
23.4°C at 11 May 2019 13:15:00
$ wget -P /home/weewx/bin/user https://raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
$ wget -P /usr/share/weewx/user https://raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
search_list_extensions = user.this.ThisSLE
search_list_extensions = user,another.SLE, user.this.ThisSLE
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c0f51b2e-7a8b-4a05-9552-f146afbd9bfe%40googlegroups.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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/75abaada-5cb6-47ec-9d3e-0b3046f4f9a3%40googlegroups.com.
--
#for $day in this_span.periods
$day.outTemp.max at $day.outTemp.maxtime
#end for
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ae22c835-f43a-48d5-80c7-c8690f1eadd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Peter,