<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"
]
]
}
]