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

Observations with $current N/A values are not shown anymore in stat-tiles/conditions table on day page #188

Closed
Daveiano opened this issue Jul 22, 2023 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation
Milestone

Comments

@Daveiano
Copy link
Owner

Daveiano commented Jul 22, 2023

I noticed the change on the tiles.
I use several data sources for my weewx site.
1 - an SDR receiver to process data received by radio
2 - From my bresser station which I capture via wifi.
Sometimes the data is not captured during the capture interval.

In versions 3.2.0 and earlier, I had NA values when data could not be received. In the tiles, the NA value was displayed along with the day's min and max values for the capture interval where the value is missing.
Now, with version 3.3.0, when a value is NA, it is no longer displayed in the tiles.
I was wondering if there was now a parameter that managed the display of NA values in tiles?

Originally posted by @endmarsfr in #183 (comment)


Ah ok, I understood. You are right, this changed since the last version: The condition is now if $current.obs.has_data, instead of $day.obs.has_data. To be honest, I thought it would be better to check against $current, but you are right. Since the min/max value of the day is shown, it absolutely makes sense to check against $day to determine if the observations should be shown.

I don't think it makes sense to make this configurable since it definitely should use $day in that case, or what do you think?

Note to myself: https://github.com/Daveiano/weewx-wdc/blob/3.x/skins/weewx-wdc/includes/conditions-table.inc#L66 and https://github.com/Daveiano/weewx-wdc/blob/3.x/skins/weewx-wdc/includes/body-alternative.inc#L74

Originally posted by @Daveiano in #183 (comment)


I think that if the "show_min_max_time_day" option is set to True, it is mandatory to display the values even if they are NA. Indeed, with the current behavior, the min/max values are lost.

But if the "show_min_max_time_day" option is set to false, it might be more useful to hide the NA values.

But if these rules can't be applied, I prefer to revert to the previous behavior and use: "$day.obs.has_data" in the templates.

Originally posted by @endmarsfr in #183 (comment)

@Daveiano Daveiano added the bug Something isn't working label Jul 22, 2023
@Daveiano Daveiano added this to the 3.4.0 milestone Jul 22, 2023
@Daveiano Daveiano changed the title N/A values are not shown anymore in stat-tiles/conditions table Observations with $current N/A values are not shown anymore in stat-tiles/conditions table on day page Jul 22, 2023
@Daveiano Daveiano added the documentation Improvements or additions to documentation label Oct 23, 2023
@Daveiano
Copy link
Owner Author

@endmarsfr I implemented the change in 717eed4. You can test this out by using the updated templates skins/weewx-wdc/includes/body-alternative.inc and skins/weewx-wdc/includes/conditions-table.inc.

A slight change: I made the display not dependent on show_min_max_time_day, but on stat_tiles_show_min, stat_tiles_show_max or stat_tiles_show_sum. So if the max, min or sum of an observations should be displayed it will check against $day, if not It will check against $current. I think this makes more sense!?

Daveiano added a commit that referenced this issue Oct 24, 2023
@Daveiano
Copy link
Owner Author

My bad, I made a copy/paste error in skins/weewx-wdc/includes/body-alternative.inc, please see the following change: eabad0f

@Daveiano
Copy link
Owner Author

Daveiano commented Nov 2, 2023

I will close this for now, feel free to open another issue if you encounter any problems!

@Daveiano Daveiano closed this as completed Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant