/MyWeather

Collects weather data for a given city, and adds it to an excel file as well as sending the collected data to your phone.

Primary LanguagePythonMIT LicenseMIT

 __       __            __       __                        __      __
/  \     /  |          /  |  _  /  |                      /  |    /  |
$$  \   /$$ | __    __ $$ | / \ $$ |  ______    ______   _$$ |_   $$ |____    ______    ______
$$$  \ /$$$ |/  |  /  |$$ |/$  \$$ | /      \  /      \ / $$   |  $$      \  /      \  /      \
$$$$  /$$$$ |$$ |  $$ |$$ /$$$  $$ |/$$$$$$  | $$$$$$  |$$$$$$/   $$$$$$$  |/$$$$$$  |/$$$$$$  |
$$ $$ $$/$$ |$$ |  $$ |$$ $$/$$ $$ |$$    $$ | /    $$ |  $$ | __ $$ |  $$ |$$    $$ |$$ |  $$/ 
$$ |$$$/ $$ |$$ \__$$ |$$$$/  $$$$ |$$$$$$$$/ /$$$$$$$ |  $$ |/  |$$ |  $$ |$$$$$$$$/ $$ |
$$ | $/  $$ |$$    $$ |$$$/    $$$ |$$       |$$    $$ |  $$  $$/ $$ |  $$ |$$       |$$ |
$$/      $$/  $$$$$$$ |$$/      $$/  $$$$$$$/  $$$$$$$/    $$$$/  $$/   $$/  $$$$$$$/ $$/
             /  \__$$ |
             $$    $$/                
              $$$$$$/                 ~ Website : https://gardunos.tech

MyWeather

Number of GitHub Downloads badge

MyWeather is a python script that uses the AccuWeather API to retrieve weather data given a specific zip code.

Features:

  • Collected data is written to an Excel file
  • Forward daily data to personal phone number using Twilio (see below)

Prerequisites:

  • Python (>= 3.5)
  • Have the following python modules installed: xlrd, lxml, pandas, urllib3, requests, openpyxl, xlsxwriter
    • If you don't have them installed the script will install them for you!
  • AccuWeather Developer account (easy)
    1. Visit the AccuWeather Developer portal, & enter necessary information.
    2. Activate your profile using the confirmation link sent to the email address you provided.
    3. Visit the 'My Apps' tab & click on '+ Add a new App'
    4. Give the app a name, and under 'What will you be creating with this API?' select 'Weather App'. Then click 'Create App'
    5. Now click the newly created App to reveal the API Key

Option 1 : Without text-messages

Instructions (without Twilio)

1.) Deploy! - Paste this in your terminal 'python MyWeather.py'
2.) Insert your AccuWeather API Key when prompted to

Option 2 : With text-messages

Prerequisites:

  • Have the twilio python modules installed
    • If you don't have twilio installed the script will install it for you
  • Valid (personal/work) phone number
  • Twilio account + Twilio phone number (see instructions below).
    • Skip to step #4 of instructions if you already have both of these.

Instructions w/ Twilio:

1.) Sign up or log in to Twilio.
2.) After account has been confirmed via email, visit your console to find your API crendentials (under project info).
3.) Obtain a phone number via Twilio (2 methods):

  • Method 1: Trial
  • Method 2: Purchase
    4.) Deploy! - Paste this in your terminal 'python MyWeather.py'
    5.) Insert your AccuWeather API key + Twilio crendentials + Phone Numbers when prompted to