Giter VIP home page Giter VIP logo

matrix-sender's Introduction

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:

git clone https://git.arka.rocks/Oxbian/matrix-sender

And if you want you can add it to the PATH or link it to the /bin folder.

sudo ln -s $(pwd)/matrix-sender /bin/matrix-sender

Usage

First you need to edit the script with your homeserver url & the roomID

After this you need to get your token

matrix-sender -t <username> <password>

Once all is setup, you can send messages:

  • Simple message
matrix-sender -s {<room-id>} <message>
  • or an HTML formatted message
matrix-sender -html {<room-id>} <message>

For help you can use:

matrix-sender -h

or

matrix-sender --help

Example

matrix-sender -s 'Hello world!'
matrix-sender -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.

matrix-sender's People

Contributors

oxbian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.