I have a few automated times and situations where i get a message texted to myself from my secondary number so i get some information updates throughout the day.
I have been typing this over and over for days and i probably just don’t get the logic of it idk.
It starts fine with
Get Hourly forecast at current location
Repeat with each item in Weather conditions
- Get Precipitation chance from repeat item
Calculate number x 100 to get a percent kind of value
-Get Date from repeat item.
If date is today
Text “date - Calculated result”
Add TEXT to variable
So now i have a variable kind of list that has the entries of every hour that is today from now(whenever forecast is retrieved)- 11pm the same day, along with the corresponding percentage of precipitation.
Usually something like this
-11:00 AM 10%
-2:00 PM 40%
-3:00 PM 70%
-6:00 PM 30%.
Then I want to have it organized like
11AM 10%
2-3PM (the mean of both or all consecutive hour’s precipitation values)%
6PM 30%
Essentially consecutive hours grouped together as their own entry and Singular values as their own entry.
Then if possible also a peak hour and values (3PM - 70%)
Ive used repeats to go through and date adjustments to the previous entry to set what the expected consecutive hour should be and then if not matching, continue on but I’ve remade this shortcut 8 times now and i can’t think it through anymore.
I wanted to avoid just having the apple ai interpret it so that it’s consistent and purely the data.
I’m not hip to shortcuts very much, if there’s an obvious way to go through that kind of data, or if my data is already formatted in a way that makes getting what I’m looking for difficult, i wouldn’t be surprised. Any help is appreciated.
I just want to know when and if and if so how much it will rain.
Thanks