Commit graph

22 commits

Author SHA1 Message Date
32b8296244
[#400] Dynamic logic to infer procedures/hooks arguments.
This allows procedures and event hooks to have more flexible signatures.
Along the lines of:

```python
@when(SomeEvent)
def hook(event):
  ...

@when(SomeOtherEvent)
def hook2():
  ...
```

Instead of supporting only the full context spec:

```python
@when(SomeEvent)
def hook(event, **ctx):
  ...
```

Closes: #400
2024-05-19 02:17:42 +02:00
7a849379f9
[#399] Added @when decorator as an alias for @hook.
Closes: #399
2024-05-08 21:58:58 +02:00
c69f97c0a5
Updated default config.yaml.
The new configuration:

- Enables `backend.http` by default
- Removes the extra `config.auto.yaml` dependency
- Includes many more examples, lots of updates for existing examples,
  and extensive comments.
2023-09-04 02:22:46 +02:00
759075f1d9
Updated sample nginx configuration. 2023-09-01 01:09:38 +02:00
afa4de5673
Dockerfile moved to application root 2023-08-17 10:38:21 +02:00
24b04d9103
s/--config-file/--config/ option in Dockerfile. 2023-08-17 10:35:40 +02:00
f07b774e75
A better Dockerfile. 2023-08-17 03:04:34 +02:00
fef6513cc8
Alpine Linux requires the linux-headers package to build psutil. 2023-08-15 11:40:02 +02:00
9788c642f9
Fixed Dockerfile 2023-07-24 11:04:17 +02:00
1586484e84
Upgraded Dockerfile 2023-07-24 10:37:51 +02:00
04b759e4d5
Upgraded base Python image in example Dockerfile.
3.7 -> 3.11
2023-07-23 17:27:48 +02:00
0de56ad52e
Added nginx sample configuration. 2023-05-10 00:59:41 +02:00
f9b0bc905e
Migrated websocket service.
The websocket service is no longer provided by a different service,
controlled by a different thread running on another port.

Instead, it's now exposed directly over Flask routes, using
WSGI+eventlet+simple_websocket.

Also, the SSL context options have been removed from `backend.http`, for
sake of simplicity. If you want to enable SSL, you can serve Platypush
through a reverse proxy like nginx.
2023-05-07 12:08:28 +02:00
7f157d0234 Dockerfile should be part of the examples/ folder 2021-03-16 00:29:52 +01:00
04a23d555d Updated README (it hadn't been updated for ages) 2021-02-22 02:53:20 +01:00
dae8cf0111 Uncommented some sections of the example config.yaml 2021-02-22 02:08:26 +01:00
ffb7a3e5a3 Extended and updated pieces of documentation on the HTTP server, Zigbee2mqtt and mpd. Also added example dashboard template and event hook script. 2021-02-22 01:20:01 +01:00
e08d4c21b8 Documentation domain name moved to docs.platypush.tech 2021-02-02 01:05:07 +01:00
Fabio Manganiello
cabc154252 systemd unit should depend on redis 2020-07-20 01:42:28 +02:00
Fabio Manganiello
8c41110145 Added bluetooth plugin (see #89) 2019-12-11 18:05:17 +01:00
Fabio Manganiello
d7266b21e5 Added example config.yaml 2019-12-08 23:21:27 +01:00
Fabio Manganiello
93b378a430 Added examples for config.yaml and platypush.service files 2019-12-08 23:19:49 +01:00