Skip to content

Instantly share code, notes, and snippets.

@koma5
Last active March 12, 2017 18:33
Show Gist options
  • Select an option

  • Save koma5/5d5a06ecdcca86cf7bd41f275f2f921e to your computer and use it in GitHub Desktop.

Select an option

Save koma5/5d5a06ecdcca86cf7bd41f275f2f921e to your computer and use it in GitHub Desktop.

Revisions

  1. koma5 revised this gist Mar 12, 2017. No changes.
  2. koma5 created this gist Mar 12, 2017.
    3 changes: 3 additions & 0 deletions prowlPushIfTankFullMqtt.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    mosquitto_sub -h mqtt -t 'vw/dehum/state' |
    grep --line-buffered "tank full" |
    xargs -d '\n' -n1 -I % curl -X POST --data 'apikey=<apikey>&event=%&application=vw/dehum' https://api.prowlapp.com/publicapi/add