获取当天或第二天的天气情况,并发送邮件。
- 早上7点:当天天气
- 晚上8点:明日天气
这里只说一下要添加的Secret,全部流程请参考使用Github Actions来完成有道云笔记每日签到,都是差不多的
City_Id
:城市id。城市id有两种:一种是市级城市,戳我查看 json;一种是县级城市,戳我查看 jsonEmail_Conf
: 发件人邮箱配置。详细请自行查找所用邮箱的第三方客户端配置{ "SmtpServer": "smtp.163.com", "SmtpPort": 994, "SmtpUsername": "[email protected]", "SmtpPassword": "abc", "PopServer": "pop.163.com", "PopPort": 995, "PopUsername": "[email protected]", "PopPassword": "abc" }
From_Address
: 发件人{ "Name": "GG", "Address": "[email protected]" }
To_Address
: 收件人{ "Name": "MM", "Address": "[email protected]" }