-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run on Android Device #6
Comments
There is not likely to be much I can do to run this app on android. Obviously you can display the web page on an android device but you will need a machine with java or docker to run the application. Android does not seem to have either. I did manage to install QEMU and try running java in a alpine image but not a lot of luck. I would like to know more about your situation. Is it because you don't have a machine that is on all the time? |
David I was hoping to run your application on an old android galaxy tablet and have it displayed in the kitchen so that we could monitor usage and production every minute. I find MyEnlighten not granular enough for identifying devices consuming power. I do have a desktop and laptop but don't wish to run these devices 24*7. |
Yes I understand. I have a Synology NAS drive that needs to be on 24*7 and it runs docker images so I host there. |
I recently added a ARM docker image for use with raspberry pi devices |
Thanks David. This works a treat on my raspberry and I am able to view the graphs on my old galaxy tablet as hoped. |
Hi David. Do you have an updated ARM docker image for a raspberry pi? I have tried running the latest 0.25 version with the docker platform option without success. |
I have pushed the 0.25 release to the dlmcpaul/enphasecollector-arm image Let me know how it goes as I cannot test arm images. |
Hi David, It would appear the enphasecollector-arm image successfully downloaded but I tried running with and without the docker Any ideas? Thanks for your great app and prompt response. Regards Stuart.
pi@raspberrypi:~ $ docker run -d --restart unless-stopped --mount source=enphase,target=/internal_db
|
Ok I rebuilt the image as a linux/arm/v7 one. You might have to force pull the new image. I really need to figure out how to build multi-arch images |
Hi David, Last night I forced the upload of the new image and restarted. enphasecollector-arm was running but not producing any output when I browse to the webpage?? Thanks Stuart.
Latest syntax:
|
docker logs containerid This should output the logs from the app. Might want to pipe to a file as it might be large if lots of errors |
Hi David, I tried running "docker logs" whilst running the enphasecollector-arm:latest container but didn't get any output. I reinstalled the original enphasecollector:arm container and it provides STDOUT output and also provides debug output from the "docker logs" command. I don't get any STDOUT output at all from enphasecollector-arm:latest container - No Spring Boot messages just nothing. It's as if the program starts but doesn't do anything?? I have included the STDOUT output from enphasecollector:arm just in case it provides any clues. Thanks Stuart. docker run --mount source=enphase,target=/internal_db -e TZ=Australia/Sydney -e ENVOY_CONTROLLER_PASSWORD=*** -e ENVOY_CONTROLLER_HOST=*** -e ENVOY_REFRESHSECONDS=15000 -e ENVOY_PAYMENTPERKILOWATT=0.102 -e ENVOY_CHARGEPERKILOWATT=0.288 -e ENVOY_DAILYSUPPLYCHARGE=1.31 -e ENVOY_BANDS[0].FROM=0700 -e ENVOY_BANDS[0].TO=0859 -e ENVOY_BANDS[0].COLOUR=#FA8072 -e ENVOY_BANDS[1].FROM=1700 -e ENVOY_BANDS[1].TO=1959 -e ENVOY_BANDS[1].COLOUR=#FA8072 -e ENVOY_BANDS[2].FROM=0900 -e ENVOY_BANDS[2].TO=1659 -e ENVOY_BANDS[2].COLOUR=#F0E68C -e ENVOY_BANDS[3].FROM=2000 -e ENVOY_BANDS[3].TO=2159 -e ENVOY_BANDS[3].COLOUR=#F0E68C -e ENVOY_BANDS[4].FROM=2200 -e ENVOY_BANDS[4].TO=0659 -e ENVOY_BANDS[4].COLOUR=#87CEEB -p 8080:8080 dlmcpaul/enphasecollector:arm . ____ _ __ _ _ 2022-07-07 17:19:47.560 INFO 1 --- [ main] com.hz.EnphaseCollectorApplication : Starting EnphaseCollectorApplication vdevelopment-SNAPSHOT on e244ec8258a6 with PID 1 (/app.jar started by root in /) |
I have pushed another arm version dlmcpaul/enphasecollector-arm:0.25 Try with the -it parameters to see what it logs |
Hi David, It successfully downloaded but doesn't want to run with or without the "-it" option. Thanks for your ongoing assistance.
|
Well that error essentially says it is not a arm binary. I have tried resetting the arm builder but I am not hopeful I have fixed anything but you can try another image dlmcpaul/enphasecollector-arm:0.25 Can you also send me uname -m The next thing to try might be to try and build on your raspberrypi |
Hi David, Reran with the latest version and got the same result. The command "uname -m" reports armv7l. No problems me trying to build on the rasberrypi if you can give me a few pointers. Thanks Stuart. pi@raspberrypi:~ $ docker pull dlmcpaul/enphasecollector-arm:0.25 |
Ok lets try this Download the Dockerfile-builder to your raspberry pi and try this command (and look out for the "dot" at the end) docker build -f Dockerfile-builder -t smacinto/enphasecollector-arm:local --build-arg VERSION=0.25 . You should end up with a local image called smacinto/enphasecollector-arm:local that matches your platform. If there are errors in fetching the base images (azul/zulu-openjdk-alpine:17) then I suspect the problem is no images available for Java 17 on raspberry pi |
Hi David, Unfortunately the build command failed?
|
Ok, so this confirms my suspicions. It is not my build process failing it is a lack of a arm/v/7 java 17 image. I will see if I can build a jar based on a lower version where there is an arm/v/7 image |
Ok there is a dlmcpaul/enphasecollector-arm:0.25 image that uses Java 11 as a base image that should have a arm/v/7 os layer |
Thanks David - that one worked. |
Glad to hear it. Might be a problem in future versions as I do want to start using Java 17. Might have to figure out how to install a java 17 runtime into a arm/v/7 base OS |
Thanks David for such a great app.
I would like to run EnphaseCollector on an android device but am unsure if this is possible? Any tips would be much appreciated.
The text was updated successfully, but these errors were encountered: