Created
May 25, 2020 10:52
-
-
Save blackfyre/5906514237ea4d60bf4433da3a9eb534 to your computer and use it in GitHub Desktop.
NodeRed szöszenetek
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "df59c7a2.a36388", | |
"type": "tab", | |
"label": "Webshop Tétel állapot figyelés", | |
"disabled": false, | |
"info": "# WebShop tétel figyelés\n\nSokszor belefutunk abba a problémába, hogy van egy webshop, nem lehet előrendelést rögzíteni és készletfigyelésre sincs lehetőség.\n\nIlyen esetekben szolgálhat alapul ez a kis szösszenet. Persze webshoponként változik, hogy mit kell megtalálni és azt hogyan kell kezelni, de a lépések nagyjából ezek lesznek minden esetben." | |
}, | |
{ | |
"id": "e5336e75.beed6", | |
"type": "inject", | |
"z": "df59c7a2.a36388", | |
"name": "(Ön)Indító", | |
"topic": "", | |
"payload": "", | |
"payloadType": "date", | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 340, | |
"y": 140, | |
"wires": [ | |
[ | |
"a127970f.aec778" | |
] | |
] | |
}, | |
{ | |
"id": "a127970f.aec778", | |
"type": "http request", | |
"z": "df59c7a2.a36388", | |
"name": "Webshop Oldal letöltése", | |
"method": "GET", | |
"ret": "txt", | |
"paytoqs": false, | |
"url": "https://www.megyeriszabolcskerteszete.hu/prunus_laurocerasus_klari_babermeggy", | |
"tls": "", | |
"persist": false, | |
"proxy": "", | |
"authType": "", | |
"x": 390, | |
"y": 200, | |
"wires": [ | |
[ | |
"dde054d7.748df8" | |
] | |
] | |
}, | |
{ | |
"id": "df29bff.b327d4", | |
"type": "debug", | |
"z": "df59c7a2.a36388", | |
"name": "DEBUG", | |
"active": true, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, | |
"complete": "payload", | |
"targetType": "msg", | |
"x": 660, | |
"y": 380, | |
"wires": [] | |
}, | |
{ | |
"id": "dde054d7.748df8", | |
"type": "html", | |
"z": "df59c7a2.a36388", | |
"name": "Tétel állapot kinyerés", | |
"property": "payload", | |
"outproperty": "payload", | |
"tag": "a[data-product-sku=\"116-2327-K1-30/40-(sz)\"]", | |
"ret": "attr", | |
"as": "multi", | |
"x": 380, | |
"y": 260, | |
"wires": [ | |
[ | |
"bada36b0.e73768" | |
] | |
] | |
}, | |
{ | |
"id": "bada36b0.e73768", | |
"type": "function", | |
"z": "df59c7a2.a36388", | |
"name": "Állapot kiértékelés", | |
"func": "msg.payload.result = msg.payload.class.includes('button-disabled');\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 370, | |
"y": 320, | |
"wires": [ | |
[ | |
"81d9c554.ecd3c8" | |
] | |
] | |
}, | |
{ | |
"id": "81d9c554.ecd3c8", | |
"type": "switch", | |
"z": "df59c7a2.a36388", | |
"name": "Állapot szűrés továbbításhoz", | |
"property": "payload.result", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "false" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 1, | |
"x": 400, | |
"y": 380, | |
"wires": [ | |
[ | |
"df29bff.b327d4" | |
] | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment