Weather and Market-Price Advisory — When to Plant, When to Sell, Without Guessing
How combining a free weather API with current market prices gives you actionable timing advice for planting, irrigating, and selling. Software only, no hardw...
Weather and Market-Price Advisory — When to Plant, When to Sell, Without Guessing
The two biggest decisions on most Kenyan farms — when to plant and when to sell — are still made by feel, neighbour conversations, and the radio. This is the use case where IoT pivots from sensors-on-the-farm to data-from-the-world. No hardware. Just a software layer that pulls together what is already public and turns it into a clear "do this now" recommendation.
This post covers what kind of advisory is realistic, where the data comes from, and the specific decisions it can sharpen.
What this is, and what it is not
This is not the AI predicting that "it will rain at 3pm tomorrow at your specific farm." Weather forecasting is best-effort science. The AI works with the same forecasts that everyone has, but it combines them with your farm context to make decisions that are useful.
For example: "It will not rain in the next 5 days according to the forecast. Your sukuma wiki is at the moisture floor. Today's wholesale price at City Market is KES 35/kg, which is 20% above the 30-day average. Recommendation: harvest and sell tomorrow."
That is a useful answer. It is not a prediction; it is an inference from public data combined with what you know about your farm.
The data sources
| Data | Source | Cost | Update frequency |
|---|---|---|---|
| Weather forecast (rain, temp, wind) | Open-Meteo API, OpenWeatherMap | Free for basic use | Hourly to daily |
| Soil moisture history | Your own sensors (if installed) | One-time hardware | Continuous |
| Wholesale market prices | KAMIS website, NAFIS, Twiga Foods, county agricultural office postings | Free | Daily |
| Farm-gate buyer prices | Your direct buyer relationships | Free | Per call |
| Crop calendar | Built into the AI's knowledge | Free | Once |
| Pest and disease alerts | Local extension service postings | Free | Weekly to monthly |
Most of this is publicly available. The AI's job is to read it daily, compare it with your farm record, and surface the decisions that matter.
Planting decisions
The most valuable advisory for crop farmers is the planting window. Get this wrong and you can lose half a season.
A useful prompt to the AI:
<blockquote> "Long rains forecast for my area in Embu shows 35mm cumulative in the next 10 days and continuing pattern. Last year my maize planted in week of March 12 underperformed because of late rain start. What planting window do you recommend this season?"
</blockquote> A useful answer includes:
- Confirmation that long rains are forecast to start within the recommended window
- A specific recommendation (e.g. "plant in the second week, not the first, to align with sustained rains")
- A backup plan if rains delay (e.g. "if no significant rain by day X, wait another week")
- An honest uncertainty range — forecasts more than 7 days out are unreliable This kind of decision used to mean phone calls to the agricultural officer, neighbours' opinions, and a guess. The AI assembles the inputs in one minute.
Irrigation timing decisions
Even without soil sensors, you can ask:
<blockquote> "Forecast for my farm in Naivasha shows 15mm of rain tomorrow afternoon. My capsicums are in flowering stage. Should I irrigate today as scheduled?"
</blockquote> The answer: probably skip today, irrigate the day after tomorrow only if the rain disappoints.
This combines forecast with crop knowledge to save water and labour. Save it across 50 irrigation decisions a year and you save a meaningful amount of both.
Selling decisions
Market prices for fresh produce in Kenya can swing 30–60% within a week. Knowing whether today is above or below the trailing average is critical.
A useful advisory:
<blockquote> "Capsicum wholesale at Wakulima Market today: KES 95/kg. 30-day average: KES 78/kg. Trend: rising 3 days in a row. Your standing crop estimated 200kg ready. Recommend: harvest within 2 days while prices are elevated."
</blockquote> The AI surfaces:
- Today's price versus baseline
- Recent trend (rising, flat, falling)
- Recommendation based on your standing crop Same logic for milk (when contracts allow flexibility), eggs, pork, and any other product you sell.
Pre-sowing variety selection
Before each season, an advisory can compare:
- The seasonal forecast (will this be a long-rains or short-rains season; is El Niño expected; etc.)
- Your local soil
- Last season's prices and the trend
- Available seed varieties And recommend: "given forecast for a drier-than-average long rains in your area, consider drought-tolerant maize variety H513 over the longer-season H626 you usually plant."
Even broad recommendations like this are valuable when made systematically every season.
Cost — software only
| Cost | Amount |
|---|---|
| Hardware | KES 0 |
| Weather API | Free for typical farm use (Open-Meteo, OpenWeatherMap free tier) |
| Market price data | Free from KAMIS / county websites |
| AI calls | KES 5–50 per month at typical query volume |
A complete weather-and-market advisory layer costs almost nothing to run.
Practical workflow
Daily check (2 minutes)
- Open your dashboard each morning
- Read the day's advisory: weather, today's prices, any recommendations
- Decide on irrigation, harvest, and market actions
Weekly review (10 minutes)
- Look at the 7-day forecast and price trends
- Plan the next week's labour around the forecast
- Adjust your sowing plan if forecast has shifted
Seasonal planning (30 minutes once a quarter)
- Review seasonal forecast and last quarter's prices
- Decide variety mix, planting calendar, sales channel for the next quarter The discipline is more valuable than the precision. Even a generic forecast applied consistently outperforms intuition applied selectively.
Limits to be honest about
- 5+ day forecasts are unreliable. Trust the 24–72 hour window; treat anything beyond as a guide, not a plan.
- Market price reports are 1–3 days old by the time they reach KAMIS. Today's actual price at your local market may differ.
- Forecasts can be wrong by a county. Embu and Meru can have opposite weather on the same day. Verify the AI is using your specific location.
- Cannot predict price spikes from sudden events. A processor strike, a road closure, or a transport rate change can move prices in a day in ways no historical data anticipates. This advisory layer is best used as a default decision when you have no stronger local information. When a trusted local buyer tells you tomorrow's price will be higher, trust them over the model.
Steps to set up
- Pick a free weather API (Open-Meteo is easy to use).
- Bookmark KAMIS or your county's market-information page.
- Set up a daily morning summary via your dashboard or WhatsApp.
- For the first month, compare the AI's recommendations against your usual judgement before acting on them — calibrate trust.
- Add specific queries (planting, harvest, irrigation) as you face decisions. Time: one evening to set up the advisory channel; daily 2-minute habit.
What to do next
This is the use case to layer on top of every other one in this series. The soil sensor tells you what is happening in the ground. The forecast tells you what is coming from the sky. The market tells you what the world is offering for your produce. The AI puts the three together and tells you what to do today.
If you record your actual planting dates, yields, and prices at shira.farm, each season's data refines the advisory — so by year three the recommendations are calibrated specifically to your farm and your local market.