bvlaicu / coned

Utility to interact with a ConEdison smart energy meter
Apache License 2.0
51 stars 16 forks source link

Unable to install on pi4 #4

Open smallrebelarmy opened 3 years ago

smallrebelarmy commented 3 years ago

Thanks for working on this project. Really excited to use it to monitor Coned. But also... halp plz. I'm unable to install by adding your repository to my addons. After your repository is added I and I click on ORU then the "install" i get a spinning cursor for a moment and then it just stops.

I'm running core-2021.4.6 and supervisor-2021.04.3 on a pi4

I'm wondering it has something to do with Chrome? The only error I'm seeing is:

E: Unable to locate package google-chrome-stable

But I actually can't tell if it's related to installing this addon. Although I do see pyppeteer as a dependency. Can i install this on home assistant? Sorry for the basic questions, I'm just having some difficulty problem-solving. Thanks in advance.

reriley commented 3 years ago

May be related to an issue I had when using this module in my python project (not home assistance as it sounds like here). In my case the issue was that the self-installing chromium didn't work. I had to install chromium-browser on the pi and point the optional browser_path argument in the Meter class to '/usr/bin/chromium-browser'. Perhaps something to explore.

I am using a Pi Zero W and the headless browser is incredibly slow. Had to patch the Meter code with page.setDefaultNavigationTimeout(0) to stop it timing out. It takes about 30 - 40 minutes to run. Be interested to hear if it's faster on a pi4.

smallrebelarmy commented 3 years ago

Interesting. I think you may be right about the self-installing chromium failure. I'll look into it.

chintito4ever commented 3 years ago

Is it possible to implement in Home Assistant? Anyone can guide please!

jpoles1 commented 3 years ago

See here for @bvlaicu's home assistant addon: https://github.com/bvlaicu/home-assistant-addons/tree/master/oru

I'm working on one of my own here: https://github.com/jpoles1/home-assistant-coned