Tried the command above (gave a name parameter for ease) and easily pull up the same config that my other/official AppDaemon uses. I can pull up the page w/o issue but I still don’t see iPad 1 using Safari or older Chrome working when a switch is updated. Would love any suggestions…
I didn’t have to dump the Git locally, just ran the command and it pulled the Dockerfile content from the web. Is that the reason this fails, or something else?
Thank you! The key was to clone the repository locally because whatever is pulled from the Docker hub under the following name space, did not work: algirdasc/appdaemon:latest
However, once I followed the below instructions, it’s working great. Thanks for the awesome update @algirdasc!
cd ~
mkdir adsocks
cd adsocks
git clone https://github.com/algirdasc/appdaemon.git
docker image build appdaemon --tag jzsandbox/appdaemon
sudo docker run -d --name=appdaemon3030 --restart always -it -p 3030:5050 -v /home/hass/appdaemon:/conf jzsandbox/appdaemon:latest
Upon further testing, this command started to work w/o issues as well but did not before with multiple attempts. The benefit of this command is not having to do any local docker building with source:
I’m sorry I’ve poorly documented how to build my appdaemon fork. All you need to do is to clone my repository (https://github.com/algirdasc/appdaemon) and build Docker Image with “create_docker_image.sh” script. Also, I’ve included Docker-rpi file to build AppDaemon on Rasbery PI or other arm CPU based SBCs. Just rename Docker-rpi to Docker and run “create_docker_image.sh”. If @aimc is going to get iOS 5.1.1 support into next release that would be soooo awesome
I am happy to announce that socket.io support has been added to AppDaemon! It is currently available in the dev branch and will be part of 3.1.0 when that is released.
All you need to do is turn on support for socket.io by adding this setting in the dashboard section:
transport: socketio
Note I haven’t been able to test this on on older devices owing to the sad demise of my original iPad. I dusted it off for testing but it seems like the battery is beyond salvaging
So give it a try and let me know if it works on older devices.
I went with socketio over SockJS because the code looked a little cleaner and socket.io auto-reconnects where as from what I could tell SockJS does not - either way this should fix the requirement to add HADashboard support to older browsers.
Very cool, thank you! I may abandon my workaround of meta refreshing every 30 seconds.
Sorry but may be a lame question: you mentioned adding the transport: socketio tag into the dashboard section. AppDaemon.yaml has an hadashboard section. If possible, can you please clarify specifically which file and whether the dashboard section has a parent node, etc.
Sorry @aimc a bit of bad news and hopefully related to something being wrong with the current DEV branch. When using @algirdasc’s version per my instructions above, everything works as expected and tiles truly update in IOS 5.1.1 using Safari. When using the current/official DEV branch per the instructions below, the tiles don’t update until page is refreshed akin to the old/original 3.0.1 version that I had. The other issue is that certain icons don’t seem to work like on all motion sensors, etc. I can share a screenshot if desired. Please see my instructions below and let me know if I’m doing something wrong… Thanks again!
cd ~
mkdir adsocks
cd adsocks
git clone https://github.com/home-assistant/appdaemon -b dev --single-branch
docker image build appdaemon --tag jzsandbox/appdaemon
sudo docker run -d --name=appdaemon3030 --restart always -it -p 3030:5050 -v /home/hass/appdaemon:/conf jzsandbox/appdaemon:latest
Got it, thanks @ReneTode!!! Yeah good old MDI icons work well outside of the Dev branch. I’m pointing to the same config folder from multiple/test AppDaemon Docker containers.
UPDATE: @ReneTode unfortunately no better news with respect to updating tiles w/o having to refresh. However my icons were fixed and I’m running these two parameters in my appdaemon.yaml > hadashboard section:
transport: socketio
fa4compatibility: 1
I’m definitely having lots of success with @algirdasc’s version while the same config with the official DEV branch @aimc linked to along with those parameters above in my Yaml are not yielding expected results unless I refresh.
Sadly, @aimc update is not working on my old iPad either. If there is anyone unlucky as I am, feel free to pull my SockJS implementation for AppDaemon 3.0.2 which seems to work with latest (0.83.2) HA. Brief instructions:
git pull https://github.com/algirdasc/appdaemon.git
cd appdaemon/
sh create-docker-image.sh
Wait untill image algirdasc/appdaemon is being built and then it attach to your Docker container.
I’m looking forward to getting socksjs support, I’ve got an old iPad 1 mounted on the wall, I’ve been running @algirdasc docker for some time on my synology NAS but it’s just broken (I think the latest update of HA seems to have stopped the api password working). Is it possible to build the latest @algirdasc on windows?