aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md62
1 files changed, 62 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..efa3dce
--- /dev/null
+++ b/README.md
@@ -0,0 +1,62 @@
+# Matrix Sender
+------
+
+This script allows you to send simple unencrypted message & html to matrix.
+It can be usefull for logging / cronjobs error or monitoring.
+
+## Install
+
+This script **is dependent of jq & curl**.
+
+To install the script, just clone this repo:
+```bash
+git clone https://github.com/oxbian/matrix-sender.git
+```
+
+## Usage
+
+First you need to edit the script with your homeserver url & the roomID
+
+After this you need to get your token
+```bash
+./matrix.sh -t <username> <password>
+```
+
+Once all is setup, you can send messages:
+- Simple message
+```bash
+./matrix.sh -s <message>
+```
+
+- HTML formatted message
+```bash
+./matrix.sh -html <message>
+```
+
+For help you can use:
+```bash
+./matrix.sh -h
+```
+
+```bash
+./matrix.sh --help
+```
+
+**Exemple**
+```bash
+./matrix.sh -s 'Hello world!'
+```
+
+```bash
+./matrix.sh -html '<h1 class="test"> t e s t </h1>'
+```
+
+## Contributing
+
+If you want to contribute, make a pull request with your contribution.
+
+## License
+
+This project is under the GPLv3 license, you can use it in your project but not in closed sources ones.
+Sharing project is what make the world live, think about it.
+
ArKa projects. All rights to me, and your next child right arm.