Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Any app that can alert me when there is zero wind and rain forecast in the days ahead?

  • 21-10-2024 8:36pm
    #1
    Registered Users, Registered Users 2 Posts: 292 ✭✭


    I want to set my parameters and the app alerts me to basically say "no wind or rain next Saturday."

    Does that exist?



Comments

  • Registered Users, Registered Users 2 Posts: 2,165 ✭✭✭mcburns07


    Wouldn't be very useful in Ireland 🤣



  • Moderators, Politics Moderators Posts: 41,240 Mod ✭✭✭✭Seth Brundle


    Woukd a google alert do this?

    You'd probably need to be more realistic with your parameters. There's pretty much always wind so you'd probably have to say <=5km/h. You'd also have to provide a location and possibly a time window.



  • Registered Users, Registered Users 2 Posts: 292 ✭✭scrotist


    Looks like windy.com can alert me about wind conditions.

    It does rain, bit only an alert for "at least" x mm of rain

    I want "at most" x mm.



  • Registered Users, Registered Users 2 Posts: 23,093 ✭✭✭✭Esel
    Not Your Ornery Onager


    Tumble dryer broken? 😀

    Not your ornery onager



  • Posts: 0 [Deleted User]


    According to ChatGPT, it should be possible to do this with a bit of programming and plugging into an existing API.

    1. Choose a Weather API

    OpenWeatherMap: Offers a free tier with hourly and daily forecasts, including precipitation probabilities.

    WeatherAPI: Also has a free tier with a good amount of data.

    Met Éireann API: Ireland's national meteorological service has some unofficial data available via APIs.

    You’ll need to sign up for an API key with one of these services.

    1. Get the Data

    Use the API to fetch the daily weather forecast for a specific day (e.g., Saturday).

    The data will include key details such as temperature, humidity, and most importantly, precipitation probability.

    Example API call for OpenWeatherMap (using Python):

    import requests

    api_key = "YOUR_API_KEY"
    location = "Dublin,IE" # Use your city or coordinates
    url = f"http://api.openweathermap.org/data/2.5/forecast?q={location}&appid={api_key}&units=metric"

    response = requests.get(url)
    weather_data = response.json()

    1. Check for Rain

    Parse the data and look for rain probabilities for the day of interest.

    Example of checking for no rain on a Saturday:

    for forecast in weather_data['list']:
    if 'Saturday' in forecast['dt_txt']: # Find the day (e.g., Saturday)
    rain_prob = forecast['rain'].get('3h', 0) # Rain in the next 3 hours
    if rain_prob == 0:
    print("No rain expected on Saturday!")
    else:
    print(f"Rain expected with a probability of {rain_prob}%")

    1. Set Up Notifications

    You can send notifications using email (via smtplib) or mobile notifications via a service like Pushover or IFTTT.

    Example of sending an email:

    import smtplib

    def send_email(subject, body):
    server = smtplib.SMTP('smtp.gmail.com', 587)
    server.starttls()
    server.login('your_email@gmail.com', 'your_password')
    message = f"Subject: {subject}\n\n{body}"
    server.sendmail('your_email@gmail.com', 'recipient_email@gmail.com', message)
    server.quit()

    send_email("Weather Alert", "No rain is expected this Saturday!")

    This approach gives you full control over how and when you receive alerts. Would you like more details on any specific part, like the API integration or notification setup?



  • Advertisement
Advertisement