Commit graph

4099 commits

Author SHA1 Message Date
c3766ee423
[Automatic] Updated UI files 2024-11-05 11:15:31 +00:00
dc3e896d51
Merge pull request #451 from blacklight/dependabot/npm_and_yarn/platypush/backend/http/webapp/multi-9f37c16f8f
Bump cookie and express in /platypush/backend/http/webapp
2024-11-05 12:10:43 +01:00
65da4bb33f
Merge pull request #450 from blacklight/dependabot/npm_and_yarn/platypush/backend/http/webapp/rollup-2.79.2
Bump rollup from 2.79.1 to 2.79.2 in /platypush/backend/http/webapp
2024-11-05 12:10:27 +01:00
dependabot[bot]
e33a2c1a70
Bump cookie and express in /platypush/backend/http/webapp
Bumps [cookie](https://github.com/jshttp/cookie) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `cookie` from 0.6.0 to 0.7.1
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v0.7.1)

Updates `express` from 4.19.2 to 4.21.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.1)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-05 11:10:19 +00:00
7147af7f3b
Merge pull request #449 from blacklight/dependabot/npm_and_yarn/platypush/backend/http/webapp/webpack-5.95.0
Bump webpack from 5.88.2 to 5.95.0 in /platypush/backend/http/webapp
2024-11-05 12:10:10 +01:00
cfce4e11e2
Merge pull request #446 from blacklight/dependabot/npm_and_yarn/platypush/backend/http/webapp/multi-d66d039ac5
Bump serve-static and express in /platypush/backend/http/webapp
2024-11-05 12:08:52 +01:00
53817413a4
Merge branch 'master' into snyk-fix-5ef3afe3fbfad34ca892e17f8d68fd7a 2024-11-05 12:08:13 +01:00
bb02e7c9e4
Merge branch 'master' into snyk-upgrade-0bb24e2b5457007f3b0c55c99e017fb1 2024-11-05 12:03:15 +01:00
81bf0e9561
Merge pull request #439 from blacklight/snyk-upgrade-c2f62e1f7d3dac8bdb3d5bbc73b40e8f
[Snyk] Upgrade sass from 1.77.3 to 1.77.6
2024-11-05 12:01:14 +01:00
5c1aeed30c
Merge pull request #438 from blacklight/snyk-upgrade-1a34e4a33d2d3e97e1e1d82394a1163c
[Snyk] Upgrade vue-router from 4.3.3 to 4.4.0
2024-11-05 11:59:07 +01:00
6dacddad97
[Automatic] Updated UI files 2024-11-04 00:43:27 +00:00
4759da30eb
[Execute UI] Fixed glitch when switching action args. 2024-11-04 01:41:19 +01:00
d15d744017
[Automatic] Updated components cache 2024-11-03 23:29:40 +00:00
3e54d5d7b3
[switch.tplink] Extended exception handling to all SmartDevice methods. 2024-11-04 00:28:29 +01:00
43e88c71c6
[Automatic] Updated components cache 2024-11-03 23:16:50 +00:00
71bafec11e
[switch.tplink] Better error handling.
The whole `_update_devices` for loop should be covered by a try-except
block. That's because custom attribute getters may be invoked also after
expanding the results, resulting in unhandled `SmartDeviceException`.
2024-11-04 00:15:37 +01:00
e2382c5ea2
[Automatic] Updated components cache 2024-11-03 09:44:34 +00:00
dd02be12fc
[db] Wrap SQL statements into connection.begin() blocks.
The latest release of SQLAlchemy 2.x has apparently removed the
`autocommit` implicit logic for good.

Mutations should be explicitly wrapped into `with ... begin()` blocks,
or they will be rolled back when the connection is closed.
2024-11-03 10:38:22 +01:00
1cb42f8923
[Automatic] Updated UI files 2024-11-02 21:09:28 +00:00
6936a67182
[UI] null check on datetime* functions. 2024-11-02 15:50:37 +01:00
13856365fc
[Automatic] Updated components cache 2024-10-22 00:58:31 +00:00
f98f9c3b96
[media.vlc] Always set the stop event when the player quits. 2024-10-22 02:57:19 +02:00
1626fc737e
[media.mpv] media.mpv.play should toggle pause when called with no resource. 2024-10-22 02:57:19 +02:00
c04aaba2bc
[Automatic] Updated components cache 2024-10-22 00:32:57 +00:00
2b7df634fc
A better way to ensure that the components cache won't be rewritten unless changed.
- Compare the serialized versions of the cache before and after, minus
  the saved/loaded timestamps, rather than marking the cache as dirty
  after a set.

- `Date` and `DateTime` schema fields should have static default values,
  or those values will change on every run.

- Always sort all the sets before serializing them.
2024-10-22 02:31:45 +02:00
8feee6ce39
[media.mpv] Better synchronization on player stop/idle events. 2024-10-22 02:31:45 +02:00
5fac324b43
[chore] LINT fixes. 2024-10-22 02:31:45 +02:00
3dab232d33
[Automatic] Updated components cache 2024-10-21 22:09:16 +00:00
11e25a79a5
[CI/CD] Better logic to detect changes in the components cache. 2024-10-22 00:08:03 +02:00
e73872b65e
[Automatic] Updated components cache 2024-10-21 21:48:11 +00:00
c96e83107e
[media.mpv] Make player.wait_for_shutdown call back-compatible.
Older versions of python-mpv don't support the timeout parameter.
2024-10-21 23:46:56 +02:00
2c05b7a225
[Automatic] Updated components cache 2024-10-21 21:44:00 +00:00
84a5eeb86a
[linode] Small bug fix on schema deserialization. 2024-10-21 23:42:47 +02:00
3543052c11
[Automatic] Updated components cache 2024-10-21 21:35:48 +00:00
fe3d3d6c16
[linode] Recursively expand MappedObjects before serializing. 2024-10-21 23:34:35 +02:00
bd7644b7cc
[Automatic] Updated components cache 2024-10-21 21:02:08 +00:00
83ced6a320
[media.mpv] Made the event API compatible with all python-mpv versions.
The format of the `MpvEvent*` classes, the data passed to the event
callback and the available event type enum fields have all changed
between python-mpv < 1.0.0 and >= 1.0.0.

This change makes things work with all mpv + python-mpv versions.
2024-10-21 23:00:56 +02:00
47728d5bbd
[Automatic] Updated components cache 2024-10-21 19:12:45 +00:00
89bcdbe1ac
[media.vlc] Fixed a non-easily reproducible deadlock.
The VLC event callback handler shouldn't try and access the media and/or
the MRL while processing a `MediaPlayerTitleChanged` event.

It seems that in some particular streaming cases (mostly reproducible
with Jellyfin media URLs) this may result in deadlocks - probably
because the media metadata is being handled within the HTTP request, and
the callback handler runs within the same context.
2024-10-21 21:11:28 +02:00
8fa2080652
[media.vlc] A more robust logic for the player monitor thread.
The player may sometimes stop, or the VLC instance crash, without
sending a stop event.

This may leave the Platypush plugin in a PLAYING state, and the instance
may not be properly cleaned up.

This commit adds a polling logic to the monitor thread to verify every
second if the player is still running, and terminate the instance if
that's not the case.
2024-10-21 21:11:28 +02:00
25b77f068b
[Automatic] Updated components cache 2024-10-20 01:27:11 +00:00
76b86aec0e
[rss] Moved _parse_subscriptions call inside of main.
Rather than the plugin constructor.

This is to ensure that the application startup won't be have to wait for
the feed parsing logic to complete.
2024-10-20 03:25:57 +02:00
897f3a6f47
[Automatic] Updated UI files 2024-10-20 00:53:54 +00:00
8e9fb65db5
[#414] Support for Jellyfin book items [frontend]. 2024-10-20 02:51:48 +02:00
51464b808c
[Automatic] Updated UI files 2024-10-20 00:37:58 +00:00
825593a445
[#414] Support for Jellyfin book items [backend]. 2024-10-20 02:35:52 +02:00
ec8fe401d2
[Media UI] Support audio types in the embed player. 2024-10-20 02:35:52 +02:00
3a9d5700ea
[#414] Support paginated results on scroll in the media Collections component. 2024-10-20 02:35:51 +02:00
d171795e7c
[#414] Added embedded player support for Jellyfin and YouTube media. 2024-10-20 02:35:51 +02:00
4015cf356d
[Automatic] Updated UI files 2024-10-19 15:05:19 +00:00
fa942b06e3
[media] Support HEAD method on media stream endpoints. 2024-10-19 17:03:12 +02:00
4373d4ceaa
[media] Clear the stream media cache on the first update.
The stream media cache can easily grow in MB in size. Storing it in
Redis means impacting the performance of the application, as on every
web media streaming event it'll have to fetch and deserialize MBs of
data, and Redis may also flush the .rdb file to disk several times in
the process.
2024-10-19 17:03:12 +02:00
7620e1ead7
[#414] Added support for downloading Jellyfin items. 2024-10-19 17:03:12 +02:00
e314a7bca9
[Automatic] Updated components cache 2024-10-15 21:26:42 +00:00
3e61bd7a9b
[media.jellyfin] Several improvements on schema definitions. 2024-10-15 23:25:29 +02:00
12c800b7a9
[Automatic] Updated UI files 2024-10-15 20:19:06 +00:00
7b8d92b120
[#414] Added support for photo collections in Jellyfin UI. 2024-10-15 22:16:57 +02:00
3ffb061e2a
[Automatic] Updated components cache 2024-10-14 21:09:41 +00:00
9716b1da35
[media.jellyfin] Added support for photo items. 2024-10-14 23:00:50 +02:00
e30ae16ef7
[Automatic] Updated UI files 2024-10-14 19:51:04 +00:00
86559a623a
[#433] Added music UI to Jellyfin. 2024-10-14 21:48:54 +02:00
4f81a73fb9
[UI] Added formatDuration utility. 2024-10-14 21:48:54 +02:00
117dfad64e
[UI] Dropdown's hidden class should be set as a property. 2024-10-14 21:48:54 +02:00
9b99c1e19d
[procedures] Sync only after the db engine is initialized. 2024-10-14 21:48:54 +02:00
585c2f733f
[media.jellyfin] Added more metadata to the returned items. 2024-10-14 21:48:53 +02:00
cad864f220
[Automatic] Updated components cache 2024-10-14 16:23:26 +00:00
e3e3638ffe
[switch.tplink] Demoted log trace for missing current_consumption property from warning to debug 2024-10-14 18:22:12 +02:00
c605a65bf1
[Automatic] Updated components cache 2024-10-14 16:09:26 +00:00
f032957d0b
[switch.tplink] Don't thrown an exception if a device doesn't support current_consumption. 2024-10-14 18:07:57 +02:00
f364be17e3
[Automatic] Updated components cache 2024-10-13 14:11:51 +00:00
0aae905754
[media.vlc] Better state management. 2024-10-13 16:10:35 +02:00
0ab160569a
[media.vlc] A more robust close/stop player logic. 2024-10-13 16:10:35 +02:00
9cadf98d52
[Automatic] Updated components cache 2024-10-12 22:25:43 +00:00
44557e812f
Added EventProcessor.remove_hook method. 2024-10-13 00:24:24 +02:00
14b25ac891
[Automatic] Updated UI files 2024-10-03 19:24:39 +00:00
e16247529e
[UI] 🐛 Moved ProcedureEditor component out of the v-else branch.
Otherwise adding new procedures through the floating add button won't
work unless some procedures are already present.
2024-10-03 21:21:27 +02:00
9ebe251d46
Several Docker image improvements.
- Reduced size of the Ubuntu image by removing some unneeded packages
  (docutils, manpages, babel, fonts, python-pil etc.) that take a lot of
  space.

- Better self-documented docker-compose.yml.

- Added reference to the registry.platypush.tech/platypush image in
  docker-compose.yml (README reference will follow).

- Fixed grep condition in the Docker prepare script.

- Pass `--no-deps` to `pip install platypush`. The dependencies of the
  application, now that `marshmallow_dataclasses` has been removed, are
  all available in the package managers of the supported images (with
  the exception for croniter in Alpine Linux for now), so they can all
  be installed via system package manager rather than pip. This also
  prevents Ubuntu builds from breaking because system-installed packages
  are being overwritten with pip-installed copies.
2024-10-03 20:35:01 +02:00
2308c4e927
Deeper cleanup of cache and tmp files in Dockerfile. 2024-09-30 22:23:15 +02:00
9e6ae42660
[Automatic] Updated UI files 2024-09-28 22:03:28 +00:00
c88a6aa3e6
[#414] [UI] Added support for generic Jellyfin media collections. 2024-09-29 00:01:16 +02:00
9e78a9a297
[Automatic] Updated UI files 2024-09-28 21:54:26 +00:00
1a53c59382
[#414] Added ability to sort Jellyin results.
This also adds a new `FloatingDropdownButton` component.
2024-09-28 23:52:18 +02:00
bf82ad9bf0
[WIP] [#414] [UI] Initial implementation of the Jellyfin UI. 2024-09-28 23:52:13 +02:00
dependabot[bot]
0d62760036
Bump rollup from 2.79.1 to 2.79.2 in /platypush/backend/http/webapp
Bumps [rollup](https://github.com/rollup/rollup) from 2.79.1 to 2.79.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.79.1...v2.79.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-28 01:53:39 +00:00
dependabot[bot]
1b735779d3
Bump webpack from 5.88.2 to 5.95.0 in /platypush/backend/http/webapp
Bumps [webpack](https://github.com/webpack/webpack) from 5.88.2 to 5.95.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.88.2...v5.95.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 00:37:34 +00:00
841516d9de
[Automatic] Updated components cache 2024-09-25 23:53:57 +00:00
c134f29c72
Bump version: 1.3.0 → 1.3.1 2024-09-26 01:52:09 +02:00
dc104a9c8e
[linode] A more robust way to deal both with dict and object results. 2024-09-26 01:50:52 +02:00
117d3f07d9
Added docs for new procedures plugin 2024-09-26 01:43:08 +02:00
f13e00f22e
[Automatic] Updated components cache 2024-09-25 23:39:06 +00:00
54e3703462
[#344] Removed remaining references of marshmallow_dataclass.
Closes: #344
2024-09-26 01:36:51 +02:00
a7f03a1af9
[#344] Removed marshmallow_dataclass dependency from system plugin. 2024-09-25 23:55:32 +02:00
63d9c1e348
[Automatic] Updated components cache 2024-09-24 10:04:41 +00:00
9244eedc49 tts.openai.say doesn't need a language parameter - and its presence breaks playback 2024-09-24 12:03:24 +02:00
bc01cddee0
Bump version: 1.2.3 → 1.3.0 2024-09-23 21:38:00 +02:00
f81c0dad4c
[Automatic] Updated UI files 2024-09-23 01:52:22 +00:00
54a4c21882 Merge branch 'master' into 341/procedure-entities-ui 2024-09-23 03:48:51 +02:00
c48efe07bd
[Automatic] Updated components cache 2024-09-23 01:46:43 +00:00
393493550c
Merge branch '341/procedure-entities' into 341/procedure-entities-ui 2024-09-23 03:21:34 +02:00
38c1ebb90c
[alarm] Don't fail if no audio file is provided. 2024-09-23 03:20:55 +02:00