Git Product home page Git Product logo

umbrella's Introduction

Umbrella

一个PHP的小程序,可以设置定时发送邮件提醒带伞

当前版本:Ver.3,已实现的功能有:多用户,可以控制的推送时间选择,可选雨天单独推送

https://console.heweather.com/ 申请好KEY后

于config.php与user.json内填写合适内容即可享用本脚本

简易使用说明:

1.注册和风天气,获取API

%8OUD6JYIR~NF{)FHBCG3.png

2.将三个文件放于同一目录下,如

/home/umb/

3.编辑config.php

您需要按照实际需求填写

$appname = "Nchyn's带伞提醒";	//应用名称
$link = "http://weather.nchyn.com";	//应用主页
$key = "your KEY";//和风天气KEY,请在api.hweather.com申请
$smtpserver     = "smtp.ym.163.com"; //SMTP服务器
$smtpserverport = 25; //SMTP服务器端口
$smtpusermail   = "[email protected]"; //SMTP服务器的用户邮箱
$smtpuser       = "[email protected]"; //SMTP服务器的用户帐号
$smtppass       = "yourpassword"; //SMTP服务器的用户密码

以上字段,如需调试请将

$smtp->debug = false; 设为 $smtp->debug = true;

如需使用ssl,请将

$smtpserver添加ssl://,

如:$smtpserver = "smtp.ym.163.com";

4.编辑users.json

注意检查

5.运行umbrellaV3.php

您可以部署于WEB服务器或 php /home/umb/umbrellaV3.php 直接运行

亦可设置crontab做定时任务,自V3.1.0后,建议设置为每小时一次的定时任务或自动访问url。

喜欢请star,虽然我知道我只是写了一坨shit

umbrella's People

Contributors

nchyn avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.