0.0.00 - Initial Script "cpu.sh" 0.0.01 - Some improvements 0.0.02 - New Projekt- / Script-Name = avr.sh / AvrLogger 0.0.03 - Script cleaned up and modularized 0.0.04 - New: "Moving Avarage Filter" and output to CSV file 0.0.05 - New: i2c sensor added Argument not applicable. Script is executed endlessly, abort with Ctrl-C or kill 0.0.06 - DEBUG mode implemented: outputs "only" in the shell Script now knows its own directory: "workingDir" 0.0.07 - "avr.config" implemented. 0.0.08 - Possibility to add the CPUlog file "Mark as' (with BOM)". 0.0.09 - Directory structure created (/config ; /date ; /templates) 0.0.10 - $LOGFILE implemented. 0.1.01 - SVG graphics engine installed. 0.1.02 - Readership rewritten, is now much faster. Legend implemented in SVG: Position X-Y and orientation: cross "next to each other" / high "one below the other" Identification Type: Line / Circle / Square 0.1.03 - "raw" values are written to an extra file. Importing and converting from the CSV file is no longer necessary. (FiLo Memory - First in / Last out (1440 lines / values) 00.01.04 - Changed version number Terminal mask created $LOGFILE "messages" will now be written correctly Timing integrated in ms New: set -o nounset # Exit script if try to use an uninitialised variable SVG engine now also has a version number 00.01.05 - TEST mode implemented. Data is stored in separate files 01.00.00 - AvrLogger & SVG-Engine have left the "beta" status 01.00.01 - Fixed a bug that caused each plot to take longer to update 01.00.02 - Function "GetValue" now ignores comments after the string between the quotation marks "" 01.01.00 - Avr / SVG Optimized runtime. (SVG-Update with 6 PLots ca. > 0,5s) 01.02.00 - SVG: Borders for axis label and legend are created automatically. 01.02.01 - Vertical timeline works again 01.02.02 - New: Start-Script /usr/local/etc/rc.d/avr_start.sh [ start | stop ] 01.02.03 - Archiving function implemented by CSV and SVG 01.02.04 - AvrLogger now checks if an instance is already running and complaining Vertical Timeline now scales well with AvrTick 01.02.05 - Archiving had archived in "all" log modes: CSV-File will no longer be archived in "Free"-Mode as planned SVG-Graphics were not saved in "Free" mode and will be archived as planned in all modes In AvrMode "TEST", the SVG-Graphic was overwritten with "test.svg". 01.02.06 - Test function for OIDs implemented If the environment sensor does not respond, it will be deactivated 01.02.07 - New: SynoCom = rocommunity from /etc/snmp/snmpd.conf It is no longer necessary to activate the SNMP-service 01.02.08 - Main loop optimized An error in the script prevents AvrLogger from working if the path to AvrLogger contains a space. Now AvrLogger runs in ANY directory. 01.02.09 - If the environmental sensor has not responded after a reboot, try again in 60 seconds 01.02.10 - Removed special characters for the margins in Terminal-Mask and $LOGFILE ------------------------------------------------------------------------------------------------------ 02.00.00 - Start of the project "AvrLogger v2" 02.00.01 - AvrLogger-Modi: Terminal-Modi / INFO-Modi / TEST-Modi removed. Terminal-Mask and output to Mask / Terminal removed. Echo function to print messages to varius destinations rewritten $LOGFILE split into "messages" and "error" CSV-Function removed. Unnecessary settings removed from log.conf (avr.conf) "ansi.sh" removed 02.00.02 - Improved performance by implementing a ring buffer for the log data in function "lib_AddPlot()". No performance loss at any size Main loop optimized: Implementing a ring buffer for moving average filter Sensors read and optimized processing 02.00.03 - Main-Loop: Moving average filter with variable filter size Main loop uses a Prescaler Prescaler, Filter size and LoopTick based on "LogBase" in log.config LogBase: Timeline in hours = 168 / 48 / 24 / 12 / 6 / 3 / 2 / 1 - SVG-Grafics: v01.02.02 Function "svg_Label()" divided into: svg_VerLabel() Print Vertical-Axis Labels svg_TimeLabel() Print Time-Axis Labels Timeline is calculatetd in svg_TimeLabel() bases on "LogBase" in Log.Conf (LogBase: Timeline in hours = 168 / 48 / 24 / 12 / 6 / 3 / 2 / 1) Function "svg_Plot()" adapted to plotData-RingBuffer Function "svg_Grid()" adapted to plotData-MaxLines svg_InitPlot(): svg_Grid "Ver" "Help" "v" removed 02.01.00 - AvrLogger has left the beta status Main-Loop: Execution time reduced by 35% - SVG-Grafics: v01.02.03 Function "svg_TimeLabel()" Execution time reduced Function "svg_Plot()" Execution time reduced 02.01.01 - Archive function integrated with new timings. Function "lib_SvgArchive()": - Day - Daily at 00:00 - Base - Time Based on LogBase in "log.conf" 02.01.02 - SVG-Grafics: v01.02.04 Function "svg_Plot()" Execution time reduced by 25% 02.01.03 - Funktion "init_PlotData()" Execution time reduced by 32% Date & Time romoved from avr2.dat 02.01.04 - Fixed scaling error (rounding error) in Plot-Timeline SVG-Grafics: v01.02.05 Second key introduced for SVG-Width: PageSizeWidht1 = Width for LogBase <= 24h PageSizeWidht2 = Width for LogBase >= 48h Funktion "init_PlotData()" Execution time reduced by 43% 02.01.05 - Changing LogBase no longer causes the LogData to be truncated. 02.01.06 - AvrLogger now monitors the config files and, if necessary, performs a config update. Including SVG graphics. AvrLogger-Modi: SVG-Modi removed. 02.01.07 - Start-Stop-Script extended: new: status = displays the status of AvrLogger is running or not new: log = displays ERROR-Log and LOGFILE new: update = Performs an update of AvrLogger 02.01.08 - First SVG graphics update is synchronized with Time modulo SvgTick 02.01.09 - New function "lib_getOID()" implemented. Traps errors in snmpwalk and returns the default value "0" in case of an error. This prevents AvrLogger2 from aborting the execution of the script due to an error. 02.01.10 - AvrLogger preparation made to create an SPK. - Distinction between Terminal and Deamon mode removed. - Log-Text for config update reduced to the essentials. - Text adaptations for Log information. - Debug-Mode implemented again. - Output to terminal only in Debug-Mode. - Archiving the SVG-Graphic removed when starting the script. 02.01.11 - AvrLogger now creates a "Home-Directory" -> /admin/AvrLogger in which all data is stored. Config-File are now in /admin/AvrLogger/config" All Files in "Home-Directory" will no longer be overwritten or deleted during an update.