/matrixHomeBridge

Simple container that lets you send matrix messages via http post request

Primary LanguagePython

matrixHomeBridge

Simple container that lets you send matrix messages via http post request

Settings run this dockercontainer

3 files in the settings folder are needed

  • admin.json
    Should contain a user_id field that names the owner of this Bridge,
    a device_ids Array that lists all device ids whom the bridge trusts (for encryption)
    a room_id field that lits the room id to which messages are posted
  • matrixaccount.json
    Should contain the account info the bridge is using
    a userid filed that names the account the bridge uses
    and a homeserver filed that names the matrix server to use
  • for the first run only pw.txt is need
    Which contains only one line that contains the password of the account named in matrixaccount.json
  • on first loggin credentials.json is created so that the pw.json file is no longer need

Send a message

If the container is running, a simple http post request is enough to send a message

curl -X POST -i 'http://<dockerHostIP>:8080/notify' --data '{ "msg": "<THIS_IS_THE_MESSAGE>" }'