Fabio Manganiello
c0dd91838b
Merge branch 'master' into 29-generic-entities-support
2022-11-21 22:13:47 +01:00
Fabio Manganiello
98d7c95aa7
Removed two unrequired return
statements
2022-11-21 13:04:48 +01:00
Fabio Manganiello
8450129858
LINT fixes
2022-11-12 11:39:12 +01:00
Fabio Manganiello
8a894d0989
user_manager
should be a global object instead of being initialized on-demand
2022-11-12 11:38:40 +01:00
Fabio Manganiello
aa5b52db2f
FIX: Still redirect to /register by default if no users have been created
2022-10-10 01:36:28 +02:00
Fabio Manganiello
6ec8a991df
Fixed tests
2022-10-08 15:18:26 +02:00
Fabio Manganiello
b9b7404230
Web panel improvements.
...
- Don't return a redirect to the login page if an authentication failed
over a JSON endpoint - instead, return a JSON payload with the error.
- Added support for additional fonts.
- Re-designed the login/registration page.
- Updated caniuse database.
2022-10-07 02:24:29 +02:00
Fabio Manganiello
ae226a5b01
Added tts.mimic3
integration.
...
Closes : #226
2022-09-30 10:51:17 +02:00
Fabio Manganiello
82ab7face2
A more robust logic to detect the webserver local bind address
2022-09-30 03:10:37 +02:00
Fabio Manganiello
a90aa2cb2e
Make sure that a webhook function never returns a null response
2022-09-04 00:52:41 +02:00
Fabio Manganiello
c5b12403d0
Implemented support for returning richer HTTP responses on webhooks.
...
A `WebhookEvent` hook can now return a tuple in the format `(data,
http_code, headers)` in order to customize the HTTP status code and the
headers of a response.
2022-09-01 01:37:18 +02:00
Fabio Manganiello
96b2ad148c
A smarter way of building and matching the event condition
2022-08-31 02:19:21 +02:00
Fabio Manganiello
67413c02cd
Handle the case where the condition is a serialized dictionary
2022-08-31 01:55:21 +02:00
Fabio Manganiello
c3fa3315f5
Implemented synchronization with webhook responses.
...
When a client triggers a `WebhookEvent` by calling a configured webhook
over `/hook/<hook_name>`, the server will now wait for the configured
`@hook` function to complete and it will return the returned response
back to the client.
This makes webhooks much more powerful, as they can be used to proxy
HTTP calls or other services, and in general return something to the
client instead of just executing actions.
2022-08-30 23:35:19 +02:00
Fabio Manganiello
5966566d54
Fixed LGTM warnings
2022-06-10 20:56:40 +02:00
Fabio Manganiello
5ee47902f4
Refactored camera stream route
2022-03-28 12:44:04 +02:00
Fabio Manganiello
29a7eff15a
Fixed/suppressed LGTM warnings
2022-02-08 21:51:37 +01:00
Fabio Manganiello
acdc636b1f
Resolve "Mastodon integration"
2021-11-07 01:00:29 +01:00
Fabio Manganiello
7b8938cb12
Fixed LGTM errors and warnings
2021-09-17 00:47:33 +02:00
Fabio Manganiello
3bfc5b83ef
Moved to manifest files for describing plugins and backends and their dependencies
2021-09-16 17:53:40 +02:00
Fabio Manganiello
35c4a30a63
Added music.spotify plugin and refactored MusicPlugin
2021-07-17 22:14:15 +02:00
Fabio Manganiello
f1faa1141e
More LINT fixes
2021-04-06 21:10:48 +02:00
Fabio Manganiello
2a78f81a7b
Major LINT fixes
2021-04-05 00:58:44 +02:00
Fabio Manganiello
211025cedb
The redis_queue parameter is not necessarily defined on the app config
2021-03-10 11:15:06 +01:00
Fabio Manganiello
090e7d6de8
Support for specifying the application Redis queue from the command line or service constructor
2021-03-06 19:22:13 +01:00
Fabio Manganiello
a5f02c6a30
The /hook route should not require token authentication - authentication is up to the hook implementation
2021-02-24 22:21:01 +01:00
Fabio Manganiello
10eb0c12aa
Don't fail hard if the web app is initialized without access to a configuration file (e.g. from a ReadTheDocs build environment)
2021-02-21 23:30:05 +01:00
Fabio Manganiello
94c35e210e
Migrated /plugin/<pluginName> route
2021-02-21 00:39:06 +01:00
Fabio Manganiello
34892e227a
The webapp dist/ folder should actually be under the webapp dir
2021-02-20 23:26:25 +01:00
Fabio Manganiello
8168cd3ab3
Don't default on logging.INFO level if another level is set in the configuration, and apply the same logging level also to the web server [ closes #162 ]
2021-02-13 15:13:07 +01:00
Fabio Manganiello
b3c28f6773
Added support for JWT token-based authentication
2021-02-12 22:43:34 +01:00
Fabio Manganiello
ef63c3769e
Cast request headers to dict before adding them to the event
2021-01-31 00:16:44 +01:00
Fabio Manganiello
fddf2006e4
Added headers argument to webhook event
2021-01-31 00:01:58 +01:00
Fabio Manganiello
85f56cf98c
New media panel [WIP]
2021-01-14 00:15:35 +01:00
fabio-eiq
d10649e1f1
Support for token over Authorization: Bearer header
2020-12-31 15:36:48 +01:00
Fabio Manganiello
e5c8adfc1b
Fixed and expanded integration tests to deal with HTTP user authentication
2020-12-16 02:10:37 +01:00
Fabio Manganiello
0cd120f492
New template for index panel
2020-11-30 20:57:00 +01:00
Fabio Manganiello
229b2de566
The /execute endpoint should require authentication as well
2020-11-28 15:28:09 +01:00
Fabio Manganiello
3c6f3c5a21
Migrated login and register components
2020-11-26 23:43:16 +01:00
Fabio Manganiello
cc3e52c69d
Migrated ImageCarousel widget
2020-11-26 00:26:10 +01:00
Fabio Manganiello
39abdfe40a
New Vue.js template for dashbord WIP
2020-11-21 01:12:08 +01:00
Fabio Manganiello
07336d3272
Fixed login redirect page [ closes #154 ]
2020-09-27 17:20:14 +02:00
Fabio Manganiello
c269c62fe6
Refactored logging names
2020-09-27 01:33:38 +02:00
Fabio Manganiello
09f9e974b1
Camera plugins refactor
2020-09-25 17:19:43 +02:00
Fabio Manganiello
9623752e19
Fixed module name typo
2020-09-08 17:57:18 +02:00
Fabio Manganiello
53ddbad7ce
Refactored MLX90640 plugin and HTTP route to work with direct BytesIO - it improves performance over using temporary files or base64-encoded responses
2020-09-08 17:51:46 +02:00
Fabio Manganiello
aa66b81b7b
Fixed webhook event management
2020-05-09 01:47:12 +02:00
Fabio Manganiello
f7d644c32d
get_procedures() can now return Python function objects as well.
...
This means that the JSON encoder must act accordingly and parse
the function object into an encodable string.
2020-04-12 22:56:12 +02:00
Fabio Manganiello
b490344632
Fixed missing static_folder issue on settings page and JS document race condition
2020-03-29 13:47:22 +02:00
Fabio Manganiello
03968928e7
Don't do QRcode plugin base imports, or the web app may fail if the dependencies are not installed
2020-03-24 10:29:22 +01:00