This project demonstrates how Grablo can transform complex voice weather forecast system development into simple, intuitive building. We're creating a smart daily voice weather forecast system that automatically tells you weather conditions when you're leaving home during morning hours.
Why did we decide to make it?Building voice weather forecast system 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. With Grablo, you simply think "Tell me today's weather when I'm leaving home during morning hours" and arrange visual blocks to make it happen.
What You'll BuildA complete daily voice weather forecast system featuring:
- Motion-triggered daily weather forecast during morning hours (6-8 AM)
- Real-time weather data from WeatherAPI.com
- Natural voice synthesis with weather briefing
- Weekday-only operation (Monday-Friday)
- Visual dashboard displaying weather information
- Audio output through Bluetooth speaker
See Demo
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 Build Process and follow the detailed tutorial
Build ProcessLogicControl 1: Continuous Motion Monitoring
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
Control 2: Voice Weather Forecast
Create a new control that tells you today's 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 a new dashboard with 4 widgets displaying:
- Weather Condition Widget: Current weather text
- Min Temperature Widget: Daily minimum temperature
- Max Temperature Widget: Daily maximum temperature
- Rain Probability Widget: Chance of rain percentage
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.
Expected ResultsWhen you run your project:
- Motion detection during 6-8 AM on weekdays triggers weather forecast
- Natural voice announces current conditions, temperature range, and rain probability
- Dashboard displays real-time weather information
- System remains silent on weekends and outside morning hours
- Never forget your umbrella again!
Watch the complete 8-minute build process
What's Next?Expand your project using more 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 (close smart blinds when rain detected)
- 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
- Official Website:https://grablo.co
- Web Application:https://app.grablo.co
- Documentation:https://doc.grablo.co
- WeatherAPI:https://www.weatherapi.com
- Support Email:support@grablo.co
Comments