Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Days with Rain Count #20

Closed
Pogs2004 opened this issue Jan 23, 2023 · 3 comments
Closed

Add Days with Rain Count #20

Pogs2004 opened this issue Jan 23, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Pogs2004
Copy link
Collaborator

I thought this would be a simple bit of code but it’s turning out to be more complex! It would be a good feature to add the number of days with rain to the week, month and year page rain cards, and in the month / year reports.

You can see an example here (showing 0 as it’s not currently working): https://www.360shetland.co.uk/weather/month.html

I installed the XAggs extension from here: https://github.com/tkeffer/weewx-xaggs

It has an aggregate function that looked like it would do the job. I used $month.rain.avg_ge((‘0.2’, ‘mm’, ‘group_rain’)) to return the number of days with rain equal or over 0.2mm, however it doesn’t appear to work. Is there a simple way to display the number of days with rain in the given archive period, $week, $month and $year?

@Pogs2004 Pogs2004 added the enhancement New feature or request label Jan 23, 2023
@W0CHP W0CHP removed their assignment Jan 24, 2023
@W0CHP
Copy link
Collaborator

W0CHP commented Jan 24, 2023

@Pogs2004 Please file an issue with Tom, the author of the XAggs extension: https://github.com/tkeffer/weewx-xaggs/issues

@W0CHP W0CHP closed this as completed Jan 24, 2023
@Pogs2004
Copy link
Collaborator Author

I was hoping this could be done without using an extension, hence the reason I posted it as a possible enhancement.

@W0CHP
Copy link
Collaborator

W0CHP commented Jan 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants