MyRedditKarma
Reddit Karma Counter
Node-RED
AWTRIX 3
About this flow
| System | Node-RED |
|---|---|
| AWTRIX version | AWTRIX 3 |
| Topic | Social |
| Built by | Hong Phuc Vu |
| File | qRWNOlEj5X4w.json · 3.7 KB |
| Icons | 1 |
| Published | 28 Oct 2023 · updated 28 Oct 2023 |
| Downloads | 43 |
Is this your flow?
If you created this flow, open your saved edit link to add it to your account. You can then manage it whenever you sign in. Adding it to your account replaces the edit link.
Flow description
Reddit Karma Counter
qRWNOlEj5X4w.json
[
{
"id": "dde282441d46ad1b",
"type": "group",
"z": "54b42d8d.cda474",
"style": {
"stroke": "#999999",
"stroke-opacity": "1",
"fill": "none",
"fill-opacity": "1",
"label": true,
"label-position": "nw",
"color": "#a4a4a4"
},
"nodes": [
"f443ee22270579d8",
"3ce17def60cebce9",
"868ad65affc9b9c3",
"7fa87bf41d5e6bfb",
"9765b3217adf6d1f"
],
"x": 34,
"y": 1059,
"w": 772,
"h": 122
},
{
"id": "f443ee22270579d8",
"type": "inject",
"z": "54b42d8d.cda474",
"g": "dde282441d46ad1b",
"name": "",
"props": [],
"repeat": "600",
"crontab": "",
"once": true,
"onceDelay": "6",
"topic": "",
"x": 130,
"y": 1140,
"wires": [
[
"9765b3217adf6d1f"
]
]
},
{
"id": "3ce17def60cebce9",
"type": "function",
"z": "54b42d8d.cda474",
"g": "dde282441d46ad1b",
"name": "parser",
"func": "const stats = msg.payload.data;\nconst karma = stats.total_karma;\n\nmsg.payload = { \"text\": karma, \"icon\": \"reddit\" };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 450,
"y": 1140,
"wires": [
[
"868ad65affc9b9c3"
]
]
},
{
"id": "868ad65affc9b9c3",
"type": "mqtt out",
"z": "54b42d8d.cda474",
"g": "dde282441d46ad1b",
"name": "",
"topic": "awtrix/custom/reddit",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "346df2a95aac5785",
"x": 680,
"y": 1140,
"wires": []
},
{
"id": "7fa87bf41d5e6bfb",
"type": "comment",
"z": "54b42d8d.cda474",
"g": "dde282441d46ad1b",
"name": "Redit karma",
"info": "Change your username in the http request node",
"x": 150,
"y": 1100,
"wires": []
},
{
"id": "9765b3217adf6d1f",
"type": "http request",
"z": "54b42d8d.cda474",
"g": "dde282441d46ad1b",
"name": "",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://www.reddit.com/user/hongphuc95/about.json",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [],
"credentials": {},
"x": 290,
"y": 1140,
"wires": [
[
"3ce17def60cebce9"
]
]
},
{
"id": "346df2a95aac5785",
"type": "mqtt-broker",
"name": "",
"broker": "localhost",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]
This flow uses the following icons. Add them to your AWTRIX along with the flow.
8×8 px
Sign in to download these icons or send them to your AWTRIX.
Community
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
Have an idea?
Sign in to ask questions and join the conversation.