password -> api_password
This commit is contained in:
parent
f2d5e91679
commit
f8bbc5ccd8
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ For more comfort put the HTML snippet below in a file `sse.html` in your `www` f
|
|||
<h1>Getting Home Assistant server events</h1>
|
||||
<div id="events"></div>
|
||||
<script type="text/javascript">
|
||||
var source = new EventSource("/api/stream?password=YOUR_PASSWORD");
|
||||
var source = new EventSource("/api/stream?api_password=YOUR_PASSWORD");
|
||||
source.onmessage = function(event) {
|
||||
document.getElementById("events").innerHTML += event.data + "<br>";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue