I lived in Taiwan for year to learn Chinese. Due to not having access to a drying machine, hanging my clothes outside a part of my routine. However, the region's humid climate and frequent rain showers occasionally left me with damp clothing.
Dryclo leverages the OpenWeatherMap API to retrieve weather information and then sends a text message using the Twilio service to notify the user about the weather conditions, with a specific focus on rain. It extracts key weather details, including weather type, description, temperature, humidity, wind speed, and rain depth. If rain is detected, it informs the user, advising actions like bringing in clothes if necessary. If no rain is indicated, it sends a message stating that it's not raining and provides general weather information. The program is designed to assist users in making weather-informed decisions for their day.
To automate the execution of the weather notification program and send text messages every day, I used the crontab job scheduler in a Bash script following these steps:
Use the crontab command to edit crontab file. Open crontab configuration by running:
crontab -e
To run Bash script daily, I added the following line to my crontab file. This example schedules the job to run at 8:00 AM every day.
0 8 * * * /path/to/dry_clothes_bot/main.py
My Dryclo project is licensed under the MIT License Copyright (c) 2023.
See the LICENSE for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.
All trademarks referenced herein are property of their respective holders.