password -> api_password

This commit is contained in:
Robbie Trencheny 2016-08-22 23:23:00 -07:00 committed by GitHub
parent f2d5e91679
commit f8bbc5ccd8

View File

@ -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>";
};