Skip to content

Instantly share code, notes, and snippets.

@mikenabhan
Last active November 4, 2020 02:27
Show Gist options
  • Save mikenabhan/1d633bf45bf727b9dcd1d8744d757bc9 to your computer and use it in GitHub Desktop.
Save mikenabhan/1d633bf45bf727b9dcd1d8744d757bc9 to your computer and use it in GitHub Desktop.
This is a bookmarklet to trigger a webhook in home assistant or node-red.
javascript:(function(){
var webhook_url = "WEBHOOK_URL_HERE";
var request = new XMLHttpRequest();
request.open("GET", webhook_url, true);
request.onreadystatechange = function() {;
};
request.send(null);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment