Skip to content

Instantly share code, notes, and snippets.

@tyzbit
Last active June 27, 2023 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyzbit/a1160351ffeb9421281759177e7bab80 to your computer and use it in GitHub Desktop.
Save tyzbit/a1160351ffeb9421281759177e7bab80 to your computer and use it in GitHub Desktop.
OPNSense ntopng call webhook when in a Google Meet
-- /usr/local/share/ntopng/scripts/callbacks/checks/hosts/custom_host_lua_script.lua
if (host.name() == "meet.google.com") then
local response, err = ntop.httpGet("https://home-assistant-url/api/webhook/webhook-url")
if err then
print("Webhook request for meet.google.com match failed: " .. err)
end
print("Active Google Meet in progress")
end
-- IMPORTANT: do not forget this return at the end of the script
return(0)
-- Recommend setting Remote Host Idle Timeout to 20 in Settings -> Cache Settings for ntoping so ntoping drops the host quicker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment