Giter Club home page Giter Club logo

Comments (5)

benleb avatar benleb commented on June 15, 2024

First, no problem :)

About Logs, you can configure where the logs go in AppDaemon configuration, see https://appdaemon.readthedocs.io/en/latest/CONFIGURE.html#log-configuration for more details.
Do you see any errors that AutoMoLi could not be loaded in the appdaemon.log? Or did you config log related stuff in AppDaemon? If not, any logs should be written to stdout (shown where you start AppDaemon) afaik.

Or are you using something like Hass.io or anything? In this case I would expect all logs to go at least to config/appdaemon/logs/, but i do not know anything about. Maybe there are other files in this folder?

You can tell me a little more details about your setup and I should be able to help you at least by pointing you to the correct contect fpr this issue :)

from ad-automoli.

gogui63 avatar gogui63 commented on June 15, 2024

Thanks for your help !

I well configured logs like this :
logs: main_log: filename: /config/appdaemon/logs/appdaemon.log access_log: filename: /config/appdaemon/logs/access.log error_log: filename: /config/appdaemon/logs/error.log diag_log: filename: /config/appdaemon/logs/diag.log log_generations: 5 log_size: 1024 format: "{asctime} {levelname:<8} {appname:<10}: {message}" automoli_log: name: AutoMoLi filename: /config/appdaemon/logs/automoli.log

I've not error concerning Automoli in AppDaemons logs but my lights doesn't on when a motion sensor is trigger.
I'm ussing Hassio 0.105.2 (last stable version) on Intel NUC (debian 9).
My lights are Philips Hue Lights and motion sensors are Xiaomi sensors

I checked my logs and there are :

2020-02-09 15:41:44.587323 INFO AppDaemon: App initialization complete
2020-02-09 15:45:34.203889 INFO AppDaemon: Removing module /config/appdaemon/apps/automoli/automoli.py
2020-02-09 15:45:35.211074 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/automoli/automoli.py - ignoring

from ad-automoli.

benleb avatar benleb commented on June 15, 2024

Ah okay, but afaik that configuration will not do what you expect (logging all logs from AutoMoLi to a separate file). Remove the automoli stuff from the log section completely, then you should get the logs to appdaemon.log

The Log snippet means AppDaemon could not find the configuration for AutoMoli?! Maybe you put it in a wrong file? The configuration for apps are (by default) in a file called apps.yaml. I do not know where it is on Hass.io, but I guess it could be /config/appdaemon/apps/apps.yaml

from ad-automoli.

gogui63 avatar gogui63 commented on June 15, 2024

OOh yeah ! I've put everything in appdaemon.yaml, now "works fine" in apps.yaml inside config/appdaemon/apps/

Now I've in logs :

2020-02-09 16:50:13.723285 WARNING Error: ------------------------------------------------------------
2020-02-09 16:50:13.724146 WARNING Error: Unexpected error loading module: /config/appdaemon/apps/automoli/automoli.py:
2020-02-09 16:50:13.725022 WARNING Error: ------------------------------------------------------------
2020-02-09 16:50:13.730458 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/automoli/automoli.py", line 32, in
from adutils import ADutils, hl
ModuleNotFoundError: No module named 'adutils'

from ad-automoli.

benleb avatar benleb commented on June 15, 2024

Okay, thats a duplicate - lets talk in the other issue #15 about. Closing this here :)

from ad-automoli.

Related Issues (20)

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.