AWhiteKnight / ioBroker.moma

Adapter for monitoring and maintenance of an ioBroker multihost installation
MIT License
4 stars 3 forks source link
homeautomation iobroker maintenance monitoring systeminformation

ioBroker.moma

NPM version Downloads Number of Installations Stable version Dependency Status Known Vulnerabilities

NPM

Tests: Linux/Mac/Windows: Travis-CI

moma adapter for ioBroker

MoMa is an adapter for Monitoring and Maintenance of an ioBroker based home automation installation. MoMa aims at home (automation) installations which are a bit more complex than a single machine running all in one or a small number of machines doing some basic load balancing within one network.

It is not intended as a replacement for administration tools like Puppet, Chef, Salt or Ansible. Those are for large environments with many computers and are capable of remote installation of packages. MoMa will only be able to remotely update existing installations, no remote installation and no remote configuration.

Attention:

When using the JavaScript adapter set the "do not register all states on startup" flag to true when you get the error " RangeError: Maximum call stack size exceeded".
When you register all states on startup, every state change event will generate an event to the JavaScript adapter too. Especially for Windows this larger amount of events may become a problem.
Another solution is to increase the time value for interval0.

MoMa uses the platform independant library 'systeminformation' (https://github.com/sebhildebrandt/systeminformation) to gather information about the computer. Many of the calls are exposed to be used in timer intervalls - see reference below.

MoMa needs at least nodejs version 10.

Changelog

1.2.9 (2021-08-17)

1.2.8 (2021-03-26)

1.2.7 (2020-10-18)

1.2.6 (2020-04-27)

1.2.5 (2020-04-12)

1.2.4 (2020-03-20)

1.2.3 (2019-11-06)

1.2.2 (2019-09-12)

1.2.1 (2019-08-12)

1.2.0 (2019-07-26)

1.1.0 (2019-05-20)

1.0.0 (2019-05-11)

0.1.0 (2019-04-18)

0.0.1

Installation

Available in ioBroker repository 'latest'

alternative:

npm install iobroker.moma

Works also in multihost environments - ensure that the correct instance is selected before installation.

Attention: Currently you need to install an instance of Admin-Adapter on every slave as workaround. The Admin-Adapter does not need to be active!

Core Concept

still under construction - ideas, proposals, hints, ... are welcome!

Forum: https://forum.iobroker.net/topic/22026/neuer-adapter-iobroker-moma

GitHub: https://github.com/AWhiteKnight/ioBroker.moma

Basic idea is to have

Reference

An admin tabMoMa is available to start updates or if necessary start a reboot.

Following functions of library systeminformation are called once on startup:

Following functions of library systeminformation are called in interval 0 (default every second):

Following functions of library systeminformation are called in interval 1 (default every 10 seconds):

Following functions of library systeminformation are called in interval 2 (default every minute):

Following functions of library systeminformation are called in interval 3 (default every hour):

Following functions of library systeminformation are called in interval 4 (default every day):

Following functions of MoMa are called in interval 4 (default every day):

License

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2021 AWhiteKnight