matrix-webhook/README.md

36 lines
712 B
Markdown
Raw Normal View History

2019-02-10 16:02:48 -05:00
# wifi-with-matrix
2019-02-10 19:32:57 -05:00
Bridge between https://code.ffdn.org/FFDN/wifi-with-me & a matrix room
## Configuration
Set the following environment variables:
2019-02-10 19:56:50 -05:00
- `MATRIX_URL`: the url of the matrix homeserver
- `MATRIX_ID`: the user id of the bot on this server
- `MATRIX_PW`: the password for this user
- `ROOM_ID`: the room on which send the notifications
2019-02-10 19:32:57 -05:00
## Dev
```
pip3 install --user matrix-client
./main.py
```
## Prod
With a proxyta.net:
2019-02-10 20:02:35 -05:00
(don't forget about `CHATONS_DOMAIN`, otherwise you will stay on `localhost`)
2019-02-10 19:32:57 -05:00
```
docker-compose up -d
```
## Test
```
2019-02-12 18:55:24 -05:00
curl -d '{"text":"new contrib from toto: http://radio.localhost/map/#44", "key": "secret"}' wwm.localhost
2019-02-10 19:32:57 -05:00
```
2019-02-12 19:06:58 -05:00
(or wwm.localhost:4785 without docker)