DIYtechie

Node-RED LPR flow (unpolished)

Sep 4th, 2023
2,017
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 36.03 KB | Software | 1 0
  1. [
  2.     {
  3.         "id": "cc77ae9558cee9e4",
  4.         "type": "tab",
  5.         "label": "LPR (license plate recognition)",
  6.         "disabled": false,
  7.         "info": ""
  8.     },
  9.     {
  10.         "id": "d2db4f67b6e2dbfd",
  11.         "type": "switch",
  12.         "z": "cc77ae9558cee9e4",
  13.         "name": "Car Database",
  14.         "property": "payload.results.plate",
  15.         "propertyType": "msg",
  16.         "rules": [
  17.             {
  18.                 "t": "eq",
  19.                 "v": "bv28245",
  20.                 "vt": "str"
  21.             },
  22.             {
  23.                 "t": "eq",
  24.                 "v": "cj35245",
  25.                 "vt": "str"
  26.             },
  27.             {
  28.                 "t": "eq",
  29.                 "v": "cy47045",
  30.                 "vt": "str"
  31.             },
  32.             {
  33.                 "t": "eq",
  34.                 "v": "hw40245",
  35.                 "vt": "str"
  36.             },
  37.             {
  38.                 "t": "eq",
  39.                 "v": "mm46245",
  40.                 "vt": "str"
  41.             },
  42.             {
  43.                 "t": "eq",
  44.                 "v": "hm46245",
  45.                 "vt": "str"
  46.             },
  47.             {
  48.                 "t": "eq",
  49.                 "v": "hh46245",
  50.                 "vt": "str"
  51.             },
  52.             {
  53.                 "t": "eq",
  54.                 "v": "ca50245",
  55.                 "vt": "str"
  56.             },
  57.             {
  58.                 "t": "eq",
  59.                 "v": "am18545",
  60.                 "vt": "str"
  61.             },
  62.             {
  63.                 "t": "eq",
  64.                 "v": "ae10445",
  65.                 "vt": "str"
  66.             },
  67.             {
  68.                 "t": "eq",
  69.                 "v": "ac97845",
  70.                 "vt": "str"
  71.             },
  72.             {
  73.                 "t": "eq",
  74.                 "v": "aj16245",
  75.                 "vt": "str"
  76.             },
  77.             {
  78.                 "t": "eq",
  79.                 "v": "bw80045",
  80.                 "vt": "str"
  81.             },
  82.             {
  83.                 "t": "eq",
  84.                 "v": "cu51345",
  85.                 "vt": "str"
  86.             },
  87.             {
  88.                 "t": "eq",
  89.                 "v": "ew57045",
  90.                 "vt": "str"
  91.             },
  92.             {
  93.                 "t": "eq",
  94.                 "v": "vt34445",
  95.                 "vt": "str"
  96.             },
  97.             {
  98.                 "t": "eq",
  99.                 "v": "vy34445",
  100.                 "vt": "str"
  101.             },
  102.             {
  103.                 "t": "eq",
  104.                 "v": "bl21545",
  105.                 "vt": "str"
  106.             },
  107.             {
  108.                 "t": "else"
  109.             }
  110.         ],
  111.         "checkall": "true",
  112.         "repair": false,
  113.         "outputs": 19,
  114.         "x": 910,
  115.         "y": 250,
  116.         "wires": [
  117.             [
  118.                 "e90ac9094a1db34d"
  119.             ],
  120.             [
  121.                 "933d56f865161eae"
  122.             ],
  123.             [
  124.                 "639ec1f3b3adf19f"
  125.             ],
  126.             [
  127.                 "db6178b5c2036375"
  128.             ],
  129.             [
  130.                 "ea7e6ce1ef215ce9"
  131.             ],
  132.             [
  133.                 "23cd901e843219c3"
  134.             ],
  135.             [
  136.                 "4d1f0d1b8438c7f4"
  137.             ],
  138.             [
  139.                 "8a2ec14c130cc2bd"
  140.             ],
  141.             [
  142.                 "d3ac03990feaa83e"
  143.             ],
  144.             [],
  145.             [],
  146.             [],
  147.             [],
  148.             [],
  149.             [],
  150.             [],
  151.             [],
  152.             [],
  153.             [
  154.                 "852ec33ed34cb337"
  155.             ]
  156.         ]
  157.     },
  158.     {
  159.         "id": "ecaf95aa4a3abb30",
  160.         "type": "comment",
  161.         "z": "cc77ae9558cee9e4",
  162.         "name": "Guests who stay over for a limited time < 12 hours",
  163.         "info": "",
  164.         "x": 1260,
  165.         "y": 160,
  166.         "wires": []
  167.     },
  168.     {
  169.         "id": "9a1558ee9c914670",
  170.         "type": "comment",
  171.         "z": "cc77ae9558cee9e4",
  172.         "name": "Over-nigthers > 12 hours",
  173.         "info": "",
  174.         "x": 1180,
  175.         "y": 450,
  176.         "wires": []
  177.     },
  178.     {
  179.         "id": "4c3ef30b4c452496",
  180.         "type": "comment",
  181.         "z": "cc77ae9558cee9e4",
  182.         "name": "Tests and unkown car",
  183.         "info": "",
  184.         "x": 1170,
  185.         "y": 610,
  186.         "wires": []
  187.     },
  188.     {
  189.         "id": "d8ef4c2f9961cf7a",
  190.         "type": "comment",
  191.         "z": "cc77ae9558cee9e4",
  192.         "name": "Kids' friends (drop-off) < 45 mins",
  193.         "info": "",
  194.         "x": 1200,
  195.         "y": 530,
  196.         "wires": []
  197.     },
  198.     {
  199.         "id": "852ec33ed34cb337",
  200.         "type": "switch",
  201.         "z": "cc77ae9558cee9e4",
  202.         "name": "score > 88%",
  203.         "property": "payload.platescore",
  204.         "propertyType": "flow",
  205.         "rules": [
  206.             {
  207.                 "t": "gt",
  208.                 "v": "0.88",
  209.                 "vt": "str"
  210.             }
  211.         ],
  212.         "checkall": "true",
  213.         "repair": false,
  214.         "outputs": 1,
  215.         "x": 1150,
  216.         "y": 650,
  217.         "wires": [
  218.             [
  219.                 "ce662893b99d7030",
  220.                 "a5c0378d0ba67136",
  221.                 "a6381819d2fa143d"
  222.             ]
  223.         ]
  224.     },
  225.     {
  226.         "id": "afa17178463df235",
  227.         "type": "change",
  228.         "z": "cc77ae9558cee9e4",
  229.         "name": "Save score",
  230.         "rules": [
  231.             {
  232.                 "t": "move",
  233.                 "p": "payload.results.score",
  234.                 "pt": "msg",
  235.                 "to": "payload.platescore",
  236.                 "tot": "flow"
  237.             }
  238.         ],
  239.         "action": "",
  240.         "property": "",
  241.         "from": "",
  242.         "to": "",
  243.         "reg": false,
  244.         "x": 900,
  245.         "y": 460,
  246.         "wires": [
  247.             []
  248.         ]
  249.     },
  250.     {
  251.         "id": "a6381819d2fa143d",
  252.         "type": "debug",
  253.         "z": "cc77ae9558cee9e4",
  254.         "name": "",
  255.         "active": true,
  256.         "tosidebar": true,
  257.         "console": false,
  258.         "tostatus": false,
  259.         "complete": "false",
  260.         "x": 1350,
  261.         "y": 750,
  262.         "wires": []
  263.     },
  264.     {
  265.         "id": "e48aa8738bf4c26f",
  266.         "type": "plate-recognizer",
  267.         "z": "cc77ae9558cee9e4",
  268.         "name": "analyze image",
  269.         "inputField": "payload",
  270.         "inputFieldType": "msg",
  271.         "outputField": "payload",
  272.         "outputFieldType": "msg",
  273.         "url": "https://api.platerecognizer.com/v1/plate-reader/",
  274.         "ignoreDuring": false,
  275.         "makeAndModel": false,
  276.         "statusText": "scores",
  277.         "cameraId": "",
  278.         "separateMsg": true,
  279.         "regionFilter": true,
  280.         "regionList": "[\"dk\"]",
  281.         "regionListType": "json",
  282.         "x": 660,
  283.         "y": 250,
  284.         "wires": [
  285.             [
  286.                 "d2db4f67b6e2dbfd",
  287.                 "afa17178463df235",
  288.                 "214f2380a3a91cec",
  289.                 "43cfae5fdd8e7df9"
  290.             ],
  291.             []
  292.         ]
  293.     },
  294.     {
  295.         "id": "047236f3ed7494fd",
  296.         "type": "mqtt in",
  297.         "z": "cc77ae9558cee9e4",
  298.         "name": "Driveway PIR",
  299.         "topic": "shellies/shellyswitch25-blablabla/input/1",
  300.         "qos": "2",
  301.         "datatype": "auto",
  302.         "broker": "",
  303.         "nl": false,
  304.         "rap": false,
  305.         "inputs": 0,
  306.         "x": 90,
  307.         "y": 80,
  308.         "wires": [
  309.             [
  310.                 "9564283dc5a6531d"
  311.             ]
  312.         ]
  313.     },
  314.     {
  315.         "id": "2c8a26273504f61b",
  316.         "type": "switch",
  317.         "z": "cc77ae9558cee9e4",
  318.         "name": "activated?",
  319.         "property": "payload",
  320.         "propertyType": "msg",
  321.         "rules": [
  322.             {
  323.                 "t": "eq",
  324.                 "v": "1",
  325.                 "vt": "num"
  326.             }
  327.         ],
  328.         "checkall": "true",
  329.         "repair": false,
  330.         "outputs": 1,
  331.         "x": 370,
  332.         "y": 80,
  333.         "wires": [
  334.             [
  335.                 "fb5139df3e344ded"
  336.             ]
  337.         ]
  338.     },
  339.     {
  340.         "id": "2f8130180fd6c7a5",
  341.         "type": "server-state-changed",
  342.         "z": "cc77ae9558cee9e4",
  343.         "name": "Driveway camera motion detection",
  344.         "server": "",
  345.         "version": 4,
  346.         "exposeToHomeAssistant": false,
  347.         "haConfig": [
  348.             {
  349.                 "property": "name",
  350.                 "value": ""
  351.             },
  352.             {
  353.                 "property": "icon",
  354.                 "value": ""
  355.             }
  356.         ],
  357.         "entityidfiltertype": "exact",
  358.         "outputinitially": false,
  359.         "state_type": "str",
  360.         "haltifstate": "on",
  361.         "halt_if_type": "str",
  362.         "halt_if_compare": "is",
  363.         "outputs": 2,
  364.         "output_only_on_state_change": true,
  365.         "for": "0",
  366.         "forType": "num",
  367.         "forUnits": "minutes",
  368.         "ignorePrevStateNull": false,
  369.         "ignorePrevStateUnknown": false,
  370.         "ignorePrevStateUnavailable": false,
  371.         "ignoreCurrentStateUnknown": false,
  372.         "ignoreCurrentStateUnavailable": false,
  373.         "outputProperties": [
  374.             {
  375.                 "property": "payload",
  376.                 "propertyType": "msg",
  377.                 "value": "",
  378.                 "valueType": "entityState"
  379.             },
  380.             {
  381.                 "property": "data",
  382.                 "propertyType": "msg",
  383.                 "value": "",
  384.                 "valueType": "eventData"
  385.             },
  386.             {
  387.                 "property": "topic",
  388.                 "propertyType": "msg",
  389.                 "value": "",
  390.                 "valueType": "triggerId"
  391.             }
  392.         ],
  393.         "x": 160,
  394.         "y": 130,
  395.         "wires": [
  396.             [
  397.                 "fb5139df3e344ded"
  398.             ],
  399.             []
  400.         ]
  401.     },
  402.     {
  403.         "id": "214f2380a3a91cec",
  404.         "type": "debug",
  405.         "z": "cc77ae9558cee9e4",
  406.         "name": "",
  407.         "active": true,
  408.         "tosidebar": true,
  409.         "console": false,
  410.         "tostatus": false,
  411.         "complete": "false",
  412.         "statusVal": "",
  413.         "statusType": "auto",
  414.         "x": 900,
  415.         "y": 500,
  416.         "wires": []
  417.     },
  418.     {
  419.         "id": "5b579cc8b6fd7e5a",
  420.         "type": "image",
  421.         "z": "cc77ae9558cee9e4",
  422.         "name": "",
  423.         "width": 160,
  424.         "data": "payload",
  425.         "dataType": "msg",
  426.         "thumbnail": false,
  427.         "active": true,
  428.         "pass": false,
  429.         "outputs": 0,
  430.         "x": 420,
  431.         "y": 290,
  432.         "wires": []
  433.     },
  434.     {
  435.         "id": "6f0fb4cc19a44786",
  436.         "type": "http request",
  437.         "z": "cc77ae9558cee9e4",
  438.         "name": "Request snapshot from Reolink cam",
  439.         "method": "GET",
  440.         "ret": "bin",
  441.         "paytoqs": "ignore",
  442.         "url": "https://192.168.2.119/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=123456",
  443.         "tls": "",
  444.         "persist": false,
  445.         "proxy": "",
  446.         "authType": "basic",
  447.         "senderr": false,
  448.         "x": 350,
  449.         "y": 250,
  450.         "wires": [
  451.             [
  452.                 "e48aa8738bf4c26f",
  453.                 "5b579cc8b6fd7e5a",
  454.                 "254f2a1244d02df3"
  455.             ]
  456.         ]
  457.     },
  458.     {
  459.         "id": "c06f5fdb331181c0",
  460.         "type": "delay",
  461.         "z": "cc77ae9558cee9e4",
  462.         "name": "",
  463.         "pauseType": "rate",
  464.         "timeout": "5",
  465.         "timeoutUnits": "seconds",
  466.         "rate": "1",
  467.         "nbRateUnits": "1",
  468.         "rateUnits": "minute",
  469.         "randomFirst": "1",
  470.         "randomLast": "5",
  471.         "randomUnits": "seconds",
  472.         "drop": true,
  473.         "allowrate": false,
  474.         "outputs": 1,
  475.         "x": 370,
  476.         "y": 190,
  477.         "wires": [
  478.             [
  479.                 "6f0fb4cc19a44786"
  480.             ]
  481.         ]
  482.     },
  483.     {
  484.         "id": "4280686f7458b829",
  485.         "type": "delay",
  486.         "z": "cc77ae9558cee9e4",
  487.         "name": "",
  488.         "pauseType": "delay",
  489.         "timeout": "2",
  490.         "timeoutUnits": "seconds",
  491.         "rate": "1",
  492.         "nbRateUnits": "1",
  493.         "rateUnits": "second",
  494.         "randomFirst": "1",
  495.         "randomLast": "5",
  496.         "randomUnits": "seconds",
  497.         "drop": false,
  498.         "allowrate": false,
  499.         "outputs": 1,
  500.         "x": 110,
  501.         "y": 580,
  502.         "wires": [
  503.             [
  504.                 "937bd7b323c81659"
  505.             ]
  506.         ]
  507.     },
  508.     {
  509.         "id": "e89c621e563f5a2b",
  510.         "type": "http request",
  511.         "z": "cc77ae9558cee9e4",
  512.         "name": "Request snapshot from Reolink cam",
  513.         "method": "GET",
  514.         "ret": "bin",
  515.         "paytoqs": "ignore",
  516.         "url": "https://192.168.2.119/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=123456",
  517.         "tls": "",
  518.         "persist": false,
  519.         "proxy": "",
  520.         "authType": "basic",
  521.         "senderr": false,
  522.         "x": 350,
  523.         "y": 460,
  524.         "wires": [
  525.             [
  526.                 "56ebb9662f0d891b",
  527.                 "e48aa8738bf4c26f",
  528.                 "4280686f7458b829"
  529.             ]
  530.         ]
  531.     },
  532.     {
  533.         "id": "56ebb9662f0d891b",
  534.         "type": "image",
  535.         "z": "cc77ae9558cee9e4",
  536.         "name": "",
  537.         "width": 160,
  538.         "data": "payload",
  539.         "dataType": "msg",
  540.         "thumbnail": false,
  541.         "active": true,
  542.         "pass": false,
  543.         "outputs": 0,
  544.         "x": 420,
  545.         "y": 500,
  546.         "wires": []
  547.     },
  548.     {
  549.         "id": "bca5cad3721ce263",
  550.         "type": "http request",
  551.         "z": "cc77ae9558cee9e4",
  552.         "name": "Request snapshot from Reolink cam",
  553.         "method": "GET",
  554.         "ret": "bin",
  555.         "paytoqs": "ignore",
  556.         "url": "https://192.168.2.119/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=123456",
  557.         "tls": "",
  558.         "persist": false,
  559.         "proxy": "",
  560.         "authType": "basic",
  561.         "senderr": false,
  562.         "x": 350,
  563.         "y": 670,
  564.         "wires": [
  565.             [
  566.                 "2a9b7ac99c236f34",
  567.                 "e48aa8738bf4c26f"
  568.             ]
  569.         ]
  570.     },
  571.     {
  572.         "id": "2a9b7ac99c236f34",
  573.         "type": "image",
  574.         "z": "cc77ae9558cee9e4",
  575.         "name": "",
  576.         "width": 160,
  577.         "data": "payload",
  578.         "dataType": "msg",
  579.         "thumbnail": false,
  580.         "active": true,
  581.         "pass": false,
  582.         "outputs": 0,
  583.         "x": 420,
  584.         "y": 710,
  585.         "wires": []
  586.     },
  587.     {
  588.         "id": "fb5139df3e344ded",
  589.         "type": "api-current-state",
  590.         "z": "cc77ae9558cee9e4",
  591.         "name": "LPR enabled?",
  592.         "server": "",
  593.         "version": 3,
  594.         "outputs": 2,
  595.         "halt_if": "on",
  596.         "halt_if_type": "str",
  597.         "halt_if_compare": "is",
  598.         "entity_id": "input_boolean.lpr",
  599.         "state_type": "str",
  600.         "blockInputOverrides": false,
  601.         "outputProperties": [
  602.             {
  603.                 "property": "payload",
  604.                 "propertyType": "msg",
  605.                 "value": "",
  606.                 "valueType": "entityState"
  607.             },
  608.             {
  609.                 "property": "data",
  610.                 "propertyType": "msg",
  611.                 "value": "",
  612.                 "valueType": "entity"
  613.             }
  614.         ],
  615.         "for": 0,
  616.         "forType": "num",
  617.         "forUnits": "minutes",
  618.         "x": 430,
  619.         "y": 130,
  620.         "wires": [
  621.             [
  622.                 "c06f5fdb331181c0"
  623.             ],
  624.             []
  625.         ]
  626.     },
  627.     {
  628.         "id": "e7fcecc615a6b04c",
  629.         "type": "switch",
  630.         "z": "cc77ae9558cee9e4",
  631.         "name": "if no license plate detected",
  632.         "property": "results",
  633.         "propertyType": "flow",
  634.         "rules": [
  635.             {
  636.                 "t": "empty"
  637.             }
  638.         ],
  639.         "checkall": "true",
  640.         "repair": false,
  641.         "outputs": 1,
  642.         "x": 170,
  643.         "y": 420,
  644.         "wires": [
  645.             [
  646.                 "e89c621e563f5a2b"
  647.             ]
  648.         ]
  649.     },
  650.     {
  651.         "id": "43cfae5fdd8e7df9",
  652.         "type": "change",
  653.         "z": "cc77ae9558cee9e4",
  654.         "name": "Save results",
  655.         "rules": [
  656.             {
  657.                 "t": "move",
  658.                 "p": "payload.results",
  659.                 "pt": "msg",
  660.                 "to": "results",
  661.                 "tot": "flow"
  662.             }
  663.         ],
  664.         "action": "",
  665.         "property": "",
  666.         "from": "",
  667.         "to": "",
  668.         "reg": false,
  669.         "x": 900,
  670.         "y": 420,
  671.         "wires": [
  672.             []
  673.         ]
  674.     },
  675.     {
  676.         "id": "254f2a1244d02df3",
  677.         "type": "delay",
  678.         "z": "cc77ae9558cee9e4",
  679.         "name": "",
  680.         "pauseType": "delay",
  681.         "timeout": "2",
  682.         "timeoutUnits": "seconds",
  683.         "rate": "1",
  684.         "nbRateUnits": "1",
  685.         "rateUnits": "second",
  686.         "randomFirst": "1",
  687.         "randomLast": "5",
  688.         "randomUnits": "seconds",
  689.         "drop": false,
  690.         "allowrate": false,
  691.         "outputs": 1,
  692.         "x": 110,
  693.         "y": 370,
  694.         "wires": [
  695.             [
  696.                 "e7fcecc615a6b04c"
  697.             ]
  698.         ]
  699.     },
  700.     {
  701.         "id": "937bd7b323c81659",
  702.         "type": "switch",
  703.         "z": "cc77ae9558cee9e4",
  704.         "name": "if no license plate detected",
  705.         "property": "results",
  706.         "propertyType": "flow",
  707.         "rules": [
  708.             {
  709.                 "t": "empty"
  710.             }
  711.         ],
  712.         "checkall": "true",
  713.         "repair": false,
  714.         "outputs": 1,
  715.         "x": 170,
  716.         "y": 630,
  717.         "wires": [
  718.             [
  719.                 "bca5cad3721ce263"
  720.             ]
  721.         ]
  722.     },
  723.     {
  724.         "id": "582341754facb1a4",
  725.         "type": "inject",
  726.         "z": "cc77ae9558cee9e4",
  727.         "name": "test",
  728.         "props": [
  729.             {
  730.                 "p": "payload"
  731.             },
  732.             {
  733.                 "p": "topic",
  734.                 "vt": "str"
  735.             }
  736.         ],
  737.         "repeat": "",
  738.         "crontab": "",
  739.         "once": false,
  740.         "onceDelay": 0.1,
  741.         "topic": "",
  742.         "payload": "",
  743.         "payloadType": "date",
  744.         "x": 100,
  745.         "y": 250,
  746.         "wires": [
  747.             [
  748.                 "6f0fb4cc19a44786"
  749.             ]
  750.         ]
  751.     },
  752.     {
  753.         "id": "9564283dc5a6531d",
  754.         "type": "rbe",
  755.         "z": "cc77ae9558cee9e4",
  756.         "name": "",
  757.         "func": "rbe",
  758.         "gap": "",
  759.         "start": "",
  760.         "inout": "out",
  761.         "property": "payload",
  762.         "x": 230,
  763.         "y": 80,
  764.         "wires": [
  765.             [
  766.                 "2c8a26273504f61b"
  767.             ]
  768.         ]
  769.     },
  770.     {
  771.         "id": "933d56f865161eae",
  772.         "type": "delay",
  773.         "z": "cc77ae9558cee9e4",
  774.         "name": "",
  775.         "pauseType": "rate",
  776.         "timeout": "5",
  777.         "timeoutUnits": "seconds",
  778.         "rate": "1",
  779.         "nbRateUnits": "12",
  780.         "rateUnits": "hour",
  781.         "randomFirst": "1",
  782.         "randomLast": "5",
  783.         "randomUnits": "seconds",
  784.         "drop": true,
  785.         "allowrate": false,
  786.         "outputs": 1,
  787.         "x": 1160,
  788.         "y": 210,
  789.         "wires": [
  790.             [
  791.                 "5a239035bd9f8545"
  792.             ]
  793.         ]
  794.     },
  795.     {
  796.         "id": "d3ac03990feaa83e",
  797.         "type": "delay",
  798.         "z": "cc77ae9558cee9e4",
  799.         "name": "",
  800.         "pauseType": "rate",
  801.         "timeout": "5",
  802.         "timeoutUnits": "seconds",
  803.         "rate": "1",
  804.         "nbRateUnits": "45",
  805.         "rateUnits": "minute",
  806.         "randomFirst": "1",
  807.         "randomLast": "5",
  808.         "randomUnits": "seconds",
  809.         "drop": true,
  810.         "allowrate": false,
  811.         "outputs": 1,
  812.         "x": 1160,
  813.         "y": 570,
  814.         "wires": [
  815.             [
  816.                 "3e1abb50a3371c33"
  817.             ]
  818.         ]
  819.     },
  820.     {
  821.         "id": "8a2ec14c130cc2bd",
  822.         "type": "delay",
  823.         "z": "cc77ae9558cee9e4",
  824.         "name": "",
  825.         "pauseType": "rate",
  826.         "timeout": "5",
  827.         "timeoutUnits": "seconds",
  828.         "rate": "1",
  829.         "nbRateUnits": "2",
  830.         "rateUnits": "day",
  831.         "randomFirst": "1",
  832.         "randomLast": "5",
  833.         "randomUnits": "seconds",
  834.         "drop": true,
  835.         "allowrate": false,
  836.         "outputs": 1,
  837.         "x": 1160,
  838.         "y": 490,
  839.         "wires": [
  840.             [
  841.                 "da08e3ec7e4986e1"
  842.             ]
  843.         ]
  844.     },
  845.     {
  846.         "id": "e90ac9094a1db34d",
  847.         "type": "delay",
  848.         "z": "cc77ae9558cee9e4",
  849.         "name": "Own car",
  850.         "pauseType": "rate",
  851.         "timeout": "5",
  852.         "timeoutUnits": "seconds",
  853.         "rate": "1",
  854.         "nbRateUnits": "20",
  855.         "rateUnits": "second",
  856.         "randomFirst": "1",
  857.         "randomLast": "5",
  858.         "randomUnits": "seconds",
  859.         "drop": true,
  860.         "allowrate": false,
  861.         "outputs": 1,
  862.         "x": 1140,
  863.         "y": 110,
  864.         "wires": [
  865.             []
  866.         ]
  867.     },
  868.     {
  869.         "id": "66fdc87ef43c9f00",
  870.         "type": "api-call-service",
  871.         "z": "cc77ae9558cee9e4",
  872.         "name": "Save snapshot",
  873.         "server": "",
  874.         "version": 5,
  875.         "debugenabled": false,
  876.         "domain": "camera",
  877.         "service": "snapshot",
  878.         "areaId": [],
  879.         "deviceId": [],
  880.         "entityId": [
  881.             "camera.indkoersel_snapshots"
  882.         ],
  883.         "data": "{\"filename\":\"/media/LPR_unknown/{{ now().strftime(\\\"%Y_%m_%d_%H.%M.%S\\\") }}.jpg\"}",
  884.         "dataType": "json",
  885.         "mergeContext": "",
  886.         "mustacheAltTags": true,
  887.         "outputProperties": [],
  888.         "queue": "none",
  889.         "output_location": "payload",
  890.         "output_location_type": "none",
  891.         "x": 1620,
  892.         "y": 700,
  893.         "wires": [
  894.             []
  895.         ]
  896.     },
  897.     {
  898.         "id": "ce662893b99d7030",
  899.         "type": "delay",
  900.         "z": "cc77ae9558cee9e4",
  901.         "name": "save max 25 images per day",
  902.         "pauseType": "rate",
  903.         "timeout": "5",
  904.         "timeoutUnits": "seconds",
  905.         "rate": "25",
  906.         "nbRateUnits": "1",
  907.         "rateUnits": "day",
  908.         "randomFirst": "1",
  909.         "randomLast": "5",
  910.         "randomUnits": "seconds",
  911.         "drop": true,
  912.         "allowrate": false,
  913.         "outputs": 1,
  914.         "x": 1400,
  915.         "y": 700,
  916.         "wires": [
  917.             [
  918.                 "66fdc87ef43c9f00"
  919.             ]
  920.         ]
  921.     },
  922.     {
  923.         "id": "c124982ce5fe7a31",
  924.         "type": "inject",
  925.         "z": "cc77ae9558cee9e4",
  926.         "name": "test",
  927.         "props": [
  928.             {
  929.                 "p": "payload.results.plate",
  930.                 "v": "cj35245",
  931.                 "vt": "str"
  932.             }
  933.         ],
  934.         "repeat": "",
  935.         "crontab": "",
  936.         "once": false,
  937.         "onceDelay": 0.1,
  938.         "topic": "",
  939.         "x": 620,
  940.         "y": 80,
  941.         "wires": [
  942.             [
  943.                 "5804ba4786134b0d"
  944.             ]
  945.         ]
  946.     },
  947.     {
  948.         "id": "5804ba4786134b0d",
  949.         "type": "change",
  950.         "z": "cc77ae9558cee9e4",
  951.         "name": "",
  952.         "rules": [
  953.             {
  954.                 "t": "set",
  955.                 "p": "payload.platescore",
  956.                 "pt": "flow",
  957.                 "to": "0.9",
  958.                 "tot": "str"
  959.             }
  960.         ],
  961.         "action": "",
  962.         "property": "",
  963.         "from": "",
  964.         "to": "",
  965.         "reg": false,
  966.         "x": 820,
  967.         "y": 80,
  968.         "wires": [
  969.             [
  970.                 "d2db4f67b6e2dbfd"
  971.             ]
  972.         ]
  973.     },
  974.     {
  975.         "id": "5a239035bd9f8545",
  976.         "type": "change",
  977.         "z": "cc77ae9558cee9e4",
  978.         "name": "\"Christian",
  979.         "rules": [
  980.             {
  981.                 "t": "set",
  982.                 "p": "payload",
  983.                 "pt": "msg",
  984.                 "to": "Christian",
  985.                 "tot": "str"
  986.             }
  987.         ],
  988.         "action": "",
  989.         "property": "",
  990.         "from": "",
  991.         "to": "",
  992.         "reg": false,
  993.         "x": 1320,
  994.         "y": 210,
  995.         "wires": [
  996.             [
  997.                 "e245538c9cc5949c",
  998.                 "4c6ef8b5b5265833"
  999.             ]
  1000.         ]
  1001.     },
  1002.     {
  1003.         "id": "d3fe5e99d9c5bfad",
  1004.         "type": "server-state-changed",
  1005.         "z": "cc77ae9558cee9e4",
  1006.         "name": "When LPR is turned on",
  1007.         "server": "",
  1008.         "version": 4,
  1009.         "exposeToHomeAssistant": false,
  1010.         "haConfig": [
  1011.             {
  1012.                 "property": "name",
  1013.                 "value": ""
  1014.             },
  1015.             {
  1016.                 "property": "icon",
  1017.                 "value": ""
  1018.             }
  1019.         ],
  1020.         "entityidfiltertype": "exact",
  1021.         "outputinitially": false,
  1022.         "state_type": "str",
  1023.         "haltifstate": "on",
  1024.         "halt_if_type": "str",
  1025.         "halt_if_compare": "is",
  1026.         "outputs": 2,
  1027.         "output_only_on_state_change": true,
  1028.         "for": "0",
  1029.         "forType": "num",
  1030.         "forUnits": "minutes",
  1031.         "ignorePrevStateNull": false,
  1032.         "ignorePrevStateUnknown": false,
  1033.         "ignorePrevStateUnavailable": false,
  1034.         "ignoreCurrentStateUnknown": false,
  1035.         "ignoreCurrentStateUnavailable": false,
  1036.         "outputProperties": [
  1037.             {
  1038.                 "property": "payload",
  1039.                 "propertyType": "msg",
  1040.                 "value": "",
  1041.                 "valueType": "entityState"
  1042.             },
  1043.             {
  1044.                 "property": "data",
  1045.                 "propertyType": "msg",
  1046.                 "value": "",
  1047.                 "valueType": "eventData"
  1048.             },
  1049.             {
  1050.                 "property": "topic",
  1051.                 "propertyType": "msg",
  1052.                 "value": "",
  1053.                 "valueType": "triggerId"
  1054.             }
  1055.         ],
  1056.         "x": 120,
  1057.         "y": 180,
  1058.         "wires": [
  1059.             [
  1060.                 "6f0fb4cc19a44786"
  1061.             ],
  1062.             []
  1063.         ]
  1064.     },
  1065.     {
  1066.         "id": "a5c0378d0ba67136",
  1067.         "type": "api-call-service",
  1068.         "z": "cc77ae9558cee9e4",
  1069.         "name": "",
  1070.         "server": "",
  1071.         "version": 5,
  1072.         "debugenabled": false,
  1073.         "domain": "notify",
  1074.         "service": "google_assistant_sdk",
  1075.         "areaId": [],
  1076.         "deviceId": [],
  1077.         "entityId": [],
  1078.         "data": "{\"message\":\"Unknown car with license plate {{payload}} spottet in the driveway\"}",
  1079.         "dataType": "json",
  1080.         "mergeContext": "",
  1081.         "mustacheAltTags": false,
  1082.         "outputProperties": [],
  1083.         "queue": "none",
  1084.         "x": 1400,
  1085.         "y": 650,
  1086.         "wires": [
  1087.             []
  1088.         ]
  1089.     },
  1090.     {
  1091.         "id": "e245538c9cc5949c",
  1092.         "type": "api-call-service",
  1093.         "z": "cc77ae9558cee9e4",
  1094.         "name": "'s car is in the driveway\"",
  1095.         "server": "",
  1096.         "version": 5,
  1097.         "debugenabled": false,
  1098.         "domain": "notify",
  1099.         "service": "google_assistant_sdk",
  1100.         "areaId": [],
  1101.         "deviceId": [],
  1102.         "entityId": [],
  1103.         "data": "{\"message\":\"{{payload}}'s car is in the driveway\"}",
  1104.         "dataType": "json",
  1105.         "mergeContext": "",
  1106.         "mustacheAltTags": false,
  1107.         "outputProperties": [],
  1108.         "queue": "none",
  1109.         "x": 1610,
  1110.         "y": 320,
  1111.         "wires": [
  1112.             []
  1113.         ]
  1114.     },
  1115.     {
  1116.         "id": "639ec1f3b3adf19f",
  1117.         "type": "delay",
  1118.         "z": "cc77ae9558cee9e4",
  1119.         "name": "",
  1120.         "pauseType": "rate",
  1121.         "timeout": "5",
  1122.         "timeoutUnits": "seconds",
  1123.         "rate": "1",
  1124.         "nbRateUnits": "12",
  1125.         "rateUnits": "hour",
  1126.         "randomFirst": "1",
  1127.         "randomLast": "5",
  1128.         "randomUnits": "seconds",
  1129.         "drop": true,
  1130.         "allowrate": false,
  1131.         "outputs": 1,
  1132.         "x": 1160,
  1133.         "y": 250,
  1134.         "wires": [
  1135.             [
  1136.                 "60d5491cb4eff38b"
  1137.             ]
  1138.         ]
  1139.     },
  1140.     {
  1141.         "id": "60d5491cb4eff38b",
  1142.         "type": "change",
  1143.         "z": "cc77ae9558cee9e4",
  1144.         "name": "\"Julia",
  1145.         "rules": [
  1146.             {
  1147.                 "t": "set",
  1148.                 "p": "payload",
  1149.                 "pt": "msg",
  1150.                 "to": "Julia",
  1151.                 "tot": "str"
  1152.             }
  1153.         ],
  1154.         "action": "",
  1155.         "property": "",
  1156.         "from": "",
  1157.         "to": "",
  1158.         "reg": false,
  1159.         "x": 1310,
  1160.         "y": 250,
  1161.         "wires": [
  1162.             [
  1163.                 "e245538c9cc5949c",
  1164.                 "4c6ef8b5b5265833"
  1165.             ]
  1166.         ]
  1167.     },
  1168.     {
  1169.         "id": "db6178b5c2036375",
  1170.         "type": "delay",
  1171.         "z": "cc77ae9558cee9e4",
  1172.         "name": "",
  1173.         "pauseType": "rate",
  1174.         "timeout": "5",
  1175.         "timeoutUnits": "seconds",
  1176.         "rate": "1",
  1177.         "nbRateUnits": "12",
  1178.         "rateUnits": "hour",
  1179.         "randomFirst": "1",
  1180.         "randomLast": "5",
  1181.         "randomUnits": "seconds",
  1182.         "drop": true,
  1183.         "allowrate": false,
  1184.         "outputs": 1,
  1185.         "x": 1160,
  1186.         "y": 290,
  1187.         "wires": [
  1188.             [
  1189.                 "bc1446cb13c16f89"
  1190.             ]
  1191.         ]
  1192.     },
  1193.     {
  1194.         "id": "bc1446cb13c16f89",
  1195.         "type": "change",
  1196.         "z": "cc77ae9558cee9e4",
  1197.         "name": "\"Luke",
  1198.         "rules": [
  1199.             {
  1200.                 "t": "set",
  1201.                 "p": "payload",
  1202.                 "pt": "msg",
  1203.                 "to": "Luke",
  1204.                 "tot": "str"
  1205.             }
  1206.         ],
  1207.         "action": "",
  1208.         "property": "",
  1209.         "from": "",
  1210.         "to": "",
  1211.         "reg": false,
  1212.         "x": 1310,
  1213.         "y": 290,
  1214.         "wires": [
  1215.             [
  1216.                 "e245538c9cc5949c",
  1217.                 "4c6ef8b5b5265833"
  1218.             ]
  1219.         ]
  1220.     },
  1221.     {
  1222.         "id": "ea7e6ce1ef215ce9",
  1223.         "type": "delay",
  1224.         "z": "cc77ae9558cee9e4",
  1225.         "name": "",
  1226.         "pauseType": "rate",
  1227.         "timeout": "5",
  1228.         "timeoutUnits": "seconds",
  1229.         "rate": "1",
  1230.         "nbRateUnits": "12",
  1231.         "rateUnits": "hour",
  1232.         "randomFirst": "1",
  1233.         "randomLast": "5",
  1234.         "randomUnits": "seconds",
  1235.         "drop": true,
  1236.         "allowrate": false,
  1237.         "outputs": 1,
  1238.         "x": 1160,
  1239.         "y": 330,
  1240.         "wires": [
  1241.             [
  1242.                 "fbba4a5474775dd8"
  1243.             ]
  1244.         ]
  1245.     },
  1246.     {
  1247.         "id": "fbba4a5474775dd8",
  1248.         "type": "change",
  1249.         "z": "cc77ae9558cee9e4",
  1250.         "name": "\"Mom",
  1251.         "rules": [
  1252.             {
  1253.                 "t": "set",
  1254.                 "p": "payload",
  1255.                 "pt": "msg",
  1256.                 "to": "Mom",
  1257.                 "tot": "str"
  1258.             }
  1259.         ],
  1260.         "action": "",
  1261.         "property": "",
  1262.         "from": "",
  1263.         "to": "",
  1264.         "reg": false,
  1265.         "x": 1310,
  1266.         "y": 330,
  1267.         "wires": [
  1268.             [
  1269.                 "e245538c9cc5949c",
  1270.                 "4c6ef8b5b5265833"
  1271.             ]
  1272.         ]
  1273.     },
  1274.     {
  1275.         "id": "6110178ec0e621c3",
  1276.         "type": "change",
  1277.         "z": "cc77ae9558cee9e4",
  1278.         "name": "\"Dad",
  1279.         "rules": [
  1280.             {
  1281.                 "t": "set",
  1282.                 "p": "payload",
  1283.                 "pt": "msg",
  1284.                 "to": "Dad",
  1285.                 "tot": "str"
  1286.             }
  1287.         ],
  1288.         "action": "",
  1289.         "property": "",
  1290.         "from": "",
  1291.         "to": "",
  1292.         "reg": false,
  1293.         "x": 1310,
  1294.         "y": 370,
  1295.         "wires": [
  1296.             [
  1297.                 "e245538c9cc5949c",
  1298.                 "4c6ef8b5b5265833"
  1299.             ]
  1300.         ]
  1301.     },
  1302.     {
  1303.         "id": "23cd901e843219c3",
  1304.         "type": "delay",
  1305.         "z": "cc77ae9558cee9e4",
  1306.         "name": "",
  1307.         "pauseType": "rate",
  1308.         "timeout": "5",
  1309.         "timeoutUnits": "seconds",
  1310.         "rate": "1",
  1311.         "nbRateUnits": "12",
  1312.         "rateUnits": "hour",
  1313.         "randomFirst": "1",
  1314.         "randomLast": "5",
  1315.         "randomUnits": "seconds",
  1316.         "drop": true,
  1317.         "allowrate": false,
  1318.         "outputs": 1,
  1319.         "x": 1160,
  1320.         "y": 370,
  1321.         "wires": [
  1322.             [
  1323.                 "6110178ec0e621c3"
  1324.             ]
  1325.         ]
  1326.     },
  1327.     {
  1328.         "id": "4d1f0d1b8438c7f4",
  1329.         "type": "delay",
  1330.         "z": "cc77ae9558cee9e4",
  1331.         "name": "",
  1332.         "pauseType": "rate",
  1333.         "timeout": "5",
  1334.         "timeoutUnits": "seconds",
  1335.         "rate": "1",
  1336.         "nbRateUnits": "12",
  1337.         "rateUnits": "hour",
  1338.         "randomFirst": "1",
  1339.         "randomLast": "5",
  1340.         "randomUnits": "seconds",
  1341.         "drop": true,
  1342.         "allowrate": false,
  1343.         "outputs": 1,
  1344.         "x": 1160,
  1345.         "y": 410,
  1346.         "wires": [
  1347.             [
  1348.                 "82dd721b1da3072a"
  1349.             ]
  1350.         ]
  1351.     },
  1352.     {
  1353.         "id": "82dd721b1da3072a",
  1354.         "type": "change",
  1355.         "z": "cc77ae9558cee9e4",
  1356.         "name": "\"Stefan",
  1357.         "rules": [
  1358.             {
  1359.                 "t": "set",
  1360.                 "p": "payload",
  1361.                 "pt": "msg",
  1362.                 "to": "Stefan",
  1363.                 "tot": "str"
  1364.             }
  1365.         ],
  1366.         "action": "",
  1367.         "property": "",
  1368.         "from": "",
  1369.         "to": "",
  1370.         "reg": false,
  1371.         "x": 1320,
  1372.         "y": 410,
  1373.         "wires": [
  1374.             [
  1375.                 "e245538c9cc5949c",
  1376.                 "4c6ef8b5b5265833"
  1377.             ]
  1378.         ]
  1379.     },
  1380.     {
  1381.         "id": "da08e3ec7e4986e1",
  1382.         "type": "change",
  1383.         "z": "cc77ae9558cee9e4",
  1384.         "name": "\"Nanna",
  1385.         "rules": [
  1386.             {
  1387.                 "t": "set",
  1388.                 "p": "payload",
  1389.                 "pt": "msg",
  1390.                 "to": "Nanna",
  1391.                 "tot": "str"
  1392.             }
  1393.         ],
  1394.         "action": "",
  1395.         "property": "",
  1396.         "from": "",
  1397.         "to": "",
  1398.         "reg": false,
  1399.         "x": 1320,
  1400.         "y": 490,
  1401.         "wires": [
  1402.             [
  1403.                 "e245538c9cc5949c",
  1404.                 "4c6ef8b5b5265833"
  1405.             ]
  1406.         ]
  1407.     },
  1408.     {
  1409.         "id": "3e1abb50a3371c33",
  1410.         "type": "change",
  1411.         "z": "cc77ae9558cee9e4",
  1412.         "name": "\"Brian",
  1413.         "rules": [
  1414.             {
  1415.                 "t": "set",
  1416.                 "p": "payload",
  1417.                 "pt": "msg",
  1418.                 "to": "Brian",
  1419.                 "tot": "str"
  1420.             }
  1421.         ],
  1422.         "action": "",
  1423.         "property": "",
  1424.         "from": "",
  1425.         "to": "",
  1426.         "reg": false,
  1427.         "x": 1310,
  1428.         "y": 570,
  1429.         "wires": [
  1430.             [
  1431.                 "e245538c9cc5949c",
  1432.                 "4c6ef8b5b5265833"
  1433.             ]
  1434.         ]
  1435.     },
  1436.     {
  1437.         "id": "4c6ef8b5b5265833",
  1438.         "type": "api-call-service",
  1439.         "z": "cc77ae9558cee9e4",
  1440.         "name": "mobile notification with link",
  1441.         "server": "",
  1442.         "version": 5,
  1443.         "debugenabled": false,
  1444.         "domain": "notify",
  1445.         "service": "mobile_app_iphone_old",
  1446.         "areaId": [],
  1447.         "deviceId": [],
  1448.         "entityId": [],
  1449.         "data": "{\"title\":\"License plate recognized\",\"message\":\"{{payload}}'s car is in the driveway\"}",
  1450.         "dataType": "json",
  1451.         "mergeContext": "",
  1452.         "mustacheAltTags": false,
  1453.         "outputProperties": [],
  1454.         "queue": "none",
  1455.         "output_location": "payload",
  1456.         "output_location_type": "none",
  1457.         "x": 1620,
  1458.         "y": 370,
  1459.         "wires": [
  1460.             []
  1461.         ]
  1462.     },
  1463.     {
  1464.         "id": "0d98b62a4dde84f9",
  1465.         "type": "comment",
  1466.         "z": "cc77ae9558cee9e4",
  1467.         "name": "Video of this flow in action can be found here: https://youtu.be/fyAE7fB1u6s?si=nr3IOuo5EVUQ3YBH",
  1468.         "info": "",
  1469.         "x": 370,
  1470.         "y": 30,
  1471.         "wires": []
  1472.     },
  1473.     {
  1474.         "id": "093a4b3592131ac9",
  1475.         "type": "comment",
  1476.         "z": "cc77ae9558cee9e4",
  1477.         "name": "https://support.reolink.com/hc/en-us/articles/360007011233-How-to-Capture-Live-JPEG-Image-of-Reolink-Cameras-via-Web-Browsers/",
  1478.         "info": "",
  1479.         "x": 480,
  1480.         "y": 760,
  1481.         "wires": []
  1482.     }
  1483. ]
Tags: SmartHome lpr
Advertisement
Add Comment
Please, Sign In to add comment