search
Homeheadlines[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

How much does the romance of programmers make you happy? This tutorial can help friends who don’t understand programming get started quickly. Considering that it costs money to build a server to perform scheduled tasks, the editor thought that this function can be used for free using Github Actions without spending a penny.

Without further ado, let’s get straight to the pictures and text. The girlfriend’s exclusive public account has a good morning push, which can automatically push weather conditions and reminder information every day, and can also remind her to bring an umbrella on rainy days.

1. First, you need to apply for a WeChat public platform test account

Application address: https://mp.weixin. qq.com/debug/cgi-bin/sandbox?t=sandbox/login

Click to log in and scan the WeChat code to log in.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

# After successfully logging in, you will get a test account and the appID and appsecret of the test account, as shown below.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

Continue to scroll down the current page and ask your girlfriend or boyfriend to scan the QR code to follow the test account. Then his nickname and USER_ID will appear in the user list, as follows picture.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

Then click [Add Test Template]

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

Sample template:

Today’s weather: {{ weather.DATA }}

Humidity: {{ humidity.DATA }}

Current temperature: {{ temperature.DATA }}

We are already in love{{ love_days.DATA }} Oh my god

There are still days left until your birthday: {{ birthday_left.DATA }} days

{{ words.DATA }}

After submission You can get the unique template ID, as shown below.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

2. Prepare github Action scheduled tasks

Open github and find 13812851221/-rxrw-daily_morning this The repository then forks into its own repository.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

##Go back to your warehouse, set the variables, and create the red circled string on the WeChat public platform to GitHub according to the instructions -> Settings -> Secrets -> Actions.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

Click 3 in the picture above to create a behavior variable.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

Repeat the above operation and add the following behavioral variables in order, no one is missing, and the format cannot be wrong.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

3. Enable Action under your own project!

Click Actions

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.##The above error message is intentional by the editor LOL, 41004 is appsecret missing error, as follows Just remove the image and add it again.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.#Then run the workflow again, as shown below.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.Wait for 2s, as shown in the picture above, it means success.

Check to see if your girlfriend’s phone has received the push notification! This scheduled task is pushed every morning at 9 o'clock. If you can program, you can customize some things by yourself~

[Super simple in 5 minutes~Latest version] WeChat public account + Github free morning scheduled push with weather, anniversaries, birthdays, scheduled push, etc.

The above operations, except for the different English strings, templates The Chinese in the message is different, and everything else should be the same, otherwise the program will not work~

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),