The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist matejch/yii2-iot24-meter "^1.0"
or add
"matejch/yii2-iot24-meter": "^1.0"
to the require section of your composer.json
file.
./yii migrate --migrationPath=@vendor/matejch/yii2-iot24-meter/src/migrations
'iot' => [
'class' => \matejch\iot24meter\Iot24::class,
'apiFile' => __DIR__ . '/../iot.json'//path to json file with api endpoints and emails for notifications
]
Example of the required file , example iot.json
{
"sender": "sender email here"
}
Available values for device types are elektrometer, elektrometer_chodba, potrubie
/** load data from endpoints in json file or module parameter endpoints */
iot24/load
/** sends notification to all emails in json file or module parameter subscribers */
notification/send
/** shows all donwloaded data from table `iot24` */
/** also shows graph of data from given channels */
iot24/index
/** allows update given data */
iot24/update
/** load data from endpoints in json file or module parameter endpoints */
iot24/load