simonhq / canberradams

A Home Assistant Appdaemon app for creating a sensor with the ACT Dam level information
0 stars 0 forks source link

Program wont initialize.....I think ICON have changed their webste #3

Open Dave-Bryant opened 12 months ago

Dave-Bryant commented 12 months ago

On appdaemon startup:

2023-12-10 13:26:15.582598 WARNING canberra_dams: ------------------------------------------------------------ 2023-12-10 13:26:15.583515 WARNING canberra_dams: Unexpected error running initialize() for canberra_dams 2023-12-10 13:26:15.584416 WARNING canberra_dams: ------------------------------------------------------------ 2023-12-10 13:26:15.593450 WARNING canberra_dams: Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/appdaemon/app_management.py", line 162, in initialize_app await utils.run_in_executor(self, init) File "/usr/lib/python3.11/site-packages/appdaemon/utils.py", line 304, in run_in_executor response = future.result() ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/apps/canberradams/canberradams.py", line 50, in initialize self.load() File "/config/apps/canberradams/canberradams.py", line 89, in load page = xmltodict.parse(response.text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/xmltodict.py", line 378, in parse parser.Parse(xml_input, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 5, column 14

2023-12-10 13:26:15.594359 WARNING canberra_dams: ------------------------------------------------------------

shamal69 commented 10 months ago

I have the same issue here

simonhq commented 10 months ago

Hi all,

Yes ICON have transitioned this to a Power BI dashboard that does not expose the underlying data (that I can find).

I have changed my dashboard to include the following card:

type: iframe
url: >-
  https://app.powerbi.com/view?r=eyJrIjoiY2MwMDVlYjYtYjRiMS00ZWYwLWIzN2QtNWM3OTU0YThkOWMyIiwidCI6ImE4ODBjY2UwLWI4NjYtNGU3YS1hMjNmLWVmNWE3NTU0NzFkMyJ9
aspect_ratio: 90%

which brings in the Power BI Dashboard directly into my home assistant dashboard. But you won't have the actual data in your setup if you were using it for automations etc.

I will leave this here for the time being but I will take it down in a while as it is no longer useful.

Thanks for the support.

Simon

Stephen2615 commented 3 months ago

@simonhq Hi Simon, the Icon Water URL in the code returns a 404 which sux. There are no warnings from AppDaemon.

Is there an option to grab the BoMs dam information?

Combined ACT

http://www.bom.gov.au/water/dashboards/#/plain/water-storages/sites/state?location=Australian%20Capital%20Territory

Googong

http://www.bom.gov.au/water/dashboards/#/plain/water-storages/sites/state?location=New%20South%20Wales&storage=Googong

Sadly I currently know nothing about how AppDaemon works..

Cheers

Stephen