Hi,
I’m trying to create a synthetic variable to calculate daily material usage from a radar level sensor in a silo. Here are my specific requirements:
-
Get one reading per day at 6 AM
- Need to handle cases where there isn’t an exact 6 AM reading (ideally use the closest reading, the max within an hour time window of 6 am, or fill from most recent reading before 6 am).
- Current sensor sends readings approximately every 15 minutes
-
Calculate daily usage by:
- Comparing consecutive daily 6 AM readings to determine usage
-
Current challenges:
- My attempts using max(), last(), and fill_missing(), and offset functions are outputting multiple values nstead of once daily.
- Having trouble isolating just the 6 AM readings
- Need help with the correct date range function syntax for this use case
What’s the correct approach to get exactly one reading per day at 6 AM?
Thanks in advance for your help!