Tindvik Tak is a roofing company with two crews on the west coast of Norway. Today the dispatcher looks at a weather app on Sunday evening, guesses, and still sends a crew to a site where the roof cannot be opened; the crew drives back and the customer has taken a day off for nothing. Here a nightly run fetches the forecast for the exact position of every job site in the coming week, applies the company's own work rules per type of job and puts a flag and a replacement day on the schedule board before the dispatcher starts on Monday.
Compare the planned day with the rules for that type of job, then walk the following weekdays to find the first one that passes.
Result
Flags and a customer message
The board shows the flag and the proposed day; one click sends the customer a reschedule message with the reason.
Wired as a schedule: every night at 02:00 a script reads the coming jobs from the job system, sends their coordinates to the API in one call and writes the flags back. The same schedule works in Make or n8n with the Apify app. One call carries all sites, so a company with 400 open jobs still makes one request per night.
Result
The schedule board after the nightly check
After the nightly check
DispatchSchedule board · week 47checked Sun 15 Nov 02:00
Jobs checked
5
of 6 planned
Break a work rule
3
Fana: rain · Os: wind · Voss: too cold
Good to go
2
Askøy · Stord
Site not found
1
Address to correct
Week 47 · Mon 16 to Fri 20 Nov · 6 jobs
Job
Planned
Forecast for the day
Rain probability
Strongest gust
Lowest temp.
Check
Next workable day
4127 · FanaTear-off and underlay · Crew A
Mon 16 Nov
Rain
85 %
42 km/h
5.2 °C
Rain
Wed 18 Nov
4131 · AskøyFlat-roof membrane · Crew B
Tue 17 Nov
Cloudy
30 %
38 km/h
6.1 °C
Go
—
4135 · OsSolar panel mounting · Crew A
Wed 18 Nov
Partly cloudy
15 %
61 km/h
4.2 °C
Wind
Thu 19 Nov
4138 · VossFlat-roof membrane · Crew B
Thu 19 Nov
Clear sky
10 %
22 km/h
-3.4 °C
Too cold
Mon 23 Nov
4140 · StordGutters and flashing · Crew A
Fri 20 Nov
Light rain showers
40 %
36 km/h
5.2 °C
Go
—
4142 · Knarrvik sentrumChimney flashing · Crew B
Fri 20 Nov
Site not found: the address is a free-text place name
—
—
—
Fix address
—
Weather data from MET Norway (api.met.no), CC BY 4.0· forecast updated00:31 UTC
Before
DispatchSchedule board · week 47no weather check
Week 47 · Mon 16 to Fri 20 Nov · 6 jobs
Job
Planned
Forecast for the day
Rain probability
Strongest gust
Lowest temp.
Check
Next workable day
4127 · FanaTear-off and underlay · Crew A
Mon 16 Nov
not checked
—
—
—
Scheduled
—
4131 · AskøyFlat-roof membrane · Crew B
Tue 17 Nov
not checked
—
—
—
Scheduled
—
4135 · OsSolar panel mounting · Crew A
Wed 18 Nov
not checked
—
—
—
Scheduled
—
4138 · VossFlat-roof membrane · Crew B
Thu 19 Nov
not checked
—
—
—
Scheduled
—
4140 · StordGutters and flashing · Crew A
Fri 20 Nov
not checked
—
—
—
Scheduled
—
4142 · Knarrvik sentrumChimney flashing · Crew B
Fri 20 Nov
not checked
—
—
—
Scheduled
—
Six jobs, all marked as scheduled. Whether a crew can work is found out on site.
DispatchJob 4127 · rescheduleCrew A · Tear-off and underlay
4127 · Fana: the forecast against the work rules
Day
Weather
Rain
Probability
Gust
Roof work
Mon 16 Novplanned
Rain
14.2 mm
85 %
42 km/h
Rain
Tue 17 Nov
Light rain
3.1 mm
65 %
37 km/h
Rain
Wed 18 Nov
Partly cloudy
0.2 mm
20 %
26 km/h
Workable: proposed
Work rulesset by the company
Open-roof work
not when rain probability is 60 % or more
Work at height
not when gusts reach 50 km/h
Membrane welding
not when the day's lowest temperature is under 5 °C
Replacement days
weekdays only, first day that passes every rule
Message to the customerdraft
From
Tindvik Tak · dispatch
To
Sigrun Aasebø
Subject
Your roof work on Mon 16 Nov: new date proposed
Hello Sigrun,
we planned to open your roof on Mon 16 Nov. The forecast for your address that day is rain with 14.2 mm of precipitation and a rain probability of 85 %. We do not remove roofing when rain is likely, because the house would stand open.
The first day that suits the work is Wed 18 Nov: partly cloudy, rain probability 20 %, gusts up to 26 km/h. Crew A would arrive at 07:30.
Reply YES to confirm the new date, or reply with a day that suits you better.
Sent after the dispatcher approved the proposal.
Move to Wed 18 Nov and sendKeep the date
Highlighted values are read from the API response. The data is a sample in the API's real output shape; names and figures are illustrative.
Call
The call behind it
One request with this input produces the 6 records the screen above is drawn from. Prices are the ones on the API page; records that fail or come back empty are not charged.
Input · POST /v2/actors/sfoln~weather-forecast/run-sync-get-dataset-items
Rain probability and gusts are available for the Nordic countries; elsewhere those two fields are null, so base the rules on precipitationSum and windMax there.
The forecast reaches about ten days. Run the check every night: a job nine days out is judged again as its day comes closer.
Send coordinates when you have them. Place names are geocoded to the best match, which can be the wrong village of the same name.
Authentication, the MCP endpoint and the asynchronous variant are on the API page.
More
Other things teams build with it
Delivery and concrete-pour planning that avoids frost and heavy rain
Event organisers who warn ticket holders two days before an outdoor date
Solar and wind maintenance crews that pick calm, dry days for site visits
Travel apps that add a daily forecast to each stop of an itinerary