Adding package is the easy part. Hard part is changing appdaemon logic to use sockjs package. If you have access to appdaemon source on your installation, you could make those changes like in my github repository. Also, I needed to modify sockjs library a bit, because it wasn’t using async calls (see https://github.com/algirdasc/appdaemon/tree/master/appdaemon/sockjs).
I got your docker working. I placed it on a separate Rpi. I only get this error message. in the log in docker logs appdaemon and also in HASSIO. Do i do something wrong?
2018-03-05 18:38:14.263880 INFO AppDaemon Version 3.0.0b4 starting
2018-03-05 18:38:14.264596 INFO Configuration read from: /conf/appdaemon.yaml
2018-03-05 18:38:14.267020 INFO AppDaemon: Starting Apps
2018-03-05 18:38:14.273793 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-03-05 18:38:14.335286 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-03-05 18:38:14.336621 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-03-05 18:38:14.337652 INFO Starting Dashboards
2018-03-05 18:38:14.361614 INFO API is disabled
2018-03-05 18:38:14.401047 INFO AppDaemon: HASS: Connected to Home Assistant 0.64.3
2018-03-05 18:38:14.474681 INFO AppDaemon: Got initial state from namespace default
2018-03-05 18:38:16.737079 INFO AppDaemon: Adding conf/apps to module import path
2018-03-05 18:38:16.738677 WARNING AppDaemon: No app description found for: conf/apps/hello.py - ignoring
2018-03-05 18:38:16.740276 INFO AppDaemon: App initialization complete
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 231, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp\_http_parser.pyx", line 295, in aiohttp._http_parser.HttpParser.feed_data
File "aiohttp\_http_parser.pyx", line 437, in aiohttp._http_parser.cb_on_headers_complete
File "aiohttp\_http_parser.pyx", line 182, in aiohttp._http_parser.HttpParser._on_headers_complete
aiohttp.http_exceptions.InvalidHeader: 400, message='Invalid HTTP Header: Sec-Websocket-Key1'
No. I think it’s iPad browser sending this header while negotiating on data transfer. Does your iPad work?
yes, everything works fine now. I’m sorry. I was browsing my dashboard with minibrowser instead of safari. When i open safari it runs without errors. Thank you!
Now it’s time to find out how to get the MPD playlist in an input_select so my wife can start a playlist.
{{states.media_player.mpd.attributes.source_list}}
but that’s the next step
Already found. if your interested:
@algirdasc
Finally got my ipad back in use!
If possible, can you upgrade your version to the v3.0 release?
@aimc Since version 3 is released, do you have a timeframe when this will be in the official release?
Yes, of course, I just need to find some free time to do this.
Did any one tried latest AppDaemon version with iOS 5.1.1? Does it work or does it need fixing?
it should work.
the dashboard works with most browsers, could be that you need to chose another browser if you have some trouble with something.
There are no other browsers in old iPad 1 (iOS 5.1.1). And those, that are available does not support newer websockets protocol. Seems like I’ll spend my evening adding SockJS support to AppDaemon 3.0.2.
i wouldnt count on a quick release.
Andrew is very busy in the moment for his work.
if you want to add something and make a PR, then make sure it doesnt create a problem in any other platform
test that thourowly on all platforms that are available for you.
and if possible provide test results also.
I’ve upgraded AppDaemon to latest version, v.3.0.2 with SockJS. Works on my iPad
oops i thought we were still on 3.01, but i forgot the quick bugrelease
Hello.
Tried to pull your git using docker-compose with image: algirdac/appdaemon
, but I get an error message saying:
ERROR: pull access denied for algirdasc/appdaemon, repository does not exist or may require 'docker login'
Is it something I’m missing? First time I see this error.
Not sure where you get this error, but it should be algirdasc/appdaemon (not algirdac).
Sorry for the late respons. Just a typo from my part. The image path is correct (as you can read from the error message ). Stuck on this error message. Since you’ve forked it from home-assistant/appdaemon it’s strange this doesn’t work. Well, well… just have to wait for the official update to make my iPad 1 gen. work
Could you try again? Problem was simple - I didn’t push image to docker repository Duh!
Was able to pull it now! But I’m still having the same issue with my iPad. The “loading circle” is spinning constantly besides the wifi-icon and panels are not showing changes until I reload the hadashboard. Any config changes I need to do?
No, I don’t think so. In my case both versions (original and mine) working without any config changes.
Got it. My docker skills were acting up With the correct image running, my old iPad is once again working! That is so nice! Great work @algirdasc!