You need to read the release notes - I know you haven’t updated form the original because of the lack of windows support but that is fixed now hopefully (let me know)
If you change the logfile and error file to “STDOUT” and “STDERR” they will come to the screen - or you can leave them out entirely and they will default to the screen.
Glad it’s working but it never went to both a log file and the screen unless you are a magician!
Thinking about it some more, maybe your special edited version did both because of the way you commented the lines out? I’ll take a look and see if I can figure a way of doing both.
That makes sense - it used to be log file to the screen and errors to a file if you started it on the command line. Let me know if it works for you as it is - I can’t disappoint my biggest fan!
i now have an app with some general functions that i call from another app.
it has to be seen how general i can make those functions, but for now it is working.
A big THANK YOU to Andrew for creating and sharing AppDaemon.
For weeks I tried to get some automation for my Halloween project done but I was unable to do so with the normal scripting in HA. It took me only one hour and I had the job done by using AppDaemon.
And I love the fact that AppDaemon is reading changed Apps right away.
def initialize(self):
self.listen_state(self.object_controle, self.args["object_type"])
if self.args["time_gone_by"] == "true" or self.args["time_gone_by"] == "True":
time = datetime.time(0, 0, 0)
self.run_minutely(self.object_controle_minutely, time)
but it seems like it only happens when i start the app at ?:59 new.
and i seem to have another randomly occuring error that is bugging me, so if you dont see a problem in your code there may be something else happening here.
Yep, it was a wrong assumption on my part about how the Python date libraries work - I changed the technique I was using to add 1 minute to the base time to fix it.