Build Voice Weather Forecast in 10min (No Coding Required)
by KimY21 in Circuits > Raspberry Pi
103 Views, 0 Favorites, 0 Comments
Build Voice Weather Forecast in 10min (No Coding Required)


Introduction
Building voice weather forecast systems traditionally requires complex programming: managing sensor data, weather API integration, extracting specific data from the API responses, text-to-speech synthesis, and audio output handling. What if you could just think "Tell me today's weather when I'm leaving home during morning hours" and arrange visual blocks to make it happen?
This tutorial shows how Grablo transforms complex weather system development into simple visual logic. We'll build a daily voice weather forecast system in 10 minutes using drag-and-drop blocks instead of code.
What You'll Build
A complete daily voice weather forecast system featuring:
- Motion-triggered weather forecast during morning hours (6-8 AM)
- Real-time weather data from WeatherAPI.com
- Natural voice synthesis
- Weekday-only operation
- Visual dashboard displaying weather information
- Audio output through Bluetooth speaker
Supplies

Required Components
- Raspberry Pi (or BeagleBone, Jetson Nano, PC with USB-GPIO such as FT232H)
- PIR Motion Sensor (HC-SR501)
- Bluetooth Speaker or regular speakers/headphones
- Jumper wires
Wiring
- PIR Sensor VCC → Raspberry Pi 5V
- PIR Sensor GND → Raspberry Pi GND
- PIR Sensor OUT → Raspberry Pi GPIO 23
Quick Start
- Install software: Download and install Grablo software on your controller hardware
- Set up hardware: Wire PIR sensor according to circuit diagram
- Get this project: Project Link
- Configure API: Replace the API key, location, and language in the "Get Weather" block URL with your own
- Connect controller: In your project, go to "Connect Controller" and enter IP address
- Hit RUN: Never forget your umbrella again!
💡 Want to build it yourself? Skip to Step 2 and follow the tutorial
Create Project
- Go to https://app.grablo.co
- Click "Create Project"
- Give your project a name
Control1 - Motion Detection

Create a new logic and control that continuously monitors for human motion
- Condition (Always): Always running
- Action (I/O Device Control): Read PIR sensor data from GPIO pin and store motion detection status in variable
Control2 - Voice Weather Forecast

Create a new control that tells you weather when motion is detected during morning hours on weekdays
- Condition1 (Compare): Motion detected (rising edge)
- Condition2 (Time Range): 6:00 AM to 8:00 AM
- Condition3 (Schedule): Monday through Friday only
- Action1 (HTTP Communication): HTTP request to WeatherAPI.com with your API key and location
- Action2 (Custom Action): Parse JSON response and extract
- Weather condition text
- Minimum temperature
- Maximum temperature
- Rain probability percentage
- Action3 (Text-To-Speech): Text-to-speech synthesis with natural weather briefing
Weather API Setup:
- Sign up for free account at weatherapi.com
- Get your API key
- Format URL: https://api.weatherapi.com/v1/forecast.json?key=YOUR_API_KEY&q=YOUR_CITY&days=1&lang=YOUR_LANGUAGE
JSON Data Extraction:
Extract data using these paths from API response:
- Condition Text: /forecast/forecastday/0/day/condition/text
- Min Temp: /forecast/forecastday/0/day/mintemp_c
- Max Temp: /forecast/forecastday/0/day/maxtemp_c
- Rain Chance: /forecast/forecastday/0/day/daily_chance_of_rain
Create Dashboard

Create a new dashboard with 4 widgets displaying:
- Current weather condition
- Minimum temperature
- Maximum temperature
- Rain probability
This provides visual weather information alongside the audio announcements.
Launch Your Project
That's It - You're Done!
Congratulations! You've just built a complete daily voice weather forecast system using only 2 simple controls and zero lines of code. This is the power of visual programming with Grablo - what traditionally requires complex programming is now accomplished with intuitive drag-and-drop blocks.
Run Your Project:
- Install software: Download and install Grablo software on your controller hardware
- Set up hardware: Wire PIR sensor according to circuit diagram
- Configure API: Replace the API key, location, and language in the "Get Weather" block URL with your own
- Connect controller: In your project, go to "Connect Controller" and enter IP address
- Hit RUN: Never forget your umbrella again!
Video Tutorial

Watch the complete build process in action! This 8-minute video demonstrates every step from sensor setup to API configuration and launching your daily voice weather forecast system.
What's Next?
Expand Your Project
Add more functionality with additional blocks:
- Multi-language support: Change TTS language settings for international users
- Extended weather info: Add UV index, humidity, and wind speed information
- Weekend mode: Different forecast schedule for weekends
- Visual alerts: Add LED indicators that change color based on weather conditions
- Smart home integration: Trigger other devices based on weather (e.g., close smart blinds when rain detected)
Troubleshooting
- No audio: Check Bluetooth speaker connection and audio output settings
- False motion triggers: Adjust PIR sensor sensitivity or positioning
- No weather data: Verify API request format, valid API key, internet connection
- Wrong timing: Check system time zone settings on Raspberry Pi
- GPIO errors: Confirm PIR sensor connections and voltage compatibility
Resources
- Official Website: https://grablo.co
- Get started: https://app.grablo.co
- Documentation: https://doc.grablo.co
- Support: support@grablo.co
- WeatherAPI: https://www.weatherapi.com