Garden Planner — Open-Source AI That Tells You What to Plant This Week
说明与用途
一个30行Python脚本使用Google的Gemma 4模型,为特定城市和月份提供每周种植建议,提供免费、私密、离线的解决方案。
问题
The author needed a free, private, local gardening recommendation tool for Sunwal, Nepal, because existing apps were US-focused, required internet, or cost money.
结果
The script outputs a list of suitable vegetables, herbs, and flowers for the current month and city, including Nepal-specific crops.
工作流
- 1. Obtain a free API key from Google AI Studio.
- 2. Write a 30‑line Python script using the requests library.
- 3. Call the Gemma 4 model via the Gemini API with a prompt requesting five bullet points.
- 4. Receive and display the planting recommendations.
证据
A simple Garden Planner that tells users what vegetables, herbs, and flowers to plant this week based on their city and current month.
Got a free API key from Google AI Studio
Wrote a 30-line Python script using requests
Called Gemma 4 via the Gemini API
Free — no cost to run, no paid API tier
- 记录日期: 2026-10-11T17:56:04.512Z