{"version":3,"file":"component---src-pages-advanced-user-alarmserver-queries-for-your-smarthome-index-mdx-9c6327d67ab0c0bc7398.js","mappings":"yUAWaA,EAAe,CAC1B,MAAS,uCACT,KAAQ,yDACR,YAAe,aACf,OAAU,kBACV,QAAW,4DACX,MAAS,gCACT,OAAU,8CACV,IAAO,kEACP,QAAW,gBACX,SAAY,YACZ,KAAQ,YAEJC,EAAc,CAClBD,gBAEIE,EAAY,UACH,SAASC,EAAUC,GAG9B,IAH+B,WACjCC,GAEDD,EADIE,GAAKC,EAAAA,EAAAA,GAAAH,EAAAI,GAER,OAAOC,EAAAA,EAAAA,IAACP,EAASQ,OAAAC,OAAA,GAAKV,EAAiBK,EAAK,CAAED,WAAYA,EAAYO,QAAQ,eAK5EH,EAAAA,EAAAA,IAACI,EAAAA,EAAS,CAACC,MAAM,uCAAuCC,YAAY,aAAaC,OAAO,kBAAkBC,IAAI,mBAAmBC,YAAY,4DAA4DC,MAAM,6CAA6CC,QAAQ,8CAA8CC,SAAUf,EAAMe,SAASC,SAAUV,QAAQ,eAC7VH,EAAAA,EAAAA,IAACc,EAAAA,EAAW,CAACC,WAAYlB,EAAMe,SAAUI,WAAYnB,EAAMe,SAASC,SAAUI,WAAW,iDAAiDC,WAAW,qDAAqDC,WAAW,aAAahB,QAAQ,iBAC1OH,EAAAA,EAAAA,IAACoB,EAAAA,EAAU,CAACjB,QAAQ,gBACpBH,EAAAA,EAAAA,IAAA,MACE,GAAM,uCACN,MAAS,CACP,SAAY,cAEbA,EAAAA,EAAAA,IAAA,KAAGqB,WAAW,KACb,KAAQ,wCACR,aAAc,iDACd,UAAa,4BACZrB,EAAAA,EAAAA,IAAA,OAAKqB,WAAW,IACf,cAAe,OACf,UAAa,QACb,OAAU,KACV,QAAW,MACX,QAAW,YACX,MAAS,OACRrB,EAAAA,EAAAA,IAAA,QAAMqB,WAAW,MAChB,SAAY,UACZ,EAAK,oVACa,yCAC1BrB,EAAAA,EAAAA,IAAA,WACEA,EAAAA,EAAA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B,SAAY,WACZ,IAAO,IACP,KAAQ,OAEH,cACD,QACZ,YAEJrB,EAAAA,EAAAA,IAAA,iCAGJ,CAEAN,EAAW+B,gBAAiB,C","sources":["webpack://instar-wiki/./src/pages/Advanced_User/Alarmserver_Queries_for_your_Smarthome/index.mdx"],"sourcesContent":["import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsxRuntime classic */\n/* @jsx mdx */\nimport { EuiSpacer } from '@elastic/eui';\nimport APIv2Box from 'components/Frequently_Asked_Question/WQHD_MQTTv5_Alarmserver_APIv2_NodeRED/PrimaryBox';\nimport NavButtons from 'components/Advanced_User/NavButtons';\nimport BreadCrumbs from 'components/Layout/BreadCrumbs';\nimport SEOHelmet from 'components/Layout/SEOHelmet';\nimport TimeLine from 'components/Products/CommentList/MqttIFTTTList';\nexport const _frontmatter = {\n \"title\": \"How to work with Alarmserver Queries\",\n \"path\": \"/Advanced_User/Alarmserver_Queries_for_your_Smarthome/\",\n \"dateChanged\": \"2019-09-20\",\n \"author\": \"Mike Polinowski\",\n \"excerpt\": \"Use the INSTAR Alarmserver Queries to automate your Home.\",\n \"image\": \"./AU_SearchThumb_Node-RED.png\",\n \"social\": \"/images/Search/AU_SearchThumb_Node-RED.webp\",\n \"toc\": \"/images/Search/TOC_Icons/Wiki_Tiles_Advanced_NodeRED_white.webp\",\n \"chapter\": \"Advanced User\",\n \"category\": \"smarthome\",\n \"type\": \"Node-RED\"\n};\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = \"wrapper\";\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n\n\n\n\n <SEOHelmet title='How to work with Alarmserver Queries' dateChanged='2019-09-20' author='Mike Polinowski' tag='INSTAR IP Camera' description='Use the INSTAR Alarmserver Queries to automate your Home.' image='/images/Search/AU_SearchThumb_Node-RED.png' twitter='/images/Search/AU_SearchThumb_Node-RED.webp' location={props.location.pathname} mdxType=\"SEOHelmet\" />\n <BreadCrumbs locationBC={props.location} locationEN={props.location.pathname} locationDE='/de/Erweitert/Alexa_Echo5_and_Monocle_Gateway/' locationFR='/fr/Advanced_User/Alexa_Echo5_and_Monocle_Gateway/' crumbLabel=\"AS Queries\" mdxType=\"BreadCrumbs\" />\n <NavButtons mdxType=\"NavButtons\" />\n <h1 {...{\n \"id\": \"how-to-work-with-alarmserver-queries\",\n \"style\": {\n \"position\": \"relative\"\n }\n }}><a parentName=\"h1\" {...{\n \"href\": \"#how-to-work-with-alarmserver-queries\",\n \"aria-label\": \"how to work with alarmserver queries permalink\",\n \"className\": \"header-link-icon before\"\n }}><svg parentName=\"a\" {...{\n \"aria-hidden\": \"true\",\n \"focusable\": \"false\",\n \"height\": \"16\",\n \"version\": \"1.1\",\n \"viewBox\": \"0 0 16 16\",\n \"width\": \"16\"\n }}><path parentName=\"svg\" {...{\n \"fillRule\": \"evenodd\",\n \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n }}></path></svg></a>{`How to work with Alarmserver Queries`}</h1>\n <ul>\n <li parentName=\"ul\"><a parentName=\"li\" {...{\n \"href\": \"#setup\"\n }}>{`Setup`}</a>\n <ul parentName=\"li\">\n <li parentName=\"ul\"><a parentName=\"li\" {...{\n \"href\": \"#what-we-want\"\n }}>{`What we want`}</a></li>\n <li parentName=\"ul\"><a parentName=\"li\" {...{\n \"href\": \"#node-red-flow\"\n }}>{`Node-RED Flow`}</a></li>\n <li parentName=\"ul\"><a parentName=\"li\" {...{\n \"href\": \"#alarmserver-configuration\"\n }}>{`Alarmserver Configuration`}</a></li>\n <li parentName=\"ul\"><a parentName=\"li\" {...{\n \"href\": \"#testing\"\n }}>{`Testing`}</a></li>\n </ul>\n </li>\n <li parentName=\"ul\"><a parentName=\"li\" {...{\n \"href\": \"#import-the-flow-into-node-red\"\n }}>{`Import the Flow into Node-RED`}</a></li>\n </ul>\n <p>{`INSTAR IP cameras offer an Alarmserver Function - `}<a parentName=\"p\" {...{\n \"href\": \"/en/Web_User_Interface/1080p_Series/Alarm/Alarm_Server/\"\n }}>{`1080p Models`}</a>{`, `}<a parentName=\"p\" {...{\n \"href\": \"/en/Web_User_Interface/720p_Series/Alarm/Alarmserver/\"\n }}>{`720p Models`}</a>{` - that allows you to send a request to a home automation system on your network. Thus, notifying your smarthome and trigger an response.`}</p>\n <p>{`In an recent update we introduced parameters (`}<strong parentName=\"p\">{`URL Queries`}</strong>{`) that can be appended to this HTTP GET request. There are three custom parameters available as well as a specified parameter that can tell us what triggered the alarm. The latter - called `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`active`}</code>{` can have the following values:`}</p>\n <EuiSpacer mdxType=\"EuiSpacer\" />\n <APIv2Box mdxType=\"APIv2Box\" />\n <EuiSpacer mdxType=\"EuiSpacer\" />\n <ul>\n <li parentName=\"ul\"><strong parentName=\"li\">{`v1 API`}</strong>{` (`}<em parentName=\"li\">{`all Full HD models and WQHD models up to firmware version 3.4.0`}{`[883]`}</em>{`)`}\n <ul parentName=\"li\">\n <li parentName=\"ul\">{`Alarm Area 1 triggered: `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=1`}</code></li>\n <li parentName=\"ul\">{`Alarm Area 2 triggered: `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=2`}</code></li>\n <li parentName=\"ul\">{`Alarm Area 3 triggered: `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=3`}</code></li>\n <li parentName=\"ul\">{`Alarm Area 4 triggered: `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=4`}</code></li>\n <li parentName=\"ul\">{`Alarm-In / PIR triggered: `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=5`}</code></li>\n <li parentName=\"ul\">{`Audio Alarm triggered: `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=6`}</code></li>\n <li parentName=\"ul\">{`Motion Detection & triggered (Area 1): `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=7`}</code></li>\n <li parentName=\"ul\">{`Motion Detection & triggered (Area 2): `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=8`}</code></li>\n <li parentName=\"ul\">{`Motion Detection & triggered (Area 3): `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=9`}</code></li>\n <li parentName=\"ul\">{`Motion Detection & triggered (Area 4): `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=10`}</code></li>\n <li parentName=\"ul\">{`Manual trigger (`}<em parentName=\"li\">{`cmd=pushhostalarm`}</em>{`): `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=99`}</code></li>\n </ul>\n </li>\n </ul>\n <p>{`We now want to build a Webhook in Node-RED - as a placeholder for one of the many smarthome solutions available - and have this Webhook trigger different actions depending on the `}<strong parentName=\"p\">{`URL Query`}</strong>{` it receives.`}</p>\n <EuiSpacer mdxType=\"EuiSpacer\" />\n <TimeLine mdxType=\"TimeLine\" />\n <EuiSpacer mdxType=\"EuiSpacer\" />\n <h2 {...{\n \"id\": \"setup\",\n \"style\": {\n \"position\": \"relative\"\n }\n }}><a parentName=\"h2\" {...{\n \"href\": \"#setup\",\n \"aria-label\": \"setup permalink\",\n \"className\": \"header-link-icon before\"\n }}><svg parentName=\"a\" {...{\n \"aria-hidden\": \"true\",\n \"focusable\": \"false\",\n \"height\": \"16\",\n \"version\": \"1.1\",\n \"viewBox\": \"0 0 16 16\",\n \"width\": \"16\"\n }}><path parentName=\"svg\" {...{\n \"fillRule\": \"evenodd\",\n \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n }}></path></svg></a>{`Setup`}</h2>\n <ul>\n <li parentName=\"ul\">{`First camera: IP=192.168.2.116, port=80, name=frontdoor, login=admin/instar`}</li>\n <li parentName=\"ul\">{`Second camera: IP=192.168.2.117, port=80, name=garden, login=admin/instar`}</li>\n <li parentName=\"ul\">{`Node-RED Server: IP=192.168.2.48, port=1880`}</li>\n </ul>\n <h3 {...{\n \"id\": \"what-we-want\",\n \"style\": {\n \"position\": \"relative\"\n }\n }}><a parentName=\"h3\" {...{\n \"href\": \"#what-we-want\",\n \"aria-label\": \"what we want permalink\",\n \"className\": \"header-link-icon before\"\n }}><svg parentName=\"a\" {...{\n \"aria-hidden\": \"true\",\n \"focusable\": \"false\",\n \"height\": \"16\",\n \"version\": \"1.1\",\n \"viewBox\": \"0 0 16 16\",\n \"width\": \"16\"\n }}><path parentName=\"svg\" {...{\n \"fillRule\": \"evenodd\",\n \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n }}></path></svg></a>{`What we want`}</h3>\n <p>{`If our first camera is triggered we want it to contact the Node-RED Webhook, identify itself as `}<strong parentName=\"p\">{`frontdoor`}</strong>{` and if the alarm was triggered by an `}<a parentName=\"p\" {...{\n \"href\": \"/en/Web_User_Interface/1080p_Series/Alarm/Actions/\"\n }}>{`audio detection`}</a>{` (`}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`&active=6`}</code>{`), we want to camera to move to stored `}<em parentName=\"p\">{`position 3`}</em>{` - which is where we estimate that the noise will be coming from. If the alarm was triggered by the internal motion detection (so the query will be `}<strong parentName=\"p\">{`not`}</strong>{` `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`&active=6`}</code>{`), we want to contact our second camera `}<strong parentName=\"p\">{`garden`}</strong>{` and have it swing around (`}<em parentName=\"p\">{`position 2`}</em>{`) to check out the area, where the motion was detected.`}</p>\n <p>{`And vice versa - if our second camera triggers an alert it should contact the Node-RED Webhook, identify as `}<strong parentName=\"p\">{`garden`}</strong>{`, and in case of an audio alarm have it move to `}<em parentName=\"p\">{`position 3`}</em>{`. If the alarm trigger was not the audio detection the `}<strong parentName=\"p\">{`frontdoor`}</strong>{` camera should be contacted instead and move to `}<em parentName=\"p\">{`position 2`}</em>{`.`}</p>\n <p>{`To reset our setup after an alarm trigger, we can set `}<em parentName=\"p\">{`position 1`}</em>{` to be our cameras `}<a parentName=\"p\" {...{\n \"href\": \"/en/Web_User_Interface/1080p_Series/Features/PTZ/\"\n }}>{`Park Position`}</a>{`. Or actively send a command to our camera to go back to the idle position - with a delay of our choosing.`}</p>\n <p>{`See `}<a parentName=\"p\" {...{\n \"href\": \"/en/Software/Home_Automation/Node-RED/#9-interconnect-your-cameras\"\n }}>{`Node-RED Smarthome Overview`}</a>{` for an use case.`}</p>\n <h3 {...{\n \"id\": \"node-red-flow\",\n \"style\": {\n \"position\": \"relative\"\n }\n }}><a parentName=\"h3\" {...{\n \"href\": \"#node-red-flow\",\n \"aria-label\": \"node red flow permalink\",\n \"className\": \"header-link-icon before\"\n }}><svg parentName=\"a\" {...{\n \"aria-hidden\": \"true\",\n \"focusable\": \"false\",\n \"height\": \"16\",\n \"version\": \"1.1\",\n \"viewBox\": \"0 0 16 16\",\n \"width\": \"16\"\n }}><path parentName=\"svg\" {...{\n \"fillRule\": \"evenodd\",\n \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n }}></path></svg></a>{`Node-RED Flow`}</h3>\n <p><span parentName=\"p\" {...{\n \"className\": \"gatsby-resp-image-wrapper\",\n \"style\": {\n \"position\": \"relative\",\n \"display\": \"block\",\n \"marginLeft\": \"auto\",\n \"marginRight\": \"auto\",\n \"maxWidth\": \"795px\"\n }\n }}>{`\n `}<a parentName=\"span\" {...{\n \"className\": \"gatsby-resp-image-link\",\n \"href\": \"/en/static/f09f7295cc700d5d92489bdddf4d605e/65c7b/INSTAR_Alarmserver_Queries_in_Node-RED_01.png\",\n \"style\": {\n \"display\": \"block\"\n },\n \"target\": \"_blank\",\n \"rel\": \"noopener\"\n }}>{`\n `}<span parentName=\"a\" {...{\n \"className\": \"gatsby-resp-image-background-image\",\n \"style\": {\n \"paddingBottom\": \"66.95652173913044%\",\n \"position\": \"relative\",\n \"bottom\": \"0\",\n \"left\": \"0\",\n \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAIAAAAmMtkJAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAB1ElEQVQoz4WSy2/TQBDG8/+fK44cOCBxrDhVQISgERAFNY+GuPHba3sdko3X9q73vYtaBw5uJb7bHH7fzDczEzeStc45SesuXdB8yeipbbO2zbWW7pkm1jrGUF3HdZ1gnNR1ROjpXAT18l27ve7OCTqvTseNlP3gPYItxlFZ/oBwUVU/q2qOkNd21Fr3X01GtdZWCK2UdEYaLYwxCCVZ9iVJpmX5behvrbZP3gNstdGM9bSnQgrOZQmmwa9XoXeVp9dxBAIv8ndxAbKqWqTpNE4+YBxdYCEEJUQJ5oxy1jDWYwwbDBqcU9ocDkEcTYPgI4RzIYjWXKneGHWBmZANDJvtDVq+b3af8ekhDV+n/lWR3mBMH8d8GtI+W8MlszXaKGEkN0poJRjr+55xrqR0GAMIv+fFDKF7Y8wYHlm2HYX518R/G+/fVMWnNAHRPgz3UQXTw2EJwAyAW0LgC9t+vKR1tMs6vCHtusUhyLzQvw32swquKD1QCiktlSIX2GitpDBacsYYl6Nk2jAuToxVnKMXMp/rZu2F8/Xei8A527XJHQErjrKOIIR2CD10bWaM/fth9t+fTYaQflZt/Lz4jSVKSbok2Z24wNvj8b6u/eE2o85/AAt+4ENghPeLAAAAAElFTkSuQmCC')\",\n \"backgroundSize\": \"cover\",\n \"display\": \"block\"\n }\n }}></span>{`\n `}<picture parentName=\"a\">{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/f09f7295cc700d5d92489bdddf4d605e/e4706/INSTAR_Alarmserver_Queries_in_Node-RED_01.avif 230w\", \"/en/static/f09f7295cc700d5d92489bdddf4d605e/d1af7/INSTAR_Alarmserver_Queries_in_Node-RED_01.avif 460w\", \"/en/static/f09f7295cc700d5d92489bdddf4d605e/70470/INSTAR_Alarmserver_Queries_in_Node-RED_01.avif 795w\"],\n \"sizes\": \"(max-width: 795px) 100vw, 795px\",\n \"type\": \"image/avif\"\n }}></source><source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/f09f7295cc700d5d92489bdddf4d605e/a0b58/INSTAR_Alarmserver_Queries_in_Node-RED_01.webp 230w\", \"/en/static/f09f7295cc700d5d92489bdddf4d605e/bc10c/INSTAR_Alarmserver_Queries_in_Node-RED_01.webp 460w\", \"/en/static/f09f7295cc700d5d92489bdddf4d605e/399bf/INSTAR_Alarmserver_Queries_in_Node-RED_01.webp 795w\"],\n \"sizes\": \"(max-width: 795px) 100vw, 795px\",\n \"type\": \"image/webp\"\n }}></source>{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/f09f7295cc700d5d92489bdddf4d605e/81c8e/INSTAR_Alarmserver_Queries_in_Node-RED_01.png 230w\", \"/en/static/f09f7295cc700d5d92489bdddf4d605e/08a84/INSTAR_Alarmserver_Queries_in_Node-RED_01.png 460w\", \"/en/static/f09f7295cc700d5d92489bdddf4d605e/65c7b/INSTAR_Alarmserver_Queries_in_Node-RED_01.png 795w\"],\n \"sizes\": \"(max-width: 795px) 100vw, 795px\",\n \"type\": \"image/png\"\n }}></source>{`\n `}<img parentName=\"picture\" {...{\n \"className\": \"gatsby-resp-image-image\",\n \"src\": \"/en/static/f09f7295cc700d5d92489bdddf4d605e/65c7b/INSTAR_Alarmserver_Queries_in_Node-RED_01.png\",\n \"alt\": \"Alarmserver Queries in Node-RED\",\n \"title\": \"Alarmserver Queries in Node-RED\",\n \"loading\": \"lazy\",\n \"decoding\": \"async\",\n \"style\": {\n \"width\": \"100%\",\n \"height\": \"100%\",\n \"margin\": \"0\",\n \"verticalAlign\": \"middle\",\n \"position\": \"absolute\",\n \"top\": \"0\",\n \"left\": \"0\"\n }\n }}></img>{`\n `}</picture>{`\n `}</a>{`\n `}</span></p>\n <p>{`In this flow we setup a Webhook under the URL `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`/as-webhook/`}</code>{` - so that we can contact it under the IP/Port of our Node-RED server + URL. In this case this is: `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`http://192.168.2.48:1880/as-webhook/`}</code>{`:`}</p>\n <p><span parentName=\"p\" {...{\n \"className\": \"gatsby-resp-image-wrapper\",\n \"style\": {\n \"position\": \"relative\",\n \"display\": \"block\",\n \"marginLeft\": \"auto\",\n \"marginRight\": \"auto\",\n \"maxWidth\": \"851px\"\n }\n }}>{`\n `}<a parentName=\"span\" {...{\n \"className\": \"gatsby-resp-image-link\",\n \"href\": \"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/0fcea/INSTAR_Alarmserver_Queries_in_Node-RED_02.png\",\n \"style\": {\n \"display\": \"block\"\n },\n \"target\": \"_blank\",\n \"rel\": \"noopener\"\n }}>{`\n `}<span parentName=\"a\" {...{\n \"className\": \"gatsby-resp-image-background-image\",\n \"style\": {\n \"paddingBottom\": \"20%\",\n \"position\": \"relative\",\n \"bottom\": \"0\",\n \"left\": \"0\",\n \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAECAIAAAABPYjBAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAt0lEQVQI102OsQrCMBiE+/CKuLg6iI8gdnaqrcWa2qS1IKiIIOgojbYx5M+fSBS1H8dNd9x5jOV5Xvy1KUlBd6e9Ag0AxhgAba01LRDRWgsAHs1IugqdkpCsQrqMsvHwOBrcb1UjBGotmgYAsIXWGhFdOSNxPPcXgR8H0yj0yWyy7fQu3T4/n9U7yivOOZdSKqX0F2OMUspjjOXuuYNRmq6zpCwP14sQTyklItZ1LYR4PJz/xj/lF5fk1z9Uv5UVAAAAAElFTkSuQmCC')\",\n \"backgroundSize\": \"cover\",\n \"display\": \"block\"\n }\n }}></span>{`\n `}<picture parentName=\"a\">{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/e4706/INSTAR_Alarmserver_Queries_in_Node-RED_02.avif 230w\", \"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/d1af7/INSTAR_Alarmserver_Queries_in_Node-RED_02.avif 460w\", \"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/7aa96/INSTAR_Alarmserver_Queries_in_Node-RED_02.avif 851w\"],\n \"sizes\": \"(max-width: 851px) 100vw, 851px\",\n \"type\": \"image/avif\"\n }}></source><source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/a0b58/INSTAR_Alarmserver_Queries_in_Node-RED_02.webp 230w\", \"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/bc10c/INSTAR_Alarmserver_Queries_in_Node-RED_02.webp 460w\", \"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/155dd/INSTAR_Alarmserver_Queries_in_Node-RED_02.webp 851w\"],\n \"sizes\": \"(max-width: 851px) 100vw, 851px\",\n \"type\": \"image/webp\"\n }}></source>{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/81c8e/INSTAR_Alarmserver_Queries_in_Node-RED_02.png 230w\", \"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/08a84/INSTAR_Alarmserver_Queries_in_Node-RED_02.png 460w\", \"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/0fcea/INSTAR_Alarmserver_Queries_in_Node-RED_02.png 851w\"],\n \"sizes\": \"(max-width: 851px) 100vw, 851px\",\n \"type\": \"image/png\"\n }}></source>{`\n `}<img parentName=\"picture\" {...{\n \"className\": \"gatsby-resp-image-image\",\n \"src\": \"/en/static/f2cf0612c880f0e58f2f280c4ba467d8/0fcea/INSTAR_Alarmserver_Queries_in_Node-RED_02.png\",\n \"alt\": \"Alarmserver Queries in Node-RED\",\n \"title\": \"Alarmserver Queries in Node-RED\",\n \"loading\": \"lazy\",\n \"decoding\": \"async\",\n \"style\": {\n \"width\": \"100%\",\n \"height\": \"100%\",\n \"margin\": \"0\",\n \"verticalAlign\": \"middle\",\n \"position\": \"absolute\",\n \"top\": \"0\",\n \"left\": \"0\"\n }\n }}></img>{`\n `}</picture>{`\n `}</a>{`\n `}</span></p>\n <p>{`When we receive a GET request via this URL, we now have to strip the URL queries that have been send with it. First we check for a query called `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`camera`}</code>{` and see if it has the value `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`frontdoor`}</code>{` or `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`garden`}</code>{`, to identify the camera that contacted us.`}</p>\n <p>{`An then we have to check for the `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`active`}</code>{` parameter, to if the alarm was triggered by the audio alarm - `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`&active=6`}</code>{` - or not. If yes, we have to return the CGI command to start a video recording and move to `}<strong parentName=\"p\">{`position 3`}</strong>{` to the triggering camera. Otherwise, send the CGI command to move to `}<strong parentName=\"p\">{`position 2`}</strong>{` and start recording to the other camera.`}</p>\n <p>{`And after a set time - I will choose 15s - we have to send the command to stop the recording and to move back to position 1.`}</p>\n <p>{`For our first camera those commands are as follows:`}</p>\n <p><strong parentName=\"p\">{`ALARM ACTION`}</strong></p>\n <ul>\n <li parentName=\"ul\"><code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`http://192.168.2.116/param.cgi?cmd=manualrec&-act=on&-time=60&cmd=preset&-act=goto&-number=2&-usr=admin&-pwd=instar`}</code>{` // if `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=6`}</code></li>\n <li parentName=\"ul\"><code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`http://192.168.2.117/param.cgi?cmd=manualrec&-act=on&-time=60&cmd=preset&-act=goto&-number=1&-usr=admin&-pwd=instar`}</code>{` // if `}<strong parentName=\"li\">{`not`}</strong>{` `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=6`}</code></li>\n </ul>\n <p><strong parentName=\"p\">{`RESET`}</strong></p>\n <ul>\n <li parentName=\"ul\"><code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`http://192.168.2.116/param.cgi?cmd=manualrec&-act=off&cmd=preset&-act=goto&-number=0&-usr=admin&-pwd=instar`}</code>{` // if `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=6`}</code></li>\n <li parentName=\"ul\"><code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`http://192.168.2.117/param.cgi?cmd=manualrec&-act=off&cmd=preset&-act=goto&-number=0&-usr=admin&-pwd=instar`}</code>{` // if `}<strong parentName=\"li\">{`not`}</strong>{` `}<code parentName=\"li\" {...{\n \"className\": \"language-text\"\n }}>{`&active=6`}</code></li>\n </ul>\n <h3 {...{\n \"id\": \"alarmserver-configuration\",\n \"style\": {\n \"position\": \"relative\"\n }\n }}><a parentName=\"h3\" {...{\n \"href\": \"#alarmserver-configuration\",\n \"aria-label\": \"alarmserver configuration permalink\",\n \"className\": \"header-link-icon before\"\n }}><svg parentName=\"a\" {...{\n \"aria-hidden\": \"true\",\n \"focusable\": \"false\",\n \"height\": \"16\",\n \"version\": \"1.1\",\n \"viewBox\": \"0 0 16 16\",\n \"width\": \"16\"\n }}><path parentName=\"svg\" {...{\n \"fillRule\": \"evenodd\",\n \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n }}></path></svg></a>{`Alarmserver Configuration`}</h3>\n <p>{`The Alarmserver inside our camera has to be configured as follows:`}</p>\n <p><span parentName=\"p\" {...{\n \"className\": \"gatsby-resp-image-wrapper\",\n \"style\": {\n \"position\": \"relative\",\n \"display\": \"block\",\n \"marginLeft\": \"auto\",\n \"marginRight\": \"auto\",\n \"maxWidth\": \"903px\"\n }\n }}>{`\n `}<a parentName=\"span\" {...{\n \"className\": \"gatsby-resp-image-link\",\n \"href\": \"/en/static/6a2e345b18c50779bedf36e00d8e97a9/c4b7c/INSTAR_Alarmserver_Queries_in_Node-RED_03.png\",\n \"style\": {\n \"display\": \"block\"\n },\n \"target\": \"_blank\",\n \"rel\": \"noopener\"\n }}>{`\n `}<span parentName=\"a\" {...{\n \"className\": \"gatsby-resp-image-background-image\",\n \"style\": {\n \"paddingBottom\": \"48.26086956521739%\",\n \"position\": \"relative\",\n \"bottom\": \"0\",\n \"left\": \"0\",\n \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAB60lEQVQoz22QW2sTQRTH91PZKA1YS22bkAhRC9oLCgk+mN1NYy67KxTSFGkaBJs0EZU8mOzSYmuRgiAU+5SHpt8hKFgwN0F3NzObmdk5kvUCYn/8Hw6H8z83IZVOq9mU/LgQLRwt5w9XNg6XNt5dqOjm0YPi+9R6KZ9by63nc7mckM5kM48Sa09rL5tm+eOgfPKt+KG3dZGqJ4NXTUsr1pKrkihKyWRSUFQtLiXe7Bmnbbt6/KXR/Lrf6u2f9g5a3bdnPS/uHrR6erNTPT4/+4RePK8sLC7PTF0LBQJCOquIklzXdROzz90f532r8x0PLNI3/9HAIu0uavdZqfTMPz11eWIiPD82qw9Fud7QAfjIQWSEucsAADgnDqIjDMA9uZSN8+Xqzkxgzufz3QiHxmZRkg3DYK5r2zb/U8tc1zQtjB36G0YIAYDtys5sODgXCt6PxYSsosalhK4bnPPhcEgpBQ/XdS3LchyHMUYpdTwAoFZ/fXtpMRiJ3IvGhIwyXns8mTHbthFCf80IIcdxCCGUUuwBAKVKdXo+eGXSH7l1U8gqWlyUG7rhemtjjDnn3skcY4wQIoQw5lJKhwhzgCeFzUuT/qvXZxfu3BVUVZPkhGEYAPCrPfMe8z82ph2T7+7tSolVRdMUVf0JyFC4Gq4p/CUAAAAASUVORK5CYII=')\",\n \"backgroundSize\": \"cover\",\n \"display\": \"block\"\n }\n }}></span>{`\n `}<picture parentName=\"a\">{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/6a2e345b18c50779bedf36e00d8e97a9/e4706/INSTAR_Alarmserver_Queries_in_Node-RED_03.avif 230w\", \"/en/static/6a2e345b18c50779bedf36e00d8e97a9/d1af7/INSTAR_Alarmserver_Queries_in_Node-RED_03.avif 460w\", \"/en/static/6a2e345b18c50779bedf36e00d8e97a9/158b1/INSTAR_Alarmserver_Queries_in_Node-RED_03.avif 903w\"],\n \"sizes\": \"(max-width: 903px) 100vw, 903px\",\n \"type\": \"image/avif\"\n }}></source><source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/6a2e345b18c50779bedf36e00d8e97a9/a0b58/INSTAR_Alarmserver_Queries_in_Node-RED_03.webp 230w\", \"/en/static/6a2e345b18c50779bedf36e00d8e97a9/bc10c/INSTAR_Alarmserver_Queries_in_Node-RED_03.webp 460w\", \"/en/static/6a2e345b18c50779bedf36e00d8e97a9/4673f/INSTAR_Alarmserver_Queries_in_Node-RED_03.webp 903w\"],\n \"sizes\": \"(max-width: 903px) 100vw, 903px\",\n \"type\": \"image/webp\"\n }}></source>{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/6a2e345b18c50779bedf36e00d8e97a9/81c8e/INSTAR_Alarmserver_Queries_in_Node-RED_03.png 230w\", \"/en/static/6a2e345b18c50779bedf36e00d8e97a9/08a84/INSTAR_Alarmserver_Queries_in_Node-RED_03.png 460w\", \"/en/static/6a2e345b18c50779bedf36e00d8e97a9/c4b7c/INSTAR_Alarmserver_Queries_in_Node-RED_03.png 903w\"],\n \"sizes\": \"(max-width: 903px) 100vw, 903px\",\n \"type\": \"image/png\"\n }}></source>{`\n `}<img parentName=\"picture\" {...{\n \"className\": \"gatsby-resp-image-image\",\n \"src\": \"/en/static/6a2e345b18c50779bedf36e00d8e97a9/c4b7c/INSTAR_Alarmserver_Queries_in_Node-RED_03.png\",\n \"alt\": \"Alarmserver Queries in Node-RED\",\n \"title\": \"Alarmserver Queries in Node-RED\",\n \"loading\": \"lazy\",\n \"decoding\": \"async\",\n \"style\": {\n \"width\": \"100%\",\n \"height\": \"100%\",\n \"margin\": \"0\",\n \"verticalAlign\": \"middle\",\n \"position\": \"absolute\",\n \"top\": \"0\",\n \"left\": \"0\"\n }\n }}></img>{`\n `}</picture>{`\n `}</a>{`\n `}</span></p>\n <p>{`For the other camera we just have to set the camera name to `}<code parentName=\"p\" {...{\n \"className\": \"language-text\"\n }}>{`camera = frontdoor`}</code>{`. All done!`}</p>\n <p>{`Now every time the alarm on our camera is triggered it will contact our Node-RED Webhook and sends both it's name and the alarm trigger.`}</p>\n <h3 {...{\n \"id\": \"testing\",\n \"style\": {\n \"position\": \"relative\"\n }\n }}><a parentName=\"h3\" {...{\n \"href\": \"#testing\",\n \"aria-label\": \"testing permalink\",\n \"className\": \"header-link-icon before\"\n }}><svg parentName=\"a\" {...{\n \"aria-hidden\": \"true\",\n \"focusable\": \"false\",\n \"height\": \"16\",\n \"version\": \"1.1\",\n \"viewBox\": \"0 0 16 16\",\n \"width\": \"16\"\n }}><path parentName=\"svg\" {...{\n \"fillRule\": \"evenodd\",\n \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n }}></path></svg></a>{`Testing`}</h3>\n <p>{`You can use the `}<strong parentName=\"p\">{`Inject Node`}</strong>{` to test that Node-RED is set up correctly. By clicking on the node, you will send a GET request to your Webhook and transmit the following parameter as query:`}</p>\n <p><span parentName=\"p\" {...{\n \"className\": \"gatsby-resp-image-wrapper\",\n \"style\": {\n \"position\": \"relative\",\n \"display\": \"block\",\n \"marginLeft\": \"auto\",\n \"marginRight\": \"auto\",\n \"maxWidth\": \"850px\"\n }\n }}>{`\n `}<a parentName=\"span\" {...{\n \"className\": \"gatsby-resp-image-link\",\n \"href\": \"/en/static/e0dac4a20d25ea57f18c9a7e89605884/ae694/INSTAR_Alarmserver_Queries_in_Node-RED_04.png\",\n \"style\": {\n \"display\": \"block\"\n },\n \"target\": \"_blank\",\n \"rel\": \"noopener\"\n }}>{`\n `}<span parentName=\"a\" {...{\n \"className\": \"gatsby-resp-image-background-image\",\n \"style\": {\n \"paddingBottom\": \"28.260869565217394%\",\n \"position\": \"relative\",\n \"bottom\": \"0\",\n \"left\": \"0\",\n \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAIAAABM9SnKAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABD0lEQVQY02XPTU7DMBAF4JyXLYcoO87BplIlhKqCVMpfHCdOJpyB1E5/EseO7cbNJKiVChJ80lu+Gb0gSZIoiiiNCAkppQCQsrQQpbZWSqkv2jNzilG1DK+uYXIbPL+8zR4W0/vFcrmkT1MyvyOr2fpmIuePG619143j2Pc9XgzD4JzbbzbVbhfQOPkg5D2M4jhOySsLV3G44mmK+2oYxwHx6H1//C0jYn8+plsdAEAOkOcAABnkWf7J0uyrFK11vvOIaNr2cDj9/4GI3nvOeZD9wxjjfL3dbstSyEaq02QlZa1UU8tKqaZppLGmKIq/ZQBgjAkhtNb7XSV4qZS2VlmnjZHWaeuUda3vurquvwG7aD9XodJLHAAAAABJRU5ErkJggg==')\",\n \"backgroundSize\": \"cover\",\n \"display\": \"block\"\n }\n }}></span>{`\n `}<picture parentName=\"a\">{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/e0dac4a20d25ea57f18c9a7e89605884/e4706/INSTAR_Alarmserver_Queries_in_Node-RED_04.avif 230w\", \"/en/static/e0dac4a20d25ea57f18c9a7e89605884/d1af7/INSTAR_Alarmserver_Queries_in_Node-RED_04.avif 460w\", \"/en/static/e0dac4a20d25ea57f18c9a7e89605884/4c41f/INSTAR_Alarmserver_Queries_in_Node-RED_04.avif 850w\"],\n \"sizes\": \"(max-width: 850px) 100vw, 850px\",\n \"type\": \"image/avif\"\n }}></source><source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/e0dac4a20d25ea57f18c9a7e89605884/a0b58/INSTAR_Alarmserver_Queries_in_Node-RED_04.webp 230w\", \"/en/static/e0dac4a20d25ea57f18c9a7e89605884/bc10c/INSTAR_Alarmserver_Queries_in_Node-RED_04.webp 460w\", \"/en/static/e0dac4a20d25ea57f18c9a7e89605884/10237/INSTAR_Alarmserver_Queries_in_Node-RED_04.webp 850w\"],\n \"sizes\": \"(max-width: 850px) 100vw, 850px\",\n \"type\": \"image/webp\"\n }}></source>{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/e0dac4a20d25ea57f18c9a7e89605884/81c8e/INSTAR_Alarmserver_Queries_in_Node-RED_04.png 230w\", \"/en/static/e0dac4a20d25ea57f18c9a7e89605884/08a84/INSTAR_Alarmserver_Queries_in_Node-RED_04.png 460w\", \"/en/static/e0dac4a20d25ea57f18c9a7e89605884/ae694/INSTAR_Alarmserver_Queries_in_Node-RED_04.png 850w\"],\n \"sizes\": \"(max-width: 850px) 100vw, 850px\",\n \"type\": \"image/png\"\n }}></source>{`\n `}<img parentName=\"picture\" {...{\n \"className\": \"gatsby-resp-image-image\",\n \"src\": \"/en/static/e0dac4a20d25ea57f18c9a7e89605884/ae694/INSTAR_Alarmserver_Queries_in_Node-RED_04.png\",\n \"alt\": \"Alarmserver Queries in Node-RED\",\n \"title\": \"Alarmserver Queries in Node-RED\",\n \"loading\": \"lazy\",\n \"decoding\": \"async\",\n \"style\": {\n \"width\": \"100%\",\n \"height\": \"100%\",\n \"margin\": \"0\",\n \"verticalAlign\": \"middle\",\n \"position\": \"absolute\",\n \"top\": \"0\",\n \"left\": \"0\"\n }\n }}></img>{`\n `}</picture>{`\n `}</a>{`\n `}</span></p>\n <h2 {...{\n \"id\": \"import-the-flow-into-node-red\",\n \"style\": {\n \"position\": \"relative\"\n }\n }}><a parentName=\"h2\" {...{\n \"href\": \"#import-the-flow-into-node-red\",\n \"aria-label\": \"import the flow into node red permalink\",\n \"className\": \"header-link-icon before\"\n }}><svg parentName=\"a\" {...{\n \"aria-hidden\": \"true\",\n \"focusable\": \"false\",\n \"height\": \"16\",\n \"version\": \"1.1\",\n \"viewBox\": \"0 0 16 16\",\n \"width\": \"16\"\n }}><path parentName=\"svg\" {...{\n \"fillRule\": \"evenodd\",\n \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n }}></path></svg></a>{`Import the Flow into Node-RED`}</h2>\n <p>{`You can download the complete flow from the link below:`}</p>\n <p><a parentName=\"p\" {...{\n \"href\": \"/en/Node-RED_Flows/nodered_flow_alarmserver_queries.json\"\n }}>{`Download Flow`}</a></p>\n <p>{`Download this JSON data into a text editor and edit the default parameter - IP addresses, logins, etc. - to match your personal setup. You can simply search & replace it.`}</p>\n <p>{`To import it to your Node-RED installation, open the hamburger menu in the top right, choose `}<strong parentName=\"p\">{`Import`}</strong>{` and `}<strong parentName=\"p\">{`Clipboard`}</strong>{`:`}</p>\n <p><span parentName=\"p\" {...{\n \"className\": \"gatsby-resp-image-wrapper\",\n \"style\": {\n \"position\": \"relative\",\n \"display\": \"block\",\n \"marginLeft\": \"auto\",\n \"marginRight\": \"auto\",\n \"maxWidth\": \"920px\"\n }\n }}>{`\n `}<a parentName=\"span\" {...{\n \"className\": \"gatsby-resp-image-link\",\n \"href\": \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/d74fe/INSTAR_Alarmserver_Queries_in_Node-RED_05.png\",\n \"style\": {\n \"display\": \"block\"\n },\n \"target\": \"_blank\",\n \"rel\": \"noopener\"\n }}>{`\n `}<span parentName=\"a\" {...{\n \"className\": \"gatsby-resp-image-background-image\",\n \"style\": {\n \"paddingBottom\": \"49.565217391304344%\",\n \"position\": \"relative\",\n \"bottom\": \"0\",\n \"left\": \"0\",\n \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAA7DAAAOwwHHb6hkAAACHElEQVQoz1WQXWvTUBzGc9urOdLm0LolDjeHr1/DG2GfQtrOMEUcDDaFfgLdEHSUXmyXwu6E1qHonTBpLdVudeuaNm2XtzZp3prknJ4TSccEfzxXD/yf589DrU7JZrOZTIbn+Sz/dPXJGs+vpdORk8lknq+vb2xtbWxuvsrlHq2sJOLx2/cfPJzn7jKACv8DT5QqsYQJGSJkEhJZ1dKng+2dD6/fHGzv5B6nby0vs/PzgGPnOI5yXU2SyrJcUZSKpomu0gpM2XFV2+56/igMw5fPXtybY+9cn1timCUGsCyXSqUAE0ERQjBGEPqe547Hlg+HEBm2ZXaEekf4aZqddrfWbNc7vb7QFd++f5dMphYXbzIMQ9N0dAzhBKIJJqFtqRfiodz/osi9ZqPfOVeki0pb+GhZpwhhgvH+3h4AIJlM0lMoOMG2KjrC0Vg+1bWa1Du0TM1xTFH82u19g9AJw3BaABFCu7u7NE1zHEfTdDwejwYjE4ihi2FgmZIm/9AHx/pQbbf+9Ltnut7UtF+uq+KoGBcKBQDAwsINAEAikfi3drSsH1gD9ftoeCTL/cbvM6HZkqRyq1U0jHOMQ0JwPp+/NjvLsuzMzEwsFqMQQiPTMkamaxoE+SGOUjzP0PUTyxIwRlfZxLbtk+OTUrFYKl2qRHm+Xzlu1U67tlh1G5+Di7puCIpcdhz56qNLhcPBQNf1IAg8zwtgQAj+C6OhsF+l5GKRAAAAAElFTkSuQmCC')\",\n \"backgroundSize\": \"cover\",\n \"display\": \"block\"\n }\n }}></span>{`\n `}<picture parentName=\"a\">{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/e4706/INSTAR_Alarmserver_Queries_in_Node-RED_05.avif 230w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/d1af7/INSTAR_Alarmserver_Queries_in_Node-RED_05.avif 460w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/7f308/INSTAR_Alarmserver_Queries_in_Node-RED_05.avif 920w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/db27b/INSTAR_Alarmserver_Queries_in_Node-RED_05.avif 1164w\"],\n \"sizes\": \"(max-width: 920px) 100vw, 920px\",\n \"type\": \"image/avif\"\n }}></source><source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/a0b58/INSTAR_Alarmserver_Queries_in_Node-RED_05.webp 230w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/bc10c/INSTAR_Alarmserver_Queries_in_Node-RED_05.webp 460w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/966d8/INSTAR_Alarmserver_Queries_in_Node-RED_05.webp 920w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/4b3db/INSTAR_Alarmserver_Queries_in_Node-RED_05.webp 1164w\"],\n \"sizes\": \"(max-width: 920px) 100vw, 920px\",\n \"type\": \"image/webp\"\n }}></source>{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/81c8e/INSTAR_Alarmserver_Queries_in_Node-RED_05.png 230w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/08a84/INSTAR_Alarmserver_Queries_in_Node-RED_05.png 460w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/c0255/INSTAR_Alarmserver_Queries_in_Node-RED_05.png 920w\", \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/d74fe/INSTAR_Alarmserver_Queries_in_Node-RED_05.png 1164w\"],\n \"sizes\": \"(max-width: 920px) 100vw, 920px\",\n \"type\": \"image/png\"\n }}></source>{`\n `}<img parentName=\"picture\" {...{\n \"className\": \"gatsby-resp-image-image\",\n \"src\": \"/en/static/0ff8f213e82c458ef6b3c7fb9cc19ed8/c0255/INSTAR_Alarmserver_Queries_in_Node-RED_05.png\",\n \"alt\": \"Alarmserver Queries in Node-RED\",\n \"title\": \"Alarmserver Queries in Node-RED\",\n \"loading\": \"lazy\",\n \"decoding\": \"async\",\n \"style\": {\n \"width\": \"100%\",\n \"height\": \"100%\",\n \"margin\": \"0\",\n \"verticalAlign\": \"middle\",\n \"position\": \"absolute\",\n \"top\": \"0\",\n \"left\": \"0\"\n }\n }}></img>{`\n `}</picture>{`\n `}</a>{`\n `}</span></p>\n <p>{`Copy & paste the data into the text field and click `}<strong parentName=\"p\">{`Import`}</strong>{`:`}</p>\n <p><span parentName=\"p\" {...{\n \"className\": \"gatsby-resp-image-wrapper\",\n \"style\": {\n \"position\": \"relative\",\n \"display\": \"block\",\n \"marginLeft\": \"auto\",\n \"marginRight\": \"auto\",\n \"maxWidth\": \"835px\"\n }\n }}>{`\n `}<a parentName=\"span\" {...{\n \"className\": \"gatsby-resp-image-link\",\n \"href\": \"/en/static/1572a9bcede0d54cffa6e932c81187dc/f0685/INSTAR_Alarmserver_Queries_in_Node-RED_06.png\",\n \"style\": {\n \"display\": \"block\"\n },\n \"target\": \"_blank\",\n \"rel\": \"noopener\"\n }}>{`\n `}<span parentName=\"a\" {...{\n \"className\": \"gatsby-resp-image-background-image\",\n \"style\": {\n \"paddingBottom\": \"52.60869565217391%\",\n \"position\": \"relative\",\n \"bottom\": \"0\",\n \"left\": \"0\",\n \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAB1klEQVQoz2WQ0XKaQBSG83697Uv1pq/RdsbOtGk6pq1EK6BRlgW0JVMbFhZ2FSEICrtaELdFMxMz/a7OxfnmP+e/gBACoI8BhKZlWdPRSJP7V72bt13pjSxfKrLalWTpW7/fG8jy9c1NS5JaitI2jlyMNW00kIHSAcpXoHTu7B+2/Ws2cwgNKQ1938fY8zzPxzgIsO+7QYDv72cQwkaG0NCGyqjXvu1+vu21kzjinHHOqqosy7J6TllWh4NIkkTX9UZu4k3TsKamNYXmZLPJOedFUXDG8zxnjBWM7XY7IcThIOq6FkJkWXYmN0DDgBDqWZZRSiil+AxCSBAElNJlGK7X66dkeMQ4qRCmaYoQsm3bQY7neggh5CLXdR3HQcjBGK+OPMoAgMFwqKoDVVWHqpKuVshFHsZRFIVhGMXRfE7DE4vFnNLlchnH8WNh6mB42e60Pn25lr6PpY/rZLnJm7ebb4vi4SHJ86Ku6/2RqtofhEjT9OlsDega0PVmGuWbTV3Xf8qSc77b7bbbbVmW4lSXELUf7F+9zvJcB+C8sAZdh4yx42azeg5njNf7xYerny9eLuw7YzIxIHwmQwgJIXEcR/9BCCHz+UxWzXfvf1sTw7L+yX8BZxo7beUmM1EAAAAASUVORK5CYII=')\",\n \"backgroundSize\": \"cover\",\n \"display\": \"block\"\n }\n }}></span>{`\n `}<picture parentName=\"a\">{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/1572a9bcede0d54cffa6e932c81187dc/e4706/INSTAR_Alarmserver_Queries_in_Node-RED_06.avif 230w\", \"/en/static/1572a9bcede0d54cffa6e932c81187dc/d1af7/INSTAR_Alarmserver_Queries_in_Node-RED_06.avif 460w\", \"/en/static/1572a9bcede0d54cffa6e932c81187dc/7ace4/INSTAR_Alarmserver_Queries_in_Node-RED_06.avif 835w\"],\n \"sizes\": \"(max-width: 835px) 100vw, 835px\",\n \"type\": \"image/avif\"\n }}></source><source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/1572a9bcede0d54cffa6e932c81187dc/a0b58/INSTAR_Alarmserver_Queries_in_Node-RED_06.webp 230w\", \"/en/static/1572a9bcede0d54cffa6e932c81187dc/bc10c/INSTAR_Alarmserver_Queries_in_Node-RED_06.webp 460w\", \"/en/static/1572a9bcede0d54cffa6e932c81187dc/2321d/INSTAR_Alarmserver_Queries_in_Node-RED_06.webp 835w\"],\n \"sizes\": \"(max-width: 835px) 100vw, 835px\",\n \"type\": \"image/webp\"\n }}></source>{`\n `}<source parentName=\"picture\" {...{\n \"srcSet\": [\"/en/static/1572a9bcede0d54cffa6e932c81187dc/81c8e/INSTAR_Alarmserver_Queries_in_Node-RED_06.png 230w\", \"/en/static/1572a9bcede0d54cffa6e932c81187dc/08a84/INSTAR_Alarmserver_Queries_in_Node-RED_06.png 460w\", \"/en/static/1572a9bcede0d54cffa6e932c81187dc/f0685/INSTAR_Alarmserver_Queries_in_Node-RED_06.png 835w\"],\n \"sizes\": \"(max-width: 835px) 100vw, 835px\",\n \"type\": \"image/png\"\n }}></source>{`\n `}<img parentName=\"picture\" {...{\n \"className\": \"gatsby-resp-image-image\",\n \"src\": \"/en/static/1572a9bcede0d54cffa6e932c81187dc/f0685/INSTAR_Alarmserver_Queries_in_Node-RED_06.png\",\n \"alt\": \"Alarmserver Queries in Node-RED\",\n \"title\": \"Alarmserver Queries in Node-RED\",\n \"loading\": \"lazy\",\n \"decoding\": \"async\",\n \"style\": {\n \"width\": \"100%\",\n \"height\": \"100%\",\n \"margin\": \"0\",\n \"verticalAlign\": \"middle\",\n \"position\": \"absolute\",\n \"top\": \"0\",\n \"left\": \"0\"\n }\n }}></img>{`\n `}</picture>{`\n `}</a>{`\n `}</span></p>\n <p>{`And you are all set!`}</p>\n\n </MDXLayout>;\n}\n;\nMDXContent.isMDXComponent = true;\n "],"names":["_frontmatter","layoutProps","MDXLayout","MDXContent","_ref","components","props","_objectWithoutProperties","_excluded","mdx","Object","assign","mdxType","SEOHelmet","title","dateChanged","author","tag","description","image","twitter","location","pathname","BreadCrumbs","locationBC","locationEN","locationDE","locationFR","crumbLabel","NavButtons","parentName","EuiSpacer","APIv2Box","TimeLine","isMDXComponent"],"sourceRoot":""}