找回密码
 立即注册

微信扫码登录

搜索
查看: 214|回复: 2

[基础教程] 分享一个纯血鸿蒙,系统级无后台消息推送软件Meow

[复制链接]

3

主题

70

回帖

804

积分

高级会员

积分
804
金钱
731
HASS币
0
发表于 3 天前 | 显示全部楼层 |阅读模式
本帖最后由 llgxdnn 于 2025-9-7 01:12 编辑

以前收推送消息都是使用的企业微信,
最近升级鸿蒙5.0后突然发现一款 无后台系统API的消息推送软件
Meow ,系统应用商店可以直接下载
接口API文档:https://www.chuckfang.com/MeoW/api_doc.html
这是一个新兴的消息推送接口服务,发送消息时暂无身份验证。


一、configuration.yaml  配置方法:(2025.9.1版验证通过)请注意代码缩进问题。
notify:
  - platform: rest
    name: MeoW
    resource: https://api.chuckfang.com/xxxx    #将XXX修改为你的昵称
    method: POST_JSON  # 修正方法类型
    headers:
        Content-Type: application/json
    message_param_name: "msg"  # 显式定义消息字段名
    title_param_name: "title"  # 显式定义标题字段名
    target_param_name: "url"   #将target转化为url

----------------------------------------------------------------------------------
二、 NodeRed 配置代码

<b><font color="#ff0000">代码编辑器 缩进有问题,请下载文件</font></b>

[
    {
        "id": "845be78332305d36",
        "type": "tab",
        "label": "流程 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "5aa8b9632fedf479",
        "type": "function",
        "z": "845be78332305d36",
        "name": "设置MeoW消息",
        "func": "msg.url = "https://api.chuckfang.com/XXXX";//替换为自己的昵称,一天之内累计3次输错对方昵称您的IP将被封禁\nmsg.method = 'POST',\nmsg.headers = {\n    "Content-Type": "application/json"\n}\n\nvar message = [8,5,200,130];\nvar zrlr ="100";\nvar desc = '昨日利润:' + zrlr + '元\\n';\ndesc += '----------------------------\\n'\ndesc += '昨天用电量:' + message[0] + '瓦\\n';\ndesc += '昨天电费:' + message[1] + '元\\n';\ndesc += '\\n'\ndesc += '本月已用电量:' + message[2] + '瓦\\n';\ndesc += '本月已用电费:' + message[3] + '元\\n';\n\nmsg.payload={\n        "title": "昨日回顾:",\n        "msg": desc\n    };\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 640,
        "y": 260,
        "wires": [
            [
                "be05c3379e8a0c2b"
            ]
        ]
    },
    {
        "id": "be05c3379e8a0c2b",
        "type": "http request",
        "z": "845be78332305d36",
        "name": "",
        "method": "use",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 820,
        "y": 260,
        "wires": [
            [
                "cf91d4a47dbf2f0c"
            ]
        ]
    },
    {
        "id": "cf91d4a47dbf2f0c",
        "type": "debug",
        "z": "845be78332305d36",
        "name": "debug 13",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 980,
        "y": 260,
        "wires": []
    },
    {
        "id": "f2351b04e52ac053",
        "type": "inject",
        "z": "845be78332305d36",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 450,
        "y": 260,
        "wires": [
            [
                "5aa8b9632fedf479"
            ]
        ]
    }
]


导入文件 flows (Meow).json flows (Meow).zip (1.14 KB, 下载次数: 1)

---------------------------------------------------------
调试请注意:服务器返回信息,一天之内累计3次输错对方昵称您的IP将被封禁。

评分

参与人数 1金钱 +6 收起 理由
xuyang + 6

查看全部评分

回复

使用道具 举报

74

主题

1101

回帖

6887

积分

论坛元老

积分
6887
金钱
5707
HASS币
30
发表于 3 天前 | 显示全部楼层
测试了,完全可用。昵称可在,MeoW的我的-【MeoW昵称/专属链接】中,点击专属链接中获取,不是华为账号昵称中的中文。

现在用了华为手机和鸿蒙5,对于hass来说,最需要解决定位问题,不知有没有变通解决方案?
回复

使用道具 举报

hhh. 手机认证

10

主题

355

回帖

3069

积分

论坛UI达人

积分
3069
金钱
2704
HASS币
0
发表于 3 天前 | 显示全部楼层
xuyang 发表于 2025-9-7 06:59
测试了,完全可用。昵称可在,MeoW的我的-【MeoW昵称/专属链接】中,点击专属链接中获取,不是华为账号昵称 ...

企业微信,有的搞。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-9-10 06:04 , Processed in 0.115325 second(s), 12 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表