Flow Details
Trigger this node as rarely as possible! (e.g. every 2 hours)
Change your username in the http request node url.
[
{
"id": "7faad66433e97046",
"type": "group",
"z": "54b42d8d.cda474",
"name": "",
"style": {
"label": true
},
"nodes": [
"4ee1002a10305a04",
"f03fbb1f48d12023",
"0700dec650b9cbba",
"44d22979b7cbc2ab",
"5e09b59f1787dce0"
],
"x": 974,
"y": 519,
"w": 772,
"h": 122
},
{
"id": "4ee1002a10305a04",
"type": "inject",
"z": "54b42d8d.cda474",
"g": "7faad66433e97046",
"name": "",
"props": [],
"repeat": "43200",
"crontab": "",
"once": false,
"onceDelay": "2",
"topic": "",
"x": 1070,
"y": 600,
"wires": [
[
"f03fbb1f48d12023"
]
]
},
{
"id": "f03fbb1f48d12023",
"type": "http request",
"z": "54b42d8d.cda474",
"g": "7faad66433e97046",
"name": "",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://i.instagram.com/api/v1/users/web_profile_info/?username=blueforcer",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [
{
"keyType": "other",
"keyValue": "user-agent",
"valueType": "other",
"valueValue": "Instagram 76.0.0.15.395 Android (24/7.0; 640dpi; 1440x2560; samsung; SM-G930F; herolte; samsungexynos8890; en_US; 138226743)"
}
],
"x": 1230,
"y": 600,
"wires": [
[
"0700dec650b9cbba"
]
]
},
{
"id": "0700dec650b9cbba",
"type": "function",
"z": "54b42d8d.cda474",
"g": "7faad66433e97046",
"name": "parser",
"func": " msg.payload = {\n \"text\": String(msg.payload.data.user.edge_followed_by.count), \"icon\": \"instagram\"};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1390,
"y": 600,
"wires": [
[
"44d22979b7cbc2ab"
]
]
},
{
"id": "44d22979b7cbc2ab",
"type": "mqtt out",
"z": "54b42d8d.cda474",
"g": "7faad66433e97046",
"name": "",
"topic": "awtrix/custom/instagram",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "346df2a95aac5785",
"x": 1610,
"y": 600,
"wires": []
},
{
"id": "5e09b59f1787dce0",
"type": "comment",
"z": "54b42d8d.cda474",
"g": "7faad66433e97046",
"name": "Instagram",
"info": "ATTENTION:\nTrigger this node as rarely as possible!\nChange your username in the http request node URL",
"x": 1080,
"y": 560,
"wires": []
},
{
"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": ""
}
]
-- Flow first published on May 6, 2023, last updated on May 10, 2023 at 08:04.