WeatherCalendar:将降水从“开放天气地图”添加到Google日历

  • X2_398428
    了解作者
  • 5.7KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-12 02:29
    上传日期
天气日历 我希望IFTTT的If this (rain/snow) than that (add Google Calendar event)更具可定制性。 我的版本提供了降水的类型(例如雷雨,小雨,下雪等),降水量(以毫米为单位)和当天的温度。 它作为全天活动添加到Google日历中,能够在预计下雨超过5毫米时向用户发送推送通知。 目录 建于 在这些Python模块的帮助下, : 当前功能 调用OpenWeatherMap API 提取未来7天与降水有关的天气预报 将降雨信息作为全天活动添加到Google日历 信息包括: 降水类型(例如雷雨,小雨,大雪等) 预期降水量(以毫米为单位) 如果降水量大于5mm,请在前一天晚上发送通知 当天的最高和最低(以°C为单位) 整天感觉像温度(以°C为单位) 当它运行时,它将检查是否已经有天气事件并进行更新(包括天气以添加或删除前一天
WeatherCalendar-master.zip
  • WeatherCalendar-master
  • precipitation.py
    8.2KB
  • extreme_temps.py
    160B
  • LICENSE
    1KB
  • weather_cal.py
    222B
  • README.md
    2.2KB
  • .gitignore
    17B
内容介绍
# Weather Calendar I wanted a more customizable option to what IFTTT's version of `If this (rain/snow) than that (add Google Calendar event)`. My version provides type of precipitation (e.g. Thunder, Light Rain, Snow, etc), precipitation amount (in mm) and temperature for the day. It is added as an all-day event to Google Calendar with the ability to send a push notification to the user when rain is expected to be more than 5mm. ## Table of Contents - [Built With](#Built-With) - [Current Features](#Current-Features) - [Future Goals](#Future-Goals) - [License](#License) - [Donations (Optional)](#Donations-(Optional)) ## Built With - [Python 3.8](python.org) with the help these Python modules: - [Open Weather Map API](openweathermap.org/) - [Google Calendar API](developers.google.com/calendar) ## Current Features - Calls the OpenWeatherMap api - Pulls the weather forecast related to precipitation for the next 7 days - Adds precipitation information as a full day event to Google Calendar - Information included: - Type of precipitation (e.g. Thunder, Light Rain, Snow, etc) - How much precipitation expected (in mm) - If precipitation is greater than 5mm, send a notification the night before - Forecasted High and Low (in °C) for the day - Feels like temperature (in °C) for the entire day - When it runs, it will check if there is already a weather event and update it (including weather to add or remove a notification for the night before). - If a forecasted day for precipitation no longer has precipitation, it will delete the event. - Probability of precipitation ## Future Goals: - Add weather alerts/advisories ## License Distributed under the MIT License. See `LICENSE` for more information. ## Donations (Optional) Ko-fi is basically a virtual tip jar where you can support creatives for about the price of a cup of coffee. At this time, I'm not very active on Ko-fi nor do I offer any rewards. If you love my work and feel like supporting me, hit the button below to get started. Tipping is optional but I will appreciate any amount you choose to donate. Thank you (´• ω •`) ♡ ! [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/I2I77G74)
评论
    相关推荐
    • Python
      Python Boto3代码
    • Python
      python程序
    • Python
      Python
    • python
      Python,就在这里。
    • Python
      Python-
    • Python
      完整的python 其中包含用于学习python的代码,注释和微型项目。
    • Python
      项目Python
    • Python
      Pythonpython3中使用乌龟库的简单pong游戏 贡献 拉请求是欢迎的! :) 执照
    • Python
      Python Dit是Mijn储存库van Python
    • python
      Python 基本的python编程