Coder Social home page Coder Social logo

canberradams's People

Contributors

simonhq avatar

Watchers

 avatar  avatar

canberradams's Issues

How to set up

Hi

I have followed all of the instructions here, including adding AppDaemon4 from the store, but cannot get this application to start.

Have included:
appdaemon:
system_packages: []
python_packages:
- xmltodict
init_commands: []
into /config/appdaemon/appdaemon.yaml file.

AppDaemon4 log is recursively logging:
[14:18:55] INFO: Starting AppDaemon...
2020-05-06 14:18:56.205492 INFO AppDaemon: AppDaemon Version 4.0.3 starting
2020-05-06 14:18:56.205665 INFO AppDaemon: Python version is 3.8.2
2020-05-06 14:18:56.205810 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2020-05-06 14:18:56.206559 INFO AppDaemon: Added log: AppDaemon
2020-05-06 14:18:56.206679 INFO AppDaemon: Added log: Error
2020-05-06 14:18:56.206819 INFO AppDaemon: Added log: Access
2020-05-06 14:18:56.206989 INFO AppDaemon: Added log: Diag
2020-05-06 14:18:56.207118 ERROR AppDaemon: time_zone not specified in appdaemon.cfg
2020-05-06 14:18:56.207241 ERROR AppDaemon: latitude not specified in appdaemon.cfg
2020-05-06 14:18:56.207362 ERROR AppDaemon: longitude not specified in appdaemon.cfg
2020-05-06 14:18:56.207485 ERROR AppDaemon: elevation not specified in appdaemon.cfg

I have included following lines in configuration.yaml:
canberra_dams:
module: canberradams
class: Get_ACT_Dams
DAM_FLAG: "input_boolean.check_dams"

Absolute noob here, so it's obviously something I missing or doing wrong ... any help greatly appreciated.

Thanks in advance

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

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: ------------------------------------------------------------

fails to load

Hi There,
Please help, via HASSIO i've installed appdaemon4, then proceeded to install canberradams via the community repo. all looks to install correctly, upon starting appdaemon4 i get the following in the log.

2020-04-01 09:42:55.214389 WARNING Error: ------------------------------------------------------------
2020-04-01 09:42:55.214789 WARNING Error: Unexpected error loading module: /config/appdaemon/apps/canberradams/canberradams.py:
2020-04-01 09:42:55.215161 WARNING Error: ------------------------------------------------------------
2020-04-01 09:42:55.216584 WARNING Error: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 788, in check_app_updates
await utils.run_in_executor(self, self.read_app, mod["name"], mod["reload"])
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 276, in run_in_executor
response = future.result()
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 580, in read_app
self.modules[module_name] = importlib.import_module(module_name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/config/appdaemon/apps/canberradams/canberradams.py", line 31, in
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'

2020-04-01 09:42:55.216777 WARNING Error: ------------------------------------------------------------
2020-04-01 09:42:55.216968 WARNING AppDaemon: Removing associated apps:
2020-04-01 09:42:55.217161 WARNING AppDaemon: canberra_dams
2020-04-01 09:42:55.217617 INFO AppDaemon: App initialization complete

I checked python, bs4 and BeautifulSoup are installed. my HA (HASSIO) is running on Ubuntu 18.04 with python 3.8.0-3~18.04

Please help a local canberrian stuck at home,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.