Closed avanc closed 4 years ago
That's quite nifty and thank you for sharing with us.
A few observations:
All in all a good start though. If you add a bit of documentation on how users can get started with it, we will gladly add this to our Booklet (you can also contribute the entry to https://owntracks.org/booklet/guide/clients/ yourself if you like. :-)
Thanks for your feedback. Will check what I can do and come back later.
I added documentation as well as showing the connection state.
However, I'm unsure which errors to catch and inform the user. I tried to inform the user if the host name is wrong. However, the following error cannot be caught with try:
Firefox can’t establish a connection to the server at wss://xyz.
Feel free to tell me your initial setup problems.
I wrote a small webapp to edit cards: https://avanc.github.io/owntracks-cards/
It uses websockets to communicate with the broker. Thus, you have to activate websockets in your broker configuration (or use the preconfigured test server). As the webapp is served via https, browsers only allow SSL websocket connections. However, you can also serve the index html as local file an connect to unsecured brokers.
The code can be found at https://github.com/avanc/owntracks-cards/
Your comments and suggestions are highly welcome.