From b9cfe454d77a69581d67139c1565f531a2e3c712 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sat, 1 Apr 2023 12:07:06 +0000 Subject: [PATCH] updated watch templates with expect/disable/notify --- web/watchTemplates/Amazon.json | 307 ++++++++++++++++----------- web/watchTemplates/Ebay.json | 348 +++++++++++++++++++------------ web/watchTemplates/Etsy.json | 348 +++++++++++++++++++------------ web/watchTemplates/NewEgg.json | 348 +++++++++++++++++++------------ web/watchTemplates/Tweakers.json | 257 ++++++++++++++++------- 5 files changed, 1001 insertions(+), 607 deletions(-) diff --git a/web/watchTemplates/Amazon.json b/web/watchTemplates/Amazon.json index fdd8be4..44b9c71 100644 --- a/web/watchTemplates/Amazon.json +++ b/web/watchTemplates/Amazon.json @@ -1,120 +1,189 @@ -{ - "filters": [ - { - "filter_id": 1, - "filter_watch_id": 1, - "filter_name": "Fetch", - "x": 144, - "y": 242, - "filter_type": "brow", - "var1": "gurl", - "var2": "-", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 2, - "filter_watch_id": 1, - "filter_name": "XPath", - "x": 362, - "y": 245, - "filter_type": "xpath", - "var1": "//div[@id='corePrice_feature_div']//span[@class='a-price-whole']", - "var2": "inner", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 3, - "filter_watch_id": 1, - "filter_name": "Sanitize", - "x": 584, - "y": 244, - "filter_type": "match", - "var1": "[0-9]+", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 4, - "filter_watch_id": 1, - "filter_name": "Price", - "x": 815, - "y": 245, - "filter_type": "store", - "var1": "", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 5, - "filter_watch_id": 1, - "filter_name": "Diff", - "x": 813, - "y": 379, - "filter_type": "condition", - "var1": "diff", - "var2": "Price", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 6, - "filter_watch_id": 1, - "filter_name": "Schedule", - "x": 104, - "y": 70, - "filter_type": "cron", - "var1": "@every 30m", - "var2": "no", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - } - ], - "connections": [ - { - "filter_connection_id": 1, - "connection_watch_id": 1, - "filter_output_id": 1, - "filter_input_id": 2 - }, - { - "filter_connection_id": 2, - "connection_watch_id": 1, - "filter_output_id": 2, - "filter_input_id": 3 - }, - { - "filter_connection_id": 3, - "connection_watch_id": 1, - "filter_output_id": 3, - "filter_input_id": 4 - }, - { - "filter_connection_id": 4, - "connection_watch_id": 1, - "filter_output_id": 4, - "filter_input_id": 5 - }, - { - "filter_connection_id": 5, - "connection_watch_id": 1, - "filter_output_id": 6, - "filter_input_id": 1 - } - ] +{ + "filters": [ + { + "filter_id": 80, + "filter_watch_id": 2, + "filter_name": "Fetch", + "x": 144, + "y": 242, + "filter_type": "gurl", + "var1": "-", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 81, + "filter_watch_id": 2, + "filter_name": "XPath", + "x": 362, + "y": 245, + "filter_type": "xpath", + "var1": "//div[@id='corePrice_feature_div']//span[@class='a-price-whole']", + "var2": "inner", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 82, + "filter_watch_id": 2, + "filter_name": "Sanitize", + "x": 584, + "y": 244, + "filter_type": "match", + "var1": "[0-9]+", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 83, + "filter_watch_id": 2, + "filter_name": "Price", + "x": 815, + "y": 245, + "filter_type": "store", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 84, + "filter_watch_id": 2, + "filter_name": "Diff", + "x": 813, + "y": 379, + "filter_type": "condition", + "var1": "diff", + "var2": "Price", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 85, + "filter_watch_id": 2, + "filter_name": "Schedule", + "x": 104, + "y": 70, + "filter_type": "cron", + "var1": "@every 30m", + "var2": "no", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 86, + "filter_watch_id": 2, + "filter_name": "Expect", + "x": 540, + "y": 557, + "filter_type": "expect", + "var1": "2", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 87, + "filter_watch_id": 2, + "filter_name": "Disable", + "x": 735, + "y": 557, + "filter_type": "disable", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 88, + "filter_watch_id": 2, + "filter_name": "DisableNotify", + "x": 733, + "y": 659, + "filter_type": "notify", + "var1": "Disabled schedule for {{ .WatchName }}", + "var2": "All", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + } + ], + "connections": [ + { + "filter_connection_id": 72, + "connection_watch_id": 2, + "filter_output_id": 80, + "filter_input_id": 81 + }, + { + "filter_connection_id": 73, + "connection_watch_id": 2, + "filter_output_id": 81, + "filter_input_id": 82 + }, + { + "filter_connection_id": 74, + "connection_watch_id": 2, + "filter_output_id": 82, + "filter_input_id": 83 + }, + { + "filter_connection_id": 75, + "connection_watch_id": 2, + "filter_output_id": 83, + "filter_input_id": 84 + }, + { + "filter_connection_id": 76, + "connection_watch_id": 2, + "filter_output_id": 85, + "filter_input_id": 80 + }, + { + "filter_connection_id": 77, + "connection_watch_id": 2, + "filter_output_id": 81, + "filter_input_id": 86 + }, + { + "filter_connection_id": 78, + "connection_watch_id": 2, + "filter_output_id": 86, + "filter_input_id": 87 + }, + { + "filter_connection_id": 79, + "connection_watch_id": 2, + "filter_output_id": 86, + "filter_input_id": 88 + } + ] } \ No newline at end of file diff --git a/web/watchTemplates/Ebay.json b/web/watchTemplates/Ebay.json index 5c89bca..9d3ef5b 100644 --- a/web/watchTemplates/Ebay.json +++ b/web/watchTemplates/Ebay.json @@ -1,140 +1,210 @@ -{ - "filters": [ - { - "filter_id": 7, - "filter_watch_id": 2, - "filter_name": "Fetch", - "x": 168, - "y": 214, - "filter_type": "gurl", - "var1": "-", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 8, - "filter_watch_id": 2, - "filter_name": "CSS", - "x": 398, - "y": 213, - "filter_type": "css", - "var1": ".x-price-primary span span", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 9, - "filter_watch_id": 2, - "filter_name": "Sanitize", - "x": 629, - "y": 214, - "filter_type": "replace", - "var1": ".*US[ ][$]([0-9]+[.][0-9]+).*", - "var2": "$1", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 10, - "filter_watch_id": 2, - "filter_name": "Price", - "x": 878, - "y": 217, - "filter_type": "store", - "var1": "", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 11, - "filter_watch_id": 2, - "filter_name": "Different", - "x": 878, - "y": 322, - "filter_type": "condition", - "var1": "diff", - "var2": "Price", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 12, - "filter_watch_id": 2, - "filter_name": "Notify", - "x": 1080, - "y": 326, - "filter_type": "notify", - "var1": "{{ .WatchName }} changed price {{ .Sanitize }}", - "var2": "All", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 13, - "filter_watch_id": 2, - "filter_name": "Schedule", - "x": 167, - "y": 74, - "filter_type": "cron", - "var1": "@every 15m", - "var2": "no", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - } - ], - "connections": [ - { - "filter_connection_id": 6, - "connection_watch_id": 2, - "filter_output_id": 7, - "filter_input_id": 8 - }, - { - "filter_connection_id": 7, - "connection_watch_id": 2, - "filter_output_id": 8, - "filter_input_id": 9 - }, - { - "filter_connection_id": 8, - "connection_watch_id": 2, - "filter_output_id": 9, - "filter_input_id": 10 - }, - { - "filter_connection_id": 9, - "connection_watch_id": 2, - "filter_output_id": 9, - "filter_input_id": 11 - }, - { - "filter_connection_id": 10, - "connection_watch_id": 2, - "filter_output_id": 11, - "filter_input_id": 12 - }, - { - "filter_connection_id": 11, - "connection_watch_id": 2, - "filter_output_id": 13, - "filter_input_id": 7 - } - ] +{ + "filters": [ + { + "filter_id": 35, + "filter_watch_id": 3, + "filter_name": "Fetch", + "x": 168, + "y": 214, + "filter_type": "gurl", + "var1": "-", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 36, + "filter_watch_id": 3, + "filter_name": "CSS", + "x": 398, + "y": 213, + "filter_type": "css", + "var1": ".x-price-primary span span", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 37, + "filter_watch_id": 3, + "filter_name": "Sanitize", + "x": 629, + "y": 214, + "filter_type": "replace", + "var1": ".*US[ ][$]([0-9]+[.][0-9]+).*", + "var2": "$1", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 38, + "filter_watch_id": 3, + "filter_name": "Price", + "x": 878, + "y": 217, + "filter_type": "store", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 39, + "filter_watch_id": 3, + "filter_name": "Different", + "x": 878, + "y": 322, + "filter_type": "condition", + "var1": "diff", + "var2": "Price", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 40, + "filter_watch_id": 3, + "filter_name": "Notify", + "x": 1080, + "y": 326, + "filter_type": "notify", + "var1": "{{ .WatchName }} changed price {{ .Sanitize }}", + "var2": "All", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 41, + "filter_watch_id": 3, + "filter_name": "Schedule", + "x": 167, + "y": 74, + "filter_type": "cron", + "var1": "@every 15m", + "var2": "no", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 42, + "filter_watch_id": 3, + "filter_name": "Expect", + "x": 621, + "y": 493, + "filter_type": "expect", + "var1": "1", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 43, + "filter_watch_id": 3, + "filter_name": "Disable", + "x": 863, + "y": 497, + "filter_type": "disable", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 44, + "filter_watch_id": 3, + "filter_name": "DisableNotify", + "x": 867, + "y": 619, + "filter_type": "notify", + "var1": "Disabled schedule for {{ .WatchName }}", + "var2": "All", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + } + ], + "connections": [ + { + "filter_connection_id": 31, + "connection_watch_id": 3, + "filter_output_id": 35, + "filter_input_id": 36 + }, + { + "filter_connection_id": 32, + "connection_watch_id": 3, + "filter_output_id": 36, + "filter_input_id": 37 + }, + { + "filter_connection_id": 33, + "connection_watch_id": 3, + "filter_output_id": 37, + "filter_input_id": 38 + }, + { + "filter_connection_id": 34, + "connection_watch_id": 3, + "filter_output_id": 37, + "filter_input_id": 39 + }, + { + "filter_connection_id": 35, + "connection_watch_id": 3, + "filter_output_id": 39, + "filter_input_id": 40 + }, + { + "filter_connection_id": 36, + "connection_watch_id": 3, + "filter_output_id": 41, + "filter_input_id": 35 + }, + { + "filter_connection_id": 37, + "connection_watch_id": 3, + "filter_output_id": 36, + "filter_input_id": 42 + }, + { + "filter_connection_id": 38, + "connection_watch_id": 3, + "filter_output_id": 42, + "filter_input_id": 43 + }, + { + "filter_connection_id": 39, + "connection_watch_id": 3, + "filter_output_id": 42, + "filter_input_id": 44 + } + ] } \ No newline at end of file diff --git a/web/watchTemplates/Etsy.json b/web/watchTemplates/Etsy.json index bd33899..1bf2773 100644 --- a/web/watchTemplates/Etsy.json +++ b/web/watchTemplates/Etsy.json @@ -1,140 +1,210 @@ -{ - "filters": [ - { - "filter_id": 14, - "filter_watch_id": 3, - "filter_name": "Fetch", - "x": 168, - "y": 214, - "filter_type": "gurl", - "var1": "-", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 15, - "filter_watch_id": 3, - "filter_name": "CSS", - "x": 398, - "y": 213, - "filter_type": "css", - "var1": ".wt-text-title-03", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 16, - "filter_watch_id": 3, - "filter_name": "Sanitize", - "x": 629, - "y": 214, - "filter_type": "replace", - "var1": "[^$]*[$]([0-9.]+)[^z]+", - "var2": "$1", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 17, - "filter_watch_id": 3, - "filter_name": "Price", - "x": 878, - "y": 217, - "filter_type": "store", - "var1": "", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 18, - "filter_watch_id": 3, - "filter_name": "Different", - "x": 878, - "y": 322, - "filter_type": "condition", - "var1": "diff", - "var2": "Price", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 19, - "filter_watch_id": 3, - "filter_name": "Notify", - "x": 1080, - "y": 326, - "filter_type": "notify", - "var1": "{{ .WatchName }} changed price {{ .Sanitize }}", - "var2": "All", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 20, - "filter_watch_id": 3, - "filter_name": "Schedule", - "x": 167, - "y": 74, - "filter_type": "cron", - "var1": "@every 15m", - "var2": "no", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - } - ], - "connections": [ - { - "filter_connection_id": 12, - "connection_watch_id": 3, - "filter_output_id": 14, - "filter_input_id": 15 - }, - { - "filter_connection_id": 13, - "connection_watch_id": 3, - "filter_output_id": 15, - "filter_input_id": 16 - }, - { - "filter_connection_id": 14, - "connection_watch_id": 3, - "filter_output_id": 16, - "filter_input_id": 17 - }, - { - "filter_connection_id": 15, - "connection_watch_id": 3, - "filter_output_id": 16, - "filter_input_id": 18 - }, - { - "filter_connection_id": 16, - "connection_watch_id": 3, - "filter_output_id": 18, - "filter_input_id": 19 - }, - { - "filter_connection_id": 17, - "connection_watch_id": 3, - "filter_output_id": 20, - "filter_input_id": 14 - } - ] +{ + "filters": [ + { + "filter_id": 45, + "filter_watch_id": 4, + "filter_name": "Fetch", + "x": 168, + "y": 214, + "filter_type": "gurl", + "var1": "-", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 46, + "filter_watch_id": 4, + "filter_name": "CSS", + "x": 398, + "y": 213, + "filter_type": "css", + "var1": ".wt-text-title-03", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 47, + "filter_watch_id": 4, + "filter_name": "Sanitize", + "x": 629, + "y": 214, + "filter_type": "replace", + "var1": "[^$]*[$]([0-9.]+)[^z]+", + "var2": "$1", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 48, + "filter_watch_id": 4, + "filter_name": "Price", + "x": 878, + "y": 217, + "filter_type": "store", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 49, + "filter_watch_id": 4, + "filter_name": "Different", + "x": 878, + "y": 322, + "filter_type": "condition", + "var1": "diff", + "var2": "Price", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 50, + "filter_watch_id": 4, + "filter_name": "Notify", + "x": 1080, + "y": 326, + "filter_type": "notify", + "var1": "{{ .WatchName }} changed price {{ .Sanitize }}", + "var2": "All", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 51, + "filter_watch_id": 4, + "filter_name": "Schedule", + "x": 167, + "y": 74, + "filter_type": "cron", + "var1": "@every 15m", + "var2": "no", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 52, + "filter_watch_id": 4, + "filter_name": "Expect", + "x": 624, + "y": 507, + "filter_type": "expect", + "var1": "1", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 53, + "filter_watch_id": 4, + "filter_name": "Disable", + "x": 856, + "y": 510, + "filter_type": "disable", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 54, + "filter_watch_id": 4, + "filter_name": "DisableNotify", + "x": 857, + "y": 629, + "filter_type": "notify", + "var1": "Disabled schedule for {{ .WatchName }}", + "var2": "All", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + } + ], + "connections": [ + { + "filter_connection_id": 40, + "connection_watch_id": 4, + "filter_output_id": 45, + "filter_input_id": 46 + }, + { + "filter_connection_id": 41, + "connection_watch_id": 4, + "filter_output_id": 46, + "filter_input_id": 47 + }, + { + "filter_connection_id": 42, + "connection_watch_id": 4, + "filter_output_id": 47, + "filter_input_id": 48 + }, + { + "filter_connection_id": 43, + "connection_watch_id": 4, + "filter_output_id": 47, + "filter_input_id": 49 + }, + { + "filter_connection_id": 44, + "connection_watch_id": 4, + "filter_output_id": 49, + "filter_input_id": 50 + }, + { + "filter_connection_id": 45, + "connection_watch_id": 4, + "filter_output_id": 51, + "filter_input_id": 45 + }, + { + "filter_connection_id": 46, + "connection_watch_id": 4, + "filter_output_id": 46, + "filter_input_id": 52 + }, + { + "filter_connection_id": 47, + "connection_watch_id": 4, + "filter_output_id": 52, + "filter_input_id": 53 + }, + { + "filter_connection_id": 48, + "connection_watch_id": 4, + "filter_output_id": 52, + "filter_input_id": 54 + } + ] } \ No newline at end of file diff --git a/web/watchTemplates/NewEgg.json b/web/watchTemplates/NewEgg.json index 17612f5..eb451b7 100644 --- a/web/watchTemplates/NewEgg.json +++ b/web/watchTemplates/NewEgg.json @@ -1,140 +1,210 @@ -{ - "filters": [ - { - "filter_id": 21, - "filter_watch_id": 4, - "filter_name": "Fetch", - "x": 168, - "y": 214, - "filter_type": "gurl", - "var1": "-", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 22, - "filter_watch_id": 4, - "filter_name": "CSS", - "x": 398, - "y": 213, - "filter_type": "css", - "var1": ".product-price .price-current strong", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 23, - "filter_watch_id": 4, - "filter_name": "Sanitize", - "x": 629, - "y": 214, - "filter_type": "replace", - "var1": "[^0-9]", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 24, - "filter_watch_id": 4, - "filter_name": "Price", - "x": 878, - "y": 217, - "filter_type": "store", - "var1": "", - "var2": "", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 25, - "filter_watch_id": 4, - "filter_name": "Different", - "x": 878, - "y": 322, - "filter_type": "condition", - "var1": "diff", - "var2": "Price", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 26, - "filter_watch_id": 4, - "filter_name": "Notify", - "x": 1080, - "y": 326, - "filter_type": "notify", - "var1": "{{ .WatchName }} changed price {{ .Sanitize }}", - "var2": "All", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - }, - { - "filter_id": 27, - "filter_watch_id": 4, - "filter_name": "Schedule", - "x": 167, - "y": 74, - "filter_type": "cron", - "var1": "@every 15m", - "var2": "no", - "Parents": null, - "Children": null, - "Results": null, - "Logs": null - } - ], - "connections": [ - { - "filter_connection_id": 18, - "connection_watch_id": 4, - "filter_output_id": 21, - "filter_input_id": 22 - }, - { - "filter_connection_id": 19, - "connection_watch_id": 4, - "filter_output_id": 22, - "filter_input_id": 23 - }, - { - "filter_connection_id": 20, - "connection_watch_id": 4, - "filter_output_id": 23, - "filter_input_id": 24 - }, - { - "filter_connection_id": 21, - "connection_watch_id": 4, - "filter_output_id": 23, - "filter_input_id": 25 - }, - { - "filter_connection_id": 22, - "connection_watch_id": 4, - "filter_output_id": 25, - "filter_input_id": 26 - }, - { - "filter_connection_id": 23, - "connection_watch_id": 4, - "filter_output_id": 27, - "filter_input_id": 21 - } - ] +{ + "filters": [ + { + "filter_id": 55, + "filter_watch_id": 5, + "filter_name": "Fetch", + "x": 168, + "y": 214, + "filter_type": "gurl", + "var1": "-", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 56, + "filter_watch_id": 5, + "filter_name": "CSS", + "x": 398, + "y": 213, + "filter_type": "css", + "var1": ".product-price .price-current strong", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 57, + "filter_watch_id": 5, + "filter_name": "Sanitize", + "x": 629, + "y": 214, + "filter_type": "replace", + "var1": "[^0-9]", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 58, + "filter_watch_id": 5, + "filter_name": "Price", + "x": 878, + "y": 217, + "filter_type": "store", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 59, + "filter_watch_id": 5, + "filter_name": "Different", + "x": 878, + "y": 322, + "filter_type": "condition", + "var1": "diff", + "var2": "Price", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 60, + "filter_watch_id": 5, + "filter_name": "Notify", + "x": 1080, + "y": 326, + "filter_type": "notify", + "var1": "{{ .WatchName }} changed price {{ .Sanitize }}", + "var2": "All", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 61, + "filter_watch_id": 5, + "filter_name": "Schedule", + "x": 167, + "y": 74, + "filter_type": "cron", + "var1": "@every 15m", + "var2": "no", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 62, + "filter_watch_id": 5, + "filter_name": "Expect", + "x": 634, + "y": 475, + "filter_type": "expect", + "var1": "1", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 63, + "filter_watch_id": 5, + "filter_name": "Disable", + "x": 872, + "y": 480, + "filter_type": "disable", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 64, + "filter_watch_id": 5, + "filter_name": "DisableNotify", + "x": 873, + "y": 603, + "filter_type": "notify", + "var1": "Disabled schedule for {{ .WatchName }}", + "var2": "All", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + } + ], + "connections": [ + { + "filter_connection_id": 49, + "connection_watch_id": 5, + "filter_output_id": 55, + "filter_input_id": 56 + }, + { + "filter_connection_id": 50, + "connection_watch_id": 5, + "filter_output_id": 56, + "filter_input_id": 57 + }, + { + "filter_connection_id": 51, + "connection_watch_id": 5, + "filter_output_id": 57, + "filter_input_id": 58 + }, + { + "filter_connection_id": 52, + "connection_watch_id": 5, + "filter_output_id": 57, + "filter_input_id": 59 + }, + { + "filter_connection_id": 53, + "connection_watch_id": 5, + "filter_output_id": 59, + "filter_input_id": 60 + }, + { + "filter_connection_id": 54, + "connection_watch_id": 5, + "filter_output_id": 61, + "filter_input_id": 55 + }, + { + "filter_connection_id": 55, + "connection_watch_id": 5, + "filter_output_id": 56, + "filter_input_id": 62 + }, + { + "filter_connection_id": 56, + "connection_watch_id": 5, + "filter_output_id": 62, + "filter_input_id": 63 + }, + { + "filter_connection_id": 57, + "connection_watch_id": 5, + "filter_output_id": 62, + "filter_input_id": 64 + } + ] } \ No newline at end of file diff --git a/web/watchTemplates/Tweakers.json b/web/watchTemplates/Tweakers.json index e0aa91d..6aeaf00 100644 --- a/web/watchTemplates/Tweakers.json +++ b/web/watchTemplates/Tweakers.json @@ -1,8 +1,8 @@ { "filters": [ { - "filter_id": 28, - "filter_watch_id": 5, + "filter_id": 65, + "filter_watch_id": 6, "filter_name": "Fetch", "x": 81, "y": 212, @@ -12,25 +12,27 @@ "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 29, - "filter_watch_id": 5, + "filter_id": 66, + "filter_watch_id": 6, "filter_name": "Schedule", "x": 86, "y": 63, "filter_type": "cron", - "var1": "@every 15m", + "var1": "@every 15m + 10m", "var2": "no", "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 30, - "filter_watch_id": 5, + "filter_id": 67, + "filter_watch_id": 6, "filter_name": "XPath", "x": 298, "y": 210, @@ -40,11 +42,12 @@ "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 31, - "filter_watch_id": 5, + "filter_id": 68, + "filter_watch_id": 6, "filter_name": "Sanitize", "x": 523, "y": 208, @@ -54,11 +57,12 @@ "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 32, - "filter_watch_id": 5, + "filter_id": 69, + "filter_watch_id": 6, "filter_name": "Sanitize2", "x": 728, "y": 210, @@ -68,11 +72,12 @@ "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 33, - "filter_watch_id": 5, + "filter_id": 70, + "filter_watch_id": 6, "filter_name": "Min", "x": 941, "y": 209, @@ -82,11 +87,12 @@ "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 34, - "filter_watch_id": 5, + "filter_id": 71, + "filter_watch_id": 6, "filter_name": "Minimum", "x": 1130, "y": 210, @@ -96,11 +102,12 @@ "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 35, - "filter_watch_id": 5, + "filter_id": 72, + "filter_watch_id": 6, "filter_name": "Diff", "x": 897, "y": 370, @@ -110,91 +117,199 @@ "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 36, - "filter_watch_id": 5, + "filter_id": 73, + "filter_watch_id": 6, "filter_name": "Notify", - "x": 895, - "y": 554, + "x": 1083, + "y": 486, "filter_type": "notify", "var1": "{{ .WatchName }} Price change: {{ .Min }}", "var2": "All", "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null }, { - "filter_id": 37, - "filter_watch_id": 5, + "filter_id": 74, + "filter_watch_id": 6, "filter_name": "Round", - "x": 905, - "y": 461, + "x": 1086, + "y": 364, "filter_type": "replace", "var1": "[.].*", "var2": "", "Parents": null, "Children": null, "Results": null, - "Logs": null + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 75, + "filter_watch_id": 6, + "filter_name": "Expect", + "x": 895, + "y": 72, + "filter_type": "expect", + "var1": "1", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 76, + "filter_watch_id": 6, + "filter_name": "Disable", + "x": 1100, + "y": 74, + "filter_type": "disable", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 77, + "filter_watch_id": 6, + "filter_name": "Expect", + "x": 517, + "y": 453, + "filter_type": "expect", + "var1": "1", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 78, + "filter_watch_id": 6, + "filter_name": "Disable", + "x": 732, + "y": 455, + "filter_type": "disable", + "var1": "", + "var2": "", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null + }, + { + "filter_id": 79, + "filter_watch_id": 6, + "filter_name": "DisableNotify", + "x": 736, + "y": 570, + "filter_type": "notify", + "var1": "Disabled schedule for {{ .WatchName }}", + "var2": "All", + "Parents": null, + "Children": null, + "Results": null, + "Logs": null, + "CronEntry": null } ], "connections": [ { - "filter_connection_id": 24, - "connection_watch_id": 5, - "filter_output_id": 29, - "filter_input_id": 28 + "filter_connection_id": 58, + "connection_watch_id": 6, + "filter_output_id": 66, + "filter_input_id": 65 }, { - "filter_connection_id": 25, - "connection_watch_id": 5, - "filter_output_id": 28, - "filter_input_id": 30 + "filter_connection_id": 59, + "connection_watch_id": 6, + "filter_output_id": 65, + "filter_input_id": 67 }, { - "filter_connection_id": 26, - "connection_watch_id": 5, - "filter_output_id": 30, - "filter_input_id": 31 + "filter_connection_id": 60, + "connection_watch_id": 6, + "filter_output_id": 67, + "filter_input_id": 68 }, { - "filter_connection_id": 27, - "connection_watch_id": 5, - "filter_output_id": 31, - "filter_input_id": 32 + "filter_connection_id": 61, + "connection_watch_id": 6, + "filter_output_id": 68, + "filter_input_id": 69 }, { - "filter_connection_id": 28, - "connection_watch_id": 5, - "filter_output_id": 32, - "filter_input_id": 33 + "filter_connection_id": 62, + "connection_watch_id": 6, + "filter_output_id": 69, + "filter_input_id": 70 }, { - "filter_connection_id": 29, - "connection_watch_id": 5, - "filter_output_id": 33, - "filter_input_id": 34 + "filter_connection_id": 63, + "connection_watch_id": 6, + "filter_output_id": 70, + "filter_input_id": 71 }, { - "filter_connection_id": 30, - "connection_watch_id": 5, - "filter_output_id": 33, - "filter_input_id": 35 + "filter_connection_id": 64, + "connection_watch_id": 6, + "filter_output_id": 70, + "filter_input_id": 72 }, { - "filter_connection_id": 31, - "connection_watch_id": 5, - "filter_output_id": 35, - "filter_input_id": 37 + "filter_connection_id": 65, + "connection_watch_id": 6, + "filter_output_id": 72, + "filter_input_id": 74 }, { - "filter_connection_id": 32, - "connection_watch_id": 5, - "filter_output_id": 37, - "filter_input_id": 36 + "filter_connection_id": 66, + "connection_watch_id": 6, + "filter_output_id": 74, + "filter_input_id": 73 + }, + { + "filter_connection_id": 67, + "connection_watch_id": 6, + "filter_output_id": 69, + "filter_input_id": 75 + }, + { + "filter_connection_id": 68, + "connection_watch_id": 6, + "filter_output_id": 75, + "filter_input_id": 76 + }, + { + "filter_connection_id": 69, + "connection_watch_id": 6, + "filter_output_id": 67, + "filter_input_id": 77 + }, + { + "filter_connection_id": 70, + "connection_watch_id": 6, + "filter_output_id": 77, + "filter_input_id": 78 + }, + { + "filter_connection_id": 71, + "connection_watch_id": 6, + "filter_output_id": 77, + "filter_input_id": 79 } ] } \ No newline at end of file