This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.
This adapter provides a configurable PID Controller.
This adapter provides the functionality of a PID controller.
In practical terms, a PID controller automatically calculates a correction value for a system based on an actual value and a setpoint. The behavior is controller by parameters. An everyday example is the cruise control on a car, where ascending a hill would lower speed if constant engine power were applied. The controller's PID algorithm restores the measured speed to the desired speed with minimal delay and overshoot by increasing the power output of the engine in a controlled manner. [(c) Wikipedia]
Within one adapter instance there could be more than one controller configured. The adpter supports configuring the paramaters (P, I, D components) and the cycle time used for calculation. In addition caclulation can be suspended and resumed and the controlelr can be reset at all. As convinient server a manual mode can be switches on to directly set the output. Output can be limited to a minimum/maximum value and contain a fixes offset.
All relevant values including internal data are availbale as states for diagnose purposes.
english documentation
deutsche Dokumentation
Providing this adapter would not have been possible without the great work of @Philmod (https://github.com/Philmod) who developed node-pid-controller (https://github.com/Philmod/node-pid-controller).
Please use GitHub issues for this.
Best is to set the adapter to Debug log mode (Instances -> Expert mode -> Column Log level). Then please get the logfile from disk (subdirectory "log" in ioBroker installation directory and not from Admin because Admin cuts the lines). If you do not like providing it in GitHub issue you can also send it to me via email ([email protected]). Please add a reference to the relevant GitHub issue AND also describe what I see in the log at which time. "title": "lblCtrlInvert",
- (mcm1957) Adapter uses sentry to report errors now.
- (mcm1957) BREAKING: Adapter requires node.js 18 or newer now
- (mcm1957) BREAKING: Adapter requires js-controller 5.x.x and admin 6.x.x or newer now
- (mcm1957) BREAKING: Adapter requires node.js 18 or newer now
- (mcm1957) Incorrect error message whenever no controllers have been defied has been removed. [#68]
- (mcm1957) State roles have been reviewed and adapted. [#88]
- (mcm1957) Dependencies have been updated.
- (mcm1957) changed: Overall stability during state updates has been increased
- (mcm1957) changed: Dependencies have been updated
- (mcm1957) changed: Cycle time is now required to be at least 100ms
- (mcm1957) changed: Recalculations are now controlled by cycle timer only, no extra updates are performed (#62)
- (mcm1957) changed: Several dependencies have been updated
- (mcm1957) solved: Calculation of sumerr in case of hitting max/min Limits has been corrected
- (mcm1957) new: npm/npmjs support has been added
- (mcm1957) changed: State last_upd_str has been removed
- (mcm1957) changed: Some roles have been updated
- (mcm1957) changed: Translations have been updated
- (mcm1957) changed: Setting rst state does no longer trigger a recalculation
- (mcm1957) changed: State diff now displays error value even if sup is active
- (mcm1957) changed: Calculation of I-part has been changed, changing Tn effects future calculations only now
- (mcm1957) new: optionally use folder structure for states
- (mcm1957) changed: reset timer at restart after pausing calculation
- (mcm1957) changed: use values stored for ack and set when starting adapter
- (mcm1957) changed: log state changes with unexpected ack=true
- (mcm1957) changed: fix incorrect updates occuring whenever act is written
- (mcm1957) changed: fix invert flag not working at all
- (mcm1957) changed: remove error display whenever adapter is hitting the limits
- (mcm1957) changed: fix q flag handling
- (mcm1957) changed: fix unexpected bahavior of sup parameter
- (mcm1957) changed: rename run state to hold
- (mcm1957) changed: values of 'kp', 'xp' and 'sup' are now verified if set using states
- (mcm1957) changed: values of 'min' and 'max' are now verified if set using states
- (mcm1957) changed: activation of 'man' updates output 'y' with current value of 'man_inp' now
- (mcm1957) changed: 'min' value is now conserved when restarting the instance
- (mcm1957) changed: conversion between and xp has been fixed at several places
- (mcm1957) changed: 'kp' or 'xp' are writepotected now depending on 'useXp' parameter
- (mcm1957) changed: some small fixes
- (mcm1957) THIS IS AN ALPHA RELEASE ONLY
- (mcm1957) major changes after discussion in forum
- (mcm1957) new initial release
MIT License
Copyright (c) 2023-2024 mcm1957 [email protected]
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.