PHPackages                             kelemen/fibaro-hc3-influx-box - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kelemen/fibaro-hc3-influx-box

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kelemen/fibaro-hc3-influx-box
=============================

Sandbox for Fibaro HC3 to influx logs

02

Since Apr 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ricco24/fibaro-hc3-influx-box)[ Packagist](https://packagist.org/packages/kelemen/fibaro-hc3-influx-box)[ RSS](/packages/kelemen-fibaro-hc3-influx-box/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Fibaro HC3 logs to influx import
--------------------------------

[](#fibaro-hc3-logs-to-influx-import)

### Requirements

[](#requirements)

- PHP &gt;= 7.1
- Composer
- Installed InfluxDB

### Usage

[](#usage)

#### Initialization

[](#initialization)

As example we use directory **/home/pi/fibaro** as root of our project.

```
# Create project directory
mkdir /home/pi/fibaro
cd /home/pi/fibaro

# Clone project skeleton to created directory
composer create-project kelemen/fibaro-hc3-influx-box . dev-master

# Edit configuration
mv config/config.php.temp config/config.php
vim config/config.php
```

#### Configuration

[](#configuration)

Base template for configuration is stored in `/config/config.php.temp`

```
return [
    'influx' => [
        'host' => '',           // base InfluxDB host or IP
        'database' => '',       // logs will be saved into this database [database has to be already created in InfluxDB]
        'port' => 8086,
        'username' => '',       // InfluxDB username [with write privileges to selected database]
        'password' => '',       // InfluxDB password
        'ssl' => false,         // set true if InfluxDB is running via https
        'verifySSL' => false,   // verify SSL certificate [set to false if using self signed certificates]
        'timeout' => 5,         // call timeout in seconds [set to reasonable value to prevent infinite calls]
        'connectTimeout' => 3   // connect timeout in seconds [set to reasonable value to prevent infinite calls]
    ],
    'hc' => [
        'url' => '',            // base url of HC3
        'username' => '',       // login username
        'password' => '',       // login password
        'verifySSL' => false    // verify SSL certificate [set to false if using self signed certificates]
    ],
    'storage' => [
        'type' => 'file',       // Type of used storage [current only file is implemented]
        'directory' => __DIR__ . '/../storage' // absolute path to storage directory [write permissions needed]
    ],
    'commands' => [
        'consumption' => [
            'devices' => []     // devices which consumption we want to log (this devices has to support power/consumption logging - like wall plugs etc.)
        ]
    ]
];
```

#### Recommended cron setup

[](#recommended-cron-setup)

```
# Open crontab
crontab -e

# Add this lines and save
# Run every 10 minutes (history logs)
*/10 * * * * /vendor/bin/fibaro log:consumption > /dev/null 2>&1
*/10 * * * * /vendor/bin/fibaro log:events > /dev/null 2>&1

# Run every 1 minute (status updates from last call)
* * * * * /vendor/bin/fibaro log:refreshStates > /dev/null 2>&1

# Run every 1 minute (actual status snapshot)
* * * * * /vendor/bin/fibaro log:diagnostics > /dev/null 2>&1
* * * * * /vendor/bin/fibaro log:weather > /dev/null 2>&1
```

**Also is recommended to run commands with some blocking mechanism. (like flock, run-one, etc.)**

```
# Run every 10 minutes (history logs)
*/10 * * * * /usr/bin/flock -n /tmp/log_consumption.lock /vendor/bin/fibaro log:consumption > /dev/null 2>&1
*/10 * * * * /usr/bin/flock -n /tmp/log_events.lock /vendor/bin/fibaro log:events > /dev/null 2>&1

# Run every 1 minute (status updates from last call)
* * * * * /usr/bin/flock -n /tmp/log_refresh_states.lock /vendor/bin/fibaro log:refreshStates > /dev/null 2>&1

# Run every 1 minute (actual status snapshot)
* * * * * /usr/bin/flock -n /tmp/log_diagnostics.lock /vendor/bin/fibaro log:diagnostics > /dev/null 2>&1
* * * * * /usr/bin/flock -n /tmp/log_weather.lock /vendor/bin/fibaro log:weather > /dev/null 2>&1
```

### Commands

[](#commands)

For detailed commands description visit [fibaro-hc3-influx-logs](https://github.com/ricco24/fibaro-hc3-influx)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/72f58e3d494056872274a7cd14323f13cc76e52c966eade5dec3129ea378c182?d=identicon)[kelemen.samuel](/maintainers/kelemen.samuel)

---

Top Contributors

[![ricco24](https://avatars.githubusercontent.com/u/1409647?v=4)](https://github.com/ricco24 "ricco24 (4 commits)")

### Embed Badge

![Health badge](/badges/kelemen-fibaro-hc3-influx-box/health.svg)

```
[![Health](https://phpackages.com/badges/kelemen-fibaro-hc3-influx-box/health.svg)](https://phpackages.com/packages/kelemen-fibaro-hc3-influx-box)
```

###  Alternatives

[motomedialab/simple-laravel-audit

A simple audit helper that integrates directly with Laravel &amp; FilamentPHP

262.7k](/packages/motomedialab-simple-laravel-audit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
