Automated Push Notifications with IFTTT
Preface
I previously published an article about RSS subscriptions for the school’s official website. With an RSS subscription URL, we can push RSS updates to our “RSS client” to read newly updated articles on the website. When I wrote that article, I only knew how to set up update notifications for the school’s official website on my own “RssBot” on Telegram. I couldn’t push them directly to WeChat, so now I’m writing an article that can achieve pushing to WeChat.

Getting the RSS Subscription URL
💡 First, we need to be clear that not every website provides RSS subscriptions. Only some websites provide RSS. For websites without RSS subscriptions, you can only create the feed yourself or find an RSS feed created by others. Here I recommend a feed-sharing website: RssHub Author: DIYgod
I will use our school’s subscription as a demonstration:
1. 在RssHub中中找到我们学校的订阅地址: #路径:路由-大学通知-浙江工业大学
https://docs.rsshub.app/university.html#zhe-jiang-gong-ye-da-xue
2.根据需要修改参数,这里我们需要公告栏(板块ID:1)的通知更新,因此我们的订阅链接为:
https://rsshub.app/zjut/1
#如果需要每周会议的RSS订阅地址,那么将1改成2,即:https://rsshub.app/zjut/2The first step is complete. The RSS feed URL we obtained is: https://rsshub.app/zjut/1
Push School Notification Updates to Email
- Open the IFTTT website and register an account. (You can log in with a Google account in one click)
- Click Create in the upper right corner to create a project.
IFTTT is the abbreviation of “if this then that.” Simply put, it means if this happens, then that happens. If this operation is completed, it will automatically complete that operation. For example: a teacup is placed under a water dispenser, and the water dispenser detects the teacup — this is this. The water flows down by itself and fills the teacup. This is that. If a teacup is detected, the water dispenser releases water.

- What we want to achieve today is: If a notification update is detected on ZJUT’s official website, then send us the title and content of this new notification by email.
- Click this and find RSS Feed.

- Select New feed item, enter https://rsshub.app/zjut/1 in Feed URL, and click Create trigger. This completes the this operation.

- Similarly, search for email in that, then bind your own email according to the prompts. Future official website notifications will be sent to this email.
- No need to modify anything here. Just click Create action, then Finish.

💡 This implements pushing official website notification updates to your email. Due to website-related reasons, there may be a delay of more than ten minutes, so please understand.
Push to WeChat
Pushing to WeChat is slightly more difficult. If you want to configure it yourself, you can continue reading. If you don’t want to configure it yourself, you can scan the QR code below to follow the official account and receive update notifications from the school’s official website. Notifications from college websites will be added later.

Pushing RSS updates to WeChat uses WxPusher and IFTTT. The function is implemented together with Webhook.
WxPusher (WeChat push service) is a real-time information push platform that uses a WeChat official account as the channel. You can push information to WeChat by calling the API, without installing any additional software, enabling real-time information notifications. You can use WxPusher for server alarm notifications, course enrollment notifications, ticket-snatching notifications, information update reminders, and more.
1. Click the address, scan with WeChat to follow, and log in to the WxPusher backend
2. First create an application, and remember to save the APP_TOKEN.


APP_TOKEN:AT_iFym3l0dClijYPJk16AMjcjfPcazj8Ne
#每个人获取到的APP_TOKEN都不一样,请勿复制我的3. Create a topic.

Remember the topic ID you just created.

4. Click Follow. A QR code will appear. Scan the QR code with WeChat to follow the topic.

5. Test whether the function works properly through the GET interface.
- The
GETinterface is a simplified version of thePOSTinterface. It is mainly for convenient calls in certain situations and only supports sending text (contentType=1). Example:
http://wxpusher.zjiecode.com/api/send/message/?appToken=AT_iFym3l0dClijYPJk16AMjcjfPcazj8Ne&content=Zero测试&topicId=608&url=https://example.com
请求参数:appToken、uid、topicId、content、url ,其中 content 和 url 请进行
urlEncode 编码。appToken:AT_iFym3l0dClijYPJk16AMjcjfPcazj8Ne topicId:608 #即主题IDModify the address above according to your appToken and topicId. Fill in the push content after Content=, and if url is not needed, you can choose to delete &url=https://example.com.
After modification, paste the address into the browser address bar.

If it fails, there will also be a prompt indicating where the error is. Just modify it according to the prompt. At this point, if nothing goes wrong, your WeChat should receive the message you just sent.

At this point, the WxPusher section is configured.
6. Create a new IFTTT project. For the this part, still choose RSS. For details, please refer to the section on pushing from IFTTT to email.

For the that part, select Webhooks and configure it as shown in the image.

http://wxpusher.zjiecode.com/api/send/message #URL POST #Method application/json
#Content TypeModify the Body section according to your actual situation and parameters. For complete parameters, click to view: Complete POST Usage
This is how I configured it:
{
"appToken": "AT_iFym3l0dClijYPJk16AMjcjfPcazj8Ne",
"content": "浙江工业大学: {{EntryTitle}}",
"contentType": 1,
"topicIds": [608],
"url": "{{EntryUrl}}"
}Two parameters are used here: {{EntryTitle}} and {{EntryUrl}}. Through these two parameters, IFTTT can obtain the title and link of the new notification from RSS, ultimately enabling push notifications of school official website updates to WeChat.
Through IFTTT as the medium, we can not only push RSS updates to WeChat, but also push notifications to DingTalk and a series of other software that provides Webhook functionality.