Skip to content

Forward airrohr values from custom API endpoint to mqtt

Notifications You must be signed in to change notification settings

CodeforKarlsruhe/airrrohr2mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MQTT forward of Airrohr data

  • configure a domain
  • create a vhost or container with php/webserver/ssl certificate on your server for the domain
  • create data/ dir in webroot with write access for webserver
  • configure mqtt parameters
  • run and debug until it works :)
wget https://getcomposer.org/installer
php installer --install-dir=bin --filename=composer
php bin/composer require php-mqtt/client

if [ ! -d "data" ] ; then
# create data dir, set permissions
mkdir -p data
chmown root/www-data data
chmod ug+rwx data
chmod o-w data
fi
if [ ! -f "config.mqtt.php" ] ; then
cp config.mqtt.php.template config.mqtt.php
fi

sources used to assemble this:

The european Joinup Licensing Assistant compatibility checker states, that the permissive MIT license allows redistribution under other licenses, so here EUPL-1.2 is our choice.

Licenses handled and added via the great reuse tool, thanks to all contributors of openly licensed source code and infrastucture! Shoutout for great dev/debug sessions with Alex.

Such a functionality seems to have been already implemented elsewhere at jklmnn/airrohr-mqtt for Homeassistant.

About

Forward airrohr values from custom API endpoint to mqtt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published