diff --git a/atom.xml b/atom.xml index f5bba4cb42..38d286dad9 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
http://<ha_server>/api/gpslogger?latitude=%LAT&longitude=%LON&device=%SER&accuracy=%ACC&battery=%BATT&speed=%SPD&direction=%DIR&altitude=%ALT&provider=%PROV&activity=%ACT
. Make sure to include the API password if you have configured a password in Home Assistant (add &api_password=<password>
to the end of the URL). Configure that options under “General Options”:
Make sure to include the API password if you have configured a password in Home Assistant (add &api_password=<password>
to the end of the URL).
+You can change your device name by editing “%SER” in this URL (e.g.: &device=user_devicename)
+Configure that options under “General Options”:
http://<ha_server>/api/gpslogger?latitude=%LAT&longitude=%LON&device=%SER&accuracy=%ACC&battery=%BATT&speed=%SPD&direction=%DIR&altitude=%ALT&provider=%PROV&activity=%ACT
(be sure you include API password (&api_password=<password>
) if needed, or you can also use HTTP Basic authentication http://<username>:<password>@<ha_server>/api/gpslogger...
)
(be sure you include API password (&api_password=<password>
) if needed, or you can also use HTTP Basic authentication http://<username>:<password>@<ha_server>/api/gpslogger...
)
+(You can change your device name by editing “%SER” in this URL (e.g.: &device=user_devicename))
To be able to access to your Home Assistant instance by using https://home.example.org, add to following file to /etc/httpd/conf/extra/
as hass.conf
<VirtualHost *:443>
- ProxyPreserveHost On
- ProxyRequests Off
ServerName home.example.org
- ProxyPass /api/websocket ws://localhost:8123/api/websocket
- ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
+ ProxyPreserveHost On
+ ProxyRequests off
ProxyPass / http://localhost:8123/
ProxyPassReverse / http://localhost:8123/
+ ProxyPass /api/websocket ws://localhost:8123/api/websocket
+ ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
+
+ RewriteEngine on
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /(.*) ws://localhost:8123/$1 [P,L]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /(.*) http://localhost:8123/$1 [P,L]
</VirtualHost>