tcsvn / activity-assistant Goto Github PK
View Code? Open in Web Editor NEWActivity Assistant provides a platform for logging, evaluating and predicting Activities of Daily Living for Home Assistant.
License: MIT License
Activity Assistant provides a platform for logging, evaluating and predicting Activities of Daily Living for Home Assistant.
License: MIT License
Hi,
Uninstalled previous version and installed the 0.0.2-alpha.
Once the addon is running, opened the web ui on port 8000, and pressed on "Connect".
Then I'm getting:
Server Error (500)
Attaching my logs (looks like parsing !include wrongly):
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
No changes detected
Operations to perform:
Synchronize unmigrated apps: backend, frontend, messages, qr_code, rest_framework, staticfiles
Apply all migrations: admin, auth, authtoken, contenttypes, sessions
Synchronizing apps without migrations:
Creating tables...
Creating table backend_dataset
Creating table backend_personstatistic
Creating table backend_person
Creating table backend_location
Creating table backend_edge
Creating table backend_device
Creating table backend_activity
Creating table backend_activityprediction
Creating table backend_syntheticactivity
Creating table backend_smartphone
Creating table backend_model
Creating table backend_realtimenode
Creating table backend_deviceprediction
Creating table backend_server
Running deferred SQL...
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying auth.0012_alter_user_first_name_max_length... OK
Applying authtoken.0001_initial... OK
Applying authtoken.0002_auto_20160226_1747... OK
Applying authtoken.0003_tokenproxy... OK
Applying sessions.0001_initial... OK
Installed 1 object(s) from 1 fixture(s)
[2021-01-05 00:23:12 +0200] [212] [INFO] Starting gunicorn 20.0.4
[2021-01-05 00:23:12 +0200] [212] [INFO] Listening at: unix:/tmp/gunicorn.sock (212)
[2021-01-05 00:23:12 +0200] [212] [INFO] Using worker: sync
[2021-01-05 00:23:12 +0200] [219] [INFO] Booting worker with pid: 219
Registration of a service, press Ctrl-C to exit...
(SIGTERM) terminating the process
Unregistering...
[Errno 2] No such file or directory: '/config/config/core/../../../customization/customize_global.yaml'
Registration of a service, press Ctrl-C to exit...
(SIGTERM) terminating the process
Unregistering...
I do have this file located: /config/config/core/customization/customize_global.yaml and it is working, of course the config check also passing.
Please advise
Cannot get addon to work, getting "refused to connect":
Installed using supervisor and https://github.com/tcsvn/hassio-activity-assistant repo
Boot Log:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
No changes detected
Operations to perform:
Synchronize unmigrated apps: backend, frontend, messages, qr_code, rest_framework, staticfiles
Apply all migrations: admin, auth, authtoken, contenttypes, sessions
Synchronizing apps without migrations:
Creating tables...
Creating table backend_dataset
Creating table backend_personstatistic
Creating table backend_person
Creating table backend_location
Creating table backend_edge
Creating table backend_device
Creating table backend_activity
Creating table backend_activityprediction
Creating table backend_syntheticactivity
Creating table backend_smartphone
Creating table backend_model
Creating table backend_realtimenode
Creating table backend_deviceprediction
Creating table backend_server
Running deferred SQL...
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying auth.0012_alter_user_first_name_max_length... OK
Applying authtoken.0001_initial... OK
Applying authtoken.0002_auto_20160226_1747... OK
Applying authtoken.0003_tokenproxy... OK
Applying sessions.0001_initial... OK
CommandError: No fixture named 'inital_server' found.
[2020-12-15 15:17:08 +0200] [187] [INFO] Starting gunicorn 20.0.4
[2020-12-15 15:17:08 +0200] [187] [INFO] Listening at: http://0.0.0.0:8000 (187)
[2020-12-15 15:17:08 +0200] [187] [INFO] Using worker: sync
[2020-12-15 15:17:08 +0200] [212] [INFO] Booting worker with pid: 212
After I click on [OPEN WEB UI] I get XXXX.duckdns.org refused to connect.
And in the log I see:
Internal Server Error: /
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/opt/activity_assistant/web/frontend/views/setup.py", line 160, in get
srv = Server.objects.all()[0]
File "/usr/lib/python3.8/site-packages/django/db/models/query.py", line 325, in __getitem__
return qs._result_cache[0]
IndexError: list index out of range
Hi, I'm using HA Core so I can't use add-on.
Is this sw installable and usable NOT as an add-on?
Any idea if this will still work if I'm not using the default sqlite database?
I don't own an android phone, so I can't use the activity logger. Is there a web version of this we could use?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.