| Developer: | Karl's Plugins Like this plugin? Show your appreciation! |
| Category: | Reporting/UI/Control Pages |
| Github: | Github Repo |
| License: | MIT License |
| Assistance: | Get help! |
| Plugin ID: | com.karlwachs.INDIGOplotD |
| Latest release: | v2022.21.97 released on Oct. 28, 2026 |
| Release downloaded: | 29 times |
| Requires: | Indigo v2022.1.0 or higher |
| (Check the Releases tab below for older releases that may have different requirements) | |
| Download release v2022.21.87 |
An Indigo plugin that records device states and variables into time-binned history files and renders them as PNG charts, using matplotlib or gnuplot as the drawing back end.
com.karlwachs.INDIGOplotDEvery sampling period the plugin reads the device states and variables you selected, accumulates them into 5-minute, 1-hour and 1-day bins, and stores those bins in flat text files. Each plot you define is an Indigo device; when a plot is refreshed the plugin writes a PNG (and an optional second size) that you can show on an Indigo control page or a web page. History already in Indigo's SQL Logger database can be imported, so a new plot can start with weeks of past data instead of an empty chart.
Beyond plain line charts it also does histograms, filled curves, polar plots, dual left/right Y axes, log scales, per-line smoothing and arithmetic between lines, event plots, and electricity / gas / water / oil consumption with time-of-day and weekday cost brackets.
2026.1.2b are
supported./Library/Frameworks/Python.framework/Versions/Current/bin/python3, then
/usr/local/bin/python, then /usr/bin/python2.7, and refuses to start if none exists.pngquant is bundled for optional PNG compression.INDIGOplotD.indigoPlugin — on startup
checkIndigoPluginName() verifies the install path and stops the plugin with instructions if the name is
wrong (this is the usual cause of a plugin that will not start after an update, when an old copy with the
same name is still in the Downloads folder)./Library/Application Support/Perceptive Automation/Indigo <version>/Plugins/.[8, 38, 390] days of minute/hour/day history, matplotlib as back end, and
batch2Days SQL import.On first start the plugin creates its working directory and the data, sql, gnu, py, matplot and
temp sub-directories. If it cannot, it logs a fatal error and stops rather than running half-initialised.
Install over the top; data files and plot definitions are kept. The plugin migrates older data layouts
itself (upgradeDataStructure()) and repairs older backup files (fixPy.py). Because plot definitions are
stored in each plot device's pluginProps, they survive a reinstall.
The plugin runs as three cooperating pieces:
plugin.py — the Indigo plugin itself. It samples data, maintains the bins, writes the data files, and
owns all configuration UI. runConcurrentThread() drives everything on a loop.indigoMPplot.py — the matplotlib back end, started by startMAT() as a separate python process.
It polls matplot/matplot.cmd, reads matplot/matplot.json plus the data files, draws the PNGs and exits
after 12 idle minutes or 300 plots so the parent restarts it and memory is released. It logs into the same
plugin.log; its stdout/stderr go to matplot/matplot.log..gnu command
file per plot into gnu/ and calls the gnuplot binary. Switch back ends from the menu or plugin config.Two more helpers are launched as plain scripts: fixSQLoutput.py (de-duplicates a SQL export) and
fixPy.py (migrates old backup files).
There are three time types (TTI), each a separate file and bin array:
Retention is set in plugin config (noOfDays, default [8, 38, 390]); changing it rebuilds the arrays and
restarts the plugin. Every sample lands in all three bin sizes at once, so an hour bin is not derived from
minute bins afterwards — it is accumulated independently.
A data column is one device-or-variable plus one state. A device slot holds up to 8 states
(noOfStatesPerDeviceG), each with its own measurement, scaling, limits and nickname.
dataColumnToDevice0Prop1Index maps column number to [device slot, state number], and DEVICE holds the
per-slot configuration. The first dataOffsetInTimeDataNumbers = 5 entries of every bin are reserved for
time indicators, so data column n sits at index n + 5.
Everything lives under <Indigo>/Preferences/Plugins/com.karlwachs.INDIGOplotD/:
data/minute.dat, data/hour.dat, data/day.dat — the binned historydata/indexes and the device parameter file — column map and DEVICE configurationsql/ — per-device SQL exports (<devId>-<state>), .done flags, .error files, sqlcmd.sh,
sqlcmd.log, sqlFix.loggnu/ — generated gnuplot command filesmatplot/ — matplot.json (plot definitions handed to the back end), matplot.cmd, matplot.pid,
matplot.logpy/ — generated export / backup scriptstemp/ — scratch, font test filesPNGs go to the configured output directory (indigoPNGdir), named
<plot name>-<minute|hour|day>-<S1|S2>.png, where S1 and S2 are the two configured resolutions.
One line per bin, ; separated:
YYYYMMDDHHMMSS;<entries>;<weekday>;<lastDayInMonth>;<lastDayInYear>;0;<col1>;<col2>;...
The leading timestamp is the bin start. entries is how many measurements landed in the bin, then the three
time indicators, a spare, and finally one field per data column. An empty field means "no data for this
column in this bin".
Per column you choose how samples are reduced into a bin. supportedMeasurements:
average, count, max, min, sum, integrate, delta, deltaNormHour, deltaMax,
eConsumption, gConsumption, wConsumption, oConsumption,
Direction0toPiNorth, Direction0toPiEast, Direction0to360North, Direction0to360East,
event, eventUP, eventCHANGE, eventDOWN, eventANY, eventCOUNT.
Direction* measurements use a circular (angular) mean via aveAngle(), so north-crossing wind directions
average correctly instead of jumping through 180°. integrate accumulates a running total normalised per
hour. The *Consumption types feed the cost model below.
Gap filling. Each column has a fillGaps flag. With fillGaps = "1" (the default) a bin that received no
measurement is filled with the last measured value, not with the previous bin's aggregate — which matters
for sparse on/off states, where carrying a previous bin's average of 0.5 would invent a value that was never
measured. With fillGaps = "0" the bin is left empty and the chart shows a gap. When only the last two days
are imported from SQL, the first bins of the imported range carry in the value of the bin just before the
range (getCarryInFromSQL()), so a 2-day reload does not start at zero.
A plot is an Indigo device of type plots; its definition is a dict in self.PLOT keyed by device id and
mirrored into the device's pluginProps (PLOTindigo), so plots survive reinstalls. Plot settings cover
title and extra text (position, rotation, size, colour, front/back), grid and border, background and
transparency, two resolutions, per-time-type day counts and shifts, left/right/X axis ranges, tics, labels,
decimal places and linear/log scaling, 12/24-hour time, box width, polar vs xy, a zero line, optional PNG
compression, and raw back-end commands for anything not exposed.
Each plot holds numbered lines. A line points at a data column (or a second column for arithmetic) and
sets type, width, colour, left/right axis, shift, multiplier and offset, key text, number format, and
every/from-to ranges. Line types (availableLineTypes) include dotted markers (DOT., DOTx, DOT*,
DOTo, DOTv, DOT^, DOTs, DOT+, DOT-, DOT-., DOT|), LineDashed, LineSolid, Histogram
through Histogram7, FilledCurves, Numbers, Impulses, averageRight, averageLeft, firstBin,
lastBin and rightY. Smoothing (availableSmoothTypes): soft, medium, strong, trailingAverage,
average3Bins, combine3Bins, None — the first three need scipy. Line functions
(availableFuncTypes): +, -, /, *, C, E, S, None.
For the *Consumption measurements the plugin tracks consumed energy against cost brackets: up to
30 cost periods (noOfCostTimePeriods) with 5 price tiers each (noOfCosts), selected either by absolute
period (YYYYMMDDHH) or by weekday plus hour. Running totals reset on a configurable day / week / month /
year boundary. calcConsumptionCostValue() does the bracket arithmetic, and the data is persisted separately
from the plot definitions so a restart does not lose a billing period.
Import mode is set by sqlDynamic: batch (all history), batch2Days (default, last two days only — much
faster) or None. The flow is:
setupSQLDataBatch() builds a shell script of sqlite3 / psql SELECTs, one per device-state, each
resuming from the last imported record id, piped through awk and then fixSQLoutput.py to drop
duplicates and non-numeric rows. It writes a .done flag file per export.readSQLdataBatch() waits for the .done files, reads each export with getsqldataFromFile(),
validates it with checkSQLData() (min/max cut-offs, offset and multiplier), and bins it with
fillHistogramFromSQL().sqlColListStatusRedo) limits re-issuing a query that produces no data; after
four attempts the column is given up on with a warning instead of looping forever, and a fresh set of
attempts is allowed the next time the import is requested.On slow machines the sqlite database can first be copied aside (originalCopySQL) so plugin queries do not
block Indigo's own logging.
The plugin logs into Indigo's own plugin.log through a per-level formatter (LevelFormatter). Debug output
is grouped into areas you switch on individually in plugin config: Cleanup, Restore, General,
Initialize, Plotting, Matplot, SQL, Special, all. decideMyLog(area) is the gate used throughout.
The matplotlib back end logs to the same plugin.log, prefixed HH:MM:SS indigoMPplot, and its verbosity
follows the Matplot debug area. Anything it writes to stdout/stderr — including a traceback from a crash
before logging is up — lands in matplot/matplot.log instead, which is the first place to look if the back
end goes quiet. matplotlib's own internal logging is suppressed so it does not drown the plugin log.
runConcurrentThread() → dorunConcurrentThread() runs until self.quitNOW is set (the single quit/restart
flag: setting it anywhere ends the loop and has the plugin restarted). Each pass: process queued commands
(doCHECKcommands()), sample Indigo devices and variables (getIndigoData() → acummulateValues()),
accumulate into the current minute/hour/day bins, roll bins at boundaries, write the data files, run the SQL
import when due (checkSQLdata()), handle midnight day-shifts (doAfterMidnight()), and trigger plots about
every 5 minutes (checkPLOTSandConsumption() → plotNow()).
From PluginConfig.xml:
gnuORmat — drawing back end, matplotlib or gnuplot; gnuPlotBin is the gnuplot binary pathindigoPNGdir — where PNGs are writtensamplingPeriod — seconds between samples (default 60)noOfDays — [minute, hour, day] days of history (default [8, 38, 390]); changing it restarts the pluginsqlDynamic — batch, batch2Days (default) or NoneliteOrPsql / liteOrPsqlString — sqlite (default) or PostgreSQL, with the psql command lineoriginalCopySQL — work on a copy of the sqlite databasedebugInitialize, debugGeneral, debugSQL, debugPlotting, debugMatplot, debugRestore,
debugCleanup, debugSpecial, debugall — debug areasdo_cProfile — enable internal timing statisticssupressGnuWarnings — hide gnuplot warningsconsumptionType, consumptionPeriodType, consumptionPeriod, day, hour, consumed0..4, cost0..4 —
consumption cost bracketsexpertONOFF — reveals the advanced fields aboveFrom Actions.xml, usable in triggers, schedules and action groups:
createAndShowPlotPNG, createPlotPNG, showPlotONLY, savePlot, createOrModifyPlot, deletePlot,
createOrModifyLine, deleteLine, addDeviceAndStateToSelectionList,
deleteDeviceAndStateFromSelectionList, deleteDeviceFromSelectionList, showDeviceStates,
setConfigParameters, reeloadSingleDevStateSQL, reeloadAllSQL, reeload2daysSQL, doExport,
doExportMini.
Each action has a *CALLBACKaction() wrapper that unpacks the Indigo action and calls the plain
implementation, so the same logic is reachable from the UI and from scripts.
From MenuItems.xml: my first plot, define data source, refresh all plots, print/diagnostic dumps,
backup and restore, delete column, debug on/off, and switching between matplotlib and gnuplot.
Events.xml defines a single trigger event, PlotsRefreshed, fired after a plot refresh cycle so you
can chain actions to finished charts.
'Plugin' object has no attribute 'PLOT' — startup()
exited early. Look for a STARTUP: ABORTED at step N line in plugin.log; it names the failing step
(plugin directory, sub-directories, or no usable python).INDIGOplotD.indigoPlugin, the plugin logs
step-by-step removal instructions and stops. Delete stale copies from Downloads and reinstall.matplot/matplot.log for a traceback, and
matplot/matplot.pid. The back end is expected to exit after ~12 idle minutes; the plugin restarts it.SQL
debug area. A column that yields no rows is retried four times and then abandoned with a warning naming the
device and state.plugin.py is one large Plugin(indigo.PluginBase) class plus the LevelFormatter helper.indigo is injected by the Indigo server at runtime, so static analysis will always report it as an
undefined name. Everything else should stay clean under pyflakes.unicode() / u"" compatibility shims were removed..indigoPlugin folder and bump PluginVersion in
Contents/Info.plist so Indigo reloads the plugin; add a changeLog.txt entry.Line numbers refer to Contents/Server Plugin/ as of version 2022.21.97.
plugin.py — main plugin (258 methods)__init__(pluginId, pluginDisplayName, pluginVersion, pluginPrefs) — line 231. Plugin constructor that calls the Indigo PluginBase initializer and sets up core paths, identity, and runtime attributes (install/preferences/log directories, plugin id/name, PID, OS user, Indigo and ...__del__() — line 338. Destructor that delegates to the Indigo PluginBase del to perform base-class cleanup.startup() — line 352. Plugin startup hook that validates the plugin name, reads debug/preference settings, initializes state dictionaries and timing/SQL/plotting configuration, and creates the required data, PNG output, ...upgradeDataStructure() — line 806. Migrates the in-memory time-data structure to schema version 2 by prepending data columns for last minute/hour/day values when needed, updates the stored dataVersion preference, and refreshes time ...fillWithTimeIndicators() — line 839. Populates the leading time-indicator columns of each time bin (weekday, last-bin-of-month flag, last-bin-of-year flag, and bin index) by parsing each bin's timestamp.deviceStartComm(dev) — line 870. Device communication start hook that marks the corresponding plot entry as used and, if the device is enabled, sets its enabled flag in the plugin's PLOT dictionary.deviceStopComm(dev) — line 885. Device communication stop hook; it returns immediately so no action is taken (the remaining body that would mark the plot unused and save parameters is dead code after the return).deviceCreated(dev) — line 904. Device-created hook that logs the new device and resynchronizes the plugin's plot definitions with Indigo's current devices.deviceDeleted(dev) — line 916. Device-deleted hook that removes the associated plot's generated files, deletes its entry from the PLOT dictionary, and persists the updated plot parameters.gnuTime() — line 934. Sets the gnuplot time offset based on the detected gnuplot version: gnuplot 4.x uses an epoch-to-millennium offset, otherwise the offset is zero.ReloadSQL() — line 950. Triggers a full reload of all SQL history data by clearing existing data, resetting per-column status arrays to force a complete reread, deleting cached column files, and starting the column data ...ReloadSQL2Days() — line 991. Triggers a reload of SQL data limited to the last 2 days by switching to batch2Days dynamic mode, resetting per-column status arrays to the 2-day fetch state, and starting the column data import.startColumnData() — line 1021. If column-data collection is enabled (colDataON), writes the current SQL column status, history list status, and dynamic SQL settings as JSON lines to the data/columns/command file.doInitGNU() — line 1039. Reinitializes gnuplot setup by reloading device parameters from file, retrying the line data source rebuild up to five times until it no longer fails, then regenerating the gnuplot files.doInstallGnuplot() — line 1058. Launches the bundled installgnuplot AppleScript to install gnuplot, then polls for up to ~200 seconds for the gnuplot binary to appear in /opt/local/bin or /usr/local/bin, setting gnuPlotBinary when ...fixPy() — line 1082. Spawns a background subprocess running fixpy.py against the plugin's py/ directory to repair/restore Python files, and logs that the check is running.clearFlags() — line 1097. Clears stale plot flag/log files by removing sql/sqlcmd.log and deleting any .err, .ok, and .done marker files from the gnu directory.resetDeviceParameters() — line 1118. Resets all in-memory device-related state and plugin preferences to defaults (column counts, SQL tracking lists, time bin starts, DEVICE dict, selection lists, dialog flags, etc.), then rebuilds the ...writePlotParameters() — line 1171. Serializes the current plot configuration to the matplotlib parameter file, deep-copying PLOT and converting variable/device-state references to text, then writing a JSON bundle (PLOT, DEVICE, ...resetPlotParameters() — line 1198. Resets plot rendering parameters to defaults (font directory/name, current line number, empty PLOT dict) and rebuilds the list of available TrueType fonts by scanning the font directory for valid ...getConsumptionDataFromFile() — line 1234. Initializes and loads all consumption-tracking data: sets per-type period defaults, loads consumptionCost, consumedDuringPeriod, and valuesFromIndigo from their data files (recreating defaults on ...putconsumedDuringPeriod() — line 1359. Persists the in-memory consumedDuringPeriod and valuesFromIndigo structures to their respective JSON files in the data directory, logging on failure.putConsumptionCostData() — line 1380. Persists the in-memory consumptionCostData structure to the data/consumptionCost JSON file, logging on failure.getLastConsumptionyCostPeriodBinWithData() — line 1400. For each consumption type, scans its cost-period bins from the most recent backwards to find the last period bin that holds actual data (positive cost), checking either by Period or by day depending ...getCurrentCostTimeBin(timeString, consumptionType) — line 1427. Determines which cost/time bin applies to a given timestamp for a consumption type, scanning the stored cost data backwards to find the matching period (either a date-based 'Period' or a ...getCurrentResetPeriod(timeString, resetPeriods, lastRbin) — line 1479. Finds the index of the reset period that the given timestamp falls into by scanning the list of reset-period boundaries starting from the last known bin until one exceeds the time.calcConsumptionCostValue(measuredValue, currentCostTimeBin, valueAtStartOfCostBin, lastCostBinWithData, lastmeasuredValue, consumptionType, doPrint=) — line 1506. Computes the incremental consumption cost for a measured value within the current cost bin by subtracting the value at the start of the bin and walking down the tiered consumed/cost brackets to find ...getDeviceParametersFromFile(calledfrom=) — line 1544. Loads device and data-column index parameters from the plugin's data files (falling back to pluginPrefs), then cleans up the loaded structures by removing empty devices and bad indexes, migrating old ...putDeviceParametersToFile(calledfrom=) — line 1717. Writes the current data-column index list and DEVICE dictionary to the plugin's data/indexes and data/devices files as JSON.inp*)inpDummy(valuesDict=, typeID=) — line 1744. No-op placeholder callback used as a dummy handler for Indigo config dialogs; does nothing and returns nothing.inpPlotALL() — line 1755. Queues a 'PlotALL' command for the plugin's main loop to process and logs the action, triggering replotting of all plots.inpPrintData() — line 1767. Queues a 'PrintData' command for the plugin's main loop to process and logs the action.inpPrintdevStates() — line 1779. Queues a 'PrintDevStates' command for the plugin's main loop to process and logs the action, triggering a printout of device states.inpPrintPlotData(valuesDict, menuId) — line 1791. Queues a 'PrintPlotData' command (including the selected plot from the dialog) for the plugin's main loop and returns the dialog values dict.inpPrintDeviceData() — line 1803. Queues a 'PrintDeviceData' command for the plugin's main loop to process and logs the action.inpReloadSQLAction(actionId) — line 1816. Queues a 'ReloadSQL' command for the plugin's main loop to reload SQL data, but skips and warns if dynamic SQL is not enabled in configuration.inpReloadSQL() — line 1831. Queues a 'ReloadSQL' command for the plugin to reload data from the SQL database; logs and aborts if SQL data collection is not enabled in the configuration.inpReloadSQL2Days(actionId=) — line 1846. Queues a 'ReloadSQL2Days' command to reload the last two days of data from the SQL database; logs and aborts if SQL data collection is not enabled.inpSavePy() — line 1861. Queues an 'inpSavePy' command instructing the plugin to generate Python code for the plots, saved into the plugin's py/ directory.inpInstallGnuplot() — line 1873. Queues an 'InstallGnuplot' command to trigger installation of the gnuplot plotting backend.inpDebugON() — line 1885. Turns on debugging by setting the debug level to include all categories and logs the action.inpDebugOFF() — line 1897. Turns off debugging by clearing the debug level list and logs the action.inpMATPLOT() — line 1909. Switches the plotting backend to matplotlib by calling gnuORmatSET('mat') and logs the action.inpGNUPLOT() — line 1921. Switches the plotting backend to gnuplot by calling gnuORmatSET('gnu') and logs the action.inpPauseDataCollection() — line 1933. Queues a 'PauseDataCollection' command to pause the plugin's ongoing data collection.inpContinueDataCollection() — line 1945. Queues a 'ContinueDataCollection' command to resume the plugin's paused data collection.inpFnameToLog() — line 1957. Queues a 'fNameToLog' command that writes the full paths/filenames of the generated plot files to the log for copy and paste.inpResetDeviceConfigurationParameters(valuesDict=, typeId=) — line 1969. Resets all device configuration parameters: removes all current devices, resets device parameters, clears each plot's line definitions and persists the cleared plot config back to each Indigo ...PrintPlotData(plotId) — line 2005. Builds a multi-line text report of the configuration of every plot device in self.PLOT (skipping the special '0' entry), including each plot's properties and the per-line settings, then logs it to ...PrintDeviceData() — line 2051. Assembles and logs a formatted report of all configured devices/variables and their tracked states (offsets, multipliers, min/max, columns, etc.), the data-column-to-device/state index map, and the ...PrintDataToLog() — line 2141. Iterates over all time-bin types and logs the binned time-series data column values to the plugin log, formatting each row with date and per-column numbers and skipping/breaking long runs of good ...PrintData() — line 2189. Writes the time-binned data for each time type to a '.formatted' file, including a header row, formatted per-column data values, the current Indigo measurement values, and the reset-period/cost ...filterPlotNames(filter=, valesDict=, typeId=) — line 2292. Indigo list-filter callback that builds and returns the menu list of plots: an 'Edit:' entry for each existing plot in self.PLOT, a 'NEW' entry for creating a plot, and an 'Edit last' entry for the ...plotNameSelectedCALLBACK(valuesDict=, typeId=) — line 2312. Config-UI callback run when a plot name is selected; for a new plot it sets the oldNew flag to 'new', otherwise it loads the selected existing plot's title/text/line settings into valuesDict ...buttonConfirNewPlotNameCALLBACK(valuesDict=, typeId=) — line 2382. Config-UI callback for confirming a new plot name; stores the entered new plot name into self.currentPlotName.buttonConfirmSelectionMFPCALLBACK(valuesDict=, typeId=) — line 2395. Config-UI callback (My First Plot) that creates or modifies a plot and its first line from the dialog values, resolving the selected device or variable and its state, then renders the plot and ...showPlotMFPCALLBACK(valuesDict=, typeId=) — line 2499. Config-UI callback that renders and shows the current plot on screen by calling plotNow with the current plot name, logging a message if the plot has not been confirmed.filterselDeviceStatesMFP(filter=, valuesDict=, typeId=) — line 2515. Indigo list-filter callback that returns the selectable states for the current device (or 'value' for a variable) by resolving self.currentDeviceId and calling preSelectStates; returns [(0,0)] when ...filterselSQLdevState(filter, valuesDict, xxx, ID=) — line 2554. Indigo list-filter callback that returns the list of selected SQL data columns as (columnIndex, devicePropName) tuples, skipping entries whose index is 0 or -1.filterColumns(filter, valuesDict, xxx) — line 2574. Indigo list-filter callback that returns the selectable data columns as (columnIndex, label) tuples where each label is the zero-padded column number plus the device/property name, skipping entries ...getLastSQLforEventdata(colList) — line 2594. Triggers a fresh SQL re-read of historical event data for the given data columns by clearing their cached .done marker files, marking each column's status for reprocessing, and flagging that devices ...buttonConfirmSQLDevStateCALLBACKaction(action1, typeId=) — line 2632. Action wrapper that invokes buttonConfirmSQLDevStateCALLBACK using the props of an Indigo action object so a SQL device/state column re-read can be triggered from an action.buttonConfirmSQLDevStateCALLBACK(valuesDict, typeId=) — line 2644. Forces a selected device/state data column to be fully re-read from the SQL database by deleting its cached SQL data and .done files, resetting the first-bin date, and marking the column's SQL status ...filterselBackUpFiles(filter=, valuesDict=, typeId=) — line 2680. Builds a menu list of available backup/restore .py files found in the plugin's 'py' directory for use in a config dialog selection control.buttonConfirmBackUpFileCALLBACK(valuesDict=, typeId=) — line 2701. Restores a previously saved configuration by reading the selected backup .py file, filtering and rewriting its lines (translating executeAction calls into direct self method calls), then executing ...buttonConfirmdeleteColumnCALLBACK(valuesDict=, typeId=) — line 2757. Removes a selected data column from tracking by looking up its device and state index and calling removePropFromDevice to delete and persist the change.FnameToLog(DeviceName=) — line 2778. Logs the full file:// paths of the generated PNG plot files (across all time types and sizes) for the matching plot device(s) so they can be copied and pasted into a Refreshing Image URL field.createPy(aType=) — line 2808. Generates a Python script file that recreates the current plugin configuration, devices/states tracking, and plots; the format depends on aType ('manual', 'export', 'exportMini', or a default restore ...doInitData() — line 3215. Performs a full data initialization and rebuild: reinitializes all data structures, persists device parameters, optionally reimports SQL data in batch mode, restarts the MAT backend if used, writes ...initializeData() — line 3264. Initializes all in-memory data arrays and index structures for the configured number of data columns and time bins, including time data numbers, SQL status lists, timestamps, and per-time-type ...addColumnToData() — line 3301. Appends one new data column to every in-memory data structure (time data numbers, values, timestamps, SQL status lists, last-ID/date trackers, and device/property index), incrementing the data column ...doShiftDay() — line 3327. Performs the daily data roll-over: shifts minute, hour, and day data forward (moving old today to old yesterday and discarding the oldest), refills time indicators, cleans the data, and regenerates ...cleanData() — line 3349. Cleans up the in-memory time-series data by flagging empty time bins, deleting device entries that have no mapped states, rebuilding the line data sources, and persisting all three time-bin datasets ...shiftMinuteData() — line 3405. Shifts the 5-minute-resolution time-series data forward by one day: moves each bin's data and labels back one day's worth of buckets, resets today's buckets to empty with fresh date/time labels, ...shiftHourData() — line 3445. Shifts the hourly-resolution time-series data forward by one day: moves each hourly bin's data and labels back 24 buckets, resets today's 24 hour buckets to empty with fresh date/hour labels, ...shiftDayData() — line 3482. Shifts the daily-resolution time-series data forward by one day (called at midnight): moves each daily bin back one slot, resets the newest day bucket to empty with today's date label, rebuilds the ...initMinuteDataData() — line 3522. Initializes the 5-minute-resolution data structure by assigning each bin a date/hour/minute time label spanning the configured number of days and clearing all of its data column values to empty.initHourDataData() — line 3551. Initializes the hourly-resolution data structure by assigning each bin a date/hour time label spanning the configured number of days and clearing all of its data column values to empty.initDayDataData() — line 3577. Initializes the daily-resolution data structure by assigning each bin a date time label spanning the configured number of days and clearing all of its data column values to empty.initMinuteDataIndex() — line 3606. Rebuilds the lookup index mapping each 5-minute time-label string (YYYYMMDDHHMM00) to its bin position for the configured number of days of minute data.initHourDataIndex() — line 3632. Rebuilds the lookup index mapping each hourly time-label string (YYYYMMDDHH0000) to its bin position for the configured number of days of hour data.initDayDataIndex() — line 3657. Rebuilds the lookup index mapping each daily time-label string (YYYYMMDD000000) to its bin position for the configured number of days of day data.getDiskData(TTI, offset) — line 3690. Loads a time-series dataset from its on-disk data file: auto-detects the field separator, validates the header line, then parses each line, matching its time label to the current index and storing ...putDiskData(TTI) — line 3749. Writes a time-series dataset to its on-disk data file, emitting one semicolon-separated line per time bin (time label followed by the offset/header columns and the data columns).setupGNUPlotFiles(calledfrom=, mPlot=) — line 3779. Builds the GNUplot command files for every configured plot (or just one when mPlot is given), computing each plot's minute/hour/day time windows, resolving which device-state columns and lines to ...binsToPlot(earliestDay, lastDay) — line 4376. Computes, for each time-resolution type (minute/hour/day), the index of the earliest time bin and the number of bins spanning from earliestDay to lastDay by looking them up in the plugin's time-bin ...firstLastDayToPlot(days, shift, TTI, stTime) — line 4399. Computes the earliest and last date/time strings to plot for a given time-resolution type, applying the configured number of days and a shift offset; supports rolling windows plus special ...createGNUfile(nPlot, theType, gnuFile, plotFile, Fnamedata, title, textColor, textSize, textFont, ExtraText, ExtraTextX, ExtraTextY, ExtraTextRotate, ExtraTextFrontBack, ExtraTextSize, ExtraTextColorRGB, grid, Border, res, background, TransparentBackground, TransparentBlocks, am24, rangeY, ticsY, LDec, LLog, labelY, rangeY2, ticsY2, RDec, RLog, labelY2, rangeX, ticsX, XDec, XLog, labelX, XLabelPos, XScaleFormat, boxWidth, XYvPolar, MHDFormat, TTI, earliestDay, lastDay, nDays, weight, colorbar, numberCommands, arrows, rawCmd, drawZeroLine, numberOfLines, theLines) — line 4477. Writes a complete GNUplot script file for one plot, emitting all gnuplot directives: terminal/output/background, scatter weight min-max preprocessing, optional colorbar, time parameters, polar or xy ...convertVariableOrDeviceStateToText(textIn) — line 4927. Resolves embedded Indigo variable (%%v:...) and device-state (%%d:...) placeholders inside a text string by repeatedly substituting their current values, then evaluates the result as an arithmetic ...convertVariableToText0(textIn) — line 4957. Performs a single substitution of one %%v:VariName%% (or %%v:VariNumber%%) placeholder in the text with the corresponding Indigo variable's value, looking it up by id or by name.convertDeviceStateToText0(textIn) — line 5003. Performs a single substitution of one %%d:dev:state%% placeholder in the text with the corresponding Indigo device state value, looking the device up by id or by name.validateActionConfigUi(valuesDict, typeId, devId) — line 5056. Indigo action-config UI validation hook that unconditionally accepts the dialog input.createOrModifyPlotCALLBACKaction(action1) — line 5070. Indigo action callback that converts the incoming action props and forwards them to createOrModifyPlot to create or update a plot device from a script.createOrModifyPlot(action) — line 5080. Creates a new plot device (or modifies an existing one) from a script-supplied action dict: validates the target device name, creates the plugin device if needed, fills in defaults for ...deletePlotCALLBACKaction(action1) — line 5218. Indigo action callback that converts the incoming action props and forwards them to deletePlot to remove a plot device from a script.deletePlot(action) — line 5229. Deletes the plot whose device name matches the action's deviceNameOfPlot by removing the underlying Indigo device and its entry in self.PLOT, reporting success or a not-found error via a response ...deleteLineCALLBACKaction(action1) — line 5258. Indigo action callback that converts the raw action props into a dict and delegates to deleteLine to remove a plot line.deleteLine(action) — line 5268. Deletes a specific line from a plot device's tracked lines, looking up the plot by its device name and removing the entry for the given line number.deleteDeviceAndStateFromSelectionListCALLBACKaction(action1) — line 5308. Indigo action callback that converts the action props and delegates to deleteDeviceAndStateFromSelectionList.deleteDeviceAndStateFromSelectionList(action) — line 5318. Removes a single device state/measurement from the tracking selection list, and if the device has no remaining tracked states it removes the whole device.deleteDeviceFromSelectionListCALLBACKaction(action1) — line 5374. Indigo action callback that converts the action props and delegates to deleteDeviceFromSelectionList.deleteDeviceFromSelectionList(action) — line 5384. Removes an entire device (with all its tracked properties) from the selection/tracking list by matching its name.showDeviceStatesCALLBACKaction(action1) — line 5418. Indigo action callback that converts the action props and delegates to showDeviceStates.showDeviceStates(action) — line 5428. Logs the numeric states/values of a requested eligible device or variable (or all of them when the name is '***'), showing each state's raw value and how it converts to a usable number.PrintDeviceStates(dev=) — line 5502. Thin wrapper that simply calls showAllDeviceStates, ignoring its dev argument.showAllDeviceStates() — line 5512. Builds and logs a full report of all Indigo variables and devices, listing each one's name, raw value(s) and how each value converts to a usable number for plotting.setConfigParametersCALLBACKaction(action1) — line 5568. Indigo action callback that converts the action props and delegates to setConfigParameters.setConfigParameters(action) — line 5578. Applies configuration parameters supplied in an action (log/debug level, PNG directory, gnuplot binary, SQL dynamic mode, gnu/mat output mode, and consumption cost periods), persists relevant values ...addDeviceAndStateToSelectionListCALLBACKaction(action1) — line 5688. Callback wrapper that converts an Indigo plugin action into a plain dict and forwards it to addDeviceAndStateToSelectionList.addDeviceAndStateToSelectionList(action) — line 5698. Validates and registers a device/variable state (with measurement, offset, multiplier, min/max, fill-gaps and reset-type settings) as a tracked data source for plotting, finding or creating a slot in ...createOrModifyLineCALLBACKaction(action1) — line 5926. Callback wrapper that converts an Indigo plugin action into a plain dict and forwards it to createOrModifyLine.createOrModifyLine(action) — line 5936. Creates or modifies a plot line by validating the target plot device and line number, registering line A (and optionally line B) data sources for time-series plots or mapping data columns for ...createPlotPNGCALLBACKaction(action1) — line 6153. Callback wrapper that converts an Indigo plugin action into a plain dict and forwards it to createPlotPNG.createPlotPNG(action) — line 6163. Queues a 'plotNow' command to regenerate the PNG for the named plot device (or all plots when the name is empty), reporting success or a missing-name error via responseToActionInVariable.showPlotONLYCALLBACKaction(action1) — line 6186. Callback wrapper that converts an Indigo plugin action into a plain dict and forwards it to showPlotONLY.showPlotONLY(action) — line 6196. Queues a 'plotNowOnly' command to display the named plot without regenerating it, reporting success or a missing-name error via responseToActionInVariable.showPlotPNGCALLBACKaction(action1) — line 6217. Callback wrapper that converts an Indigo plugin action into a plain dict and forwards it to showPlotPNG.showPlotPNG(action) — line 6227. Queues a 'plotNow' command to regenerate and display the named plot's PNG (or all plots when the name is empty), reporting success or a missing-name error via responseToActionInVariable.doExportCALLBACKaction(action1) — line 6256. Callback wrapper that converts an Indigo plugin action into a plain dict and forwards it to doExport.doExport(action) — line 6266. Queues an 'export' command to trigger a data export and reports success via responseToActionInVariable.doExportMiniCALLBACKaction(action1) — line 6282. Indigo action callback that converts the raw action's props into a plain dict via convertACTION and forwards it to doExportMini.doExportMini(action) — line 6292. Queues an 'exportMini' command onto the plugin's command list and writes an 'ok: exported' status message back to the Indigo response variable.savePlotCALLBACKaction(action1) — line 6308. Indigo action callback that converts the action's props into a dict and forwards it to savePlot.savePlot(action) — line 6318. Persists a plot device's current PLOT configuration by serializing it to JSON into the device's pluginProps and saving them on the Indigo server, then flags the plugin to rebuild plots; on a missing ...convertACTION(action1) — line 6354. Helper that copies all properties from an Indigo action object's props into a plain Python dict.responseToActionInVariable(msg=) — line 6368. Writes a status message back to a script by creating the Indigo variable 'INDIGOplotD-Script-Message', or updating its value if it already exists.getLogLevel(action) — line 6383. Extracts a log-level indicator from an action dict; returns 'all' whenever a logLevel key is present (regardless of its integer value), the raw value if not an int, or an empty string when absent or ...filterListOfPlotDeviceNamesaction(filter=, valuesDict=, typeId=, targetId=) — line 6418. Config UI list-filter callback that builds the menu of plot device names from self.PLOT, returning each plot's DeviceNamePlot as a (value, label) tuple plus a final option to recreate all plots ...DevicesOnOffCALLBACK(valuesDict=, typeId=, targetId=) — line 6440. Config UI callback for the DefineDevices toggle; recomputes the ExpertsAndDevices flag based on the DefineDevices and Experts checkbox states and refreshes field visibility via setViewOnOff.ExpertOnOffCALLBACK(valuesDict=, typeId=, targetId=) — line 6461. Config UI callback for the Experts toggle; updates the ExpertsAndDevices visibility flag based on the Experts and DefineDevices checkbox states and refreshes field visibility via setViewOnOff.plotDataTypeCALLBACK(valuesDict=, typeId=, targetId=) — line 6484. Config UI callback for the plot data-type field that refreshes field visibility by passing the dialog values through setViewOnOff.plotXYvPolarCALLBACK(valuesDict=, typeId=, targetId=) — line 6497. Config UI callback for the XY-versus-polar plot selector that refreshes field visibility by passing the dialog values through setViewOnOff.PlotsOnOffCALLBACK(valuesDict=, typeId=, targetId=) — line 6512. ConfigUI callback that refreshes the visibility/state of plot-related dialog fields by delegating to setViewOnOff and returning the updated values dictionary.LinesOnOffCALLBACK(valuesDict=, typeId=, targetId=) — line 6525. ConfigUI callback for the lines on/off control that updates dialog field visibility via setViewOnOff and returns the modified values dictionary.ExpertOnOffPlotCALLBACK(valuesDict=, typeId=, targetId=) — line 6539. ConfigUI callback for the expert-mode plot toggle that recomputes dialog field visibility through setViewOnOff and returns the updated values dictionary.setViewOnOff(valuesDict) — line 6554. Computes and sets the many show/hide visibility flags in the config dialog based on the current plot type, XY-vs-polar choice, expert mode, line function, and A/B line selection state, so the right ...liteOrPsqlCALLBACK(valuesDict, typeId=, targetId=) — line 6773. ConfigUI callback that handles the SQLite-vs-PostgreSQL data source choice, storing and validating the psql command string when PostgreSQL is selected (falling back to a default and logging if it ...gnuORmatCALLBACK(valuesDict, typeId=, targetId=) — line 6795. ConfigUI callback for the gnuplot-vs-matplotlib backend choice that applies the selection by calling gnuORmatSET with either 'mat' or 'gnu'.isMATRunning() — line 6814. Checks whether the external matplotlib plotting helper process is running by reading its stored PID file and verifying via ps that the indigoMPplot process is alive, caching the PID on success.startMAT() — line 6839. Launches the external indigoMPplot.py matplotlib helper as a subprocess (passing config such as indigo dir, log file, prefs dir and log level), records its PID to a pid file, opens its log file, and ...stopMAT() — line 6868. Stops the external matplotlib helper process by closing its log file handle and sending SIGKILL to its PID; returns early if the process is not currently running.gnuORmatSET(setValue) — line 6894. Sets the active plotting backend to either gnuplot or matplotlib, stopping the matplot helper when switching to gnu and starting it (if not already running) when switching to mat, and updates the ...getLinesForFileOrVariPlot(FileOrVariName) — line 6918. Builds the list of selectable data columns (self.listOfLinesForFileOrVari) for a file- or variable-based plot by parsing the header line of the named data file or variable (format '#x;y1;y2'), ...preSelectDevices() — line 7000. Builds the list of preselectable plot sources (self.listOfPreselectedDevices) and an id-to-type/name map by scanning all indigo variables and device states, keeping only numeric/boolean values and ...filterExistingDevice(filter=, valuesDict=, typeId=, targetId=) — line 7049. Builds the list of menu options for selecting an existing configured device/variable in a plot, listing each used DEVICE slot by number and name (sorted alphabetically) plus a trailing option to pick ...pickExistingOrNewDeviceCALLBACK(valuesDict=, typeId=, targetId=) — line 7073. Config-UI callback fired when the user picks an existing or new device/variable; either allocates a fresh DEVICE slot (for a new device) or loads the selected existing slot, sets the new device ...filterDevicesThatQualify(filter=, valuesDict=, typeId=) — line 7170. Builds the device-selection menu listing only preselected qualifying devices/variables, appending the already-assigned device for the current slot as the default first pick when one exists.pickDevicesThatQualifyCALLBACK(valuesDict=, typeId=) — line 7200. Config-UI callback for the qualifying-device picker; for the 'myFirstPlot' flow it resolves the chosen device/variable id and type (or keeps the plot's default device and its state), and otherwise ...buttonConfirmDeviceMFPCALLBACK(valuesDict=, typeId=, targetId=) — line 7248. Button callback for confirming the device in the 'myFirstPlot' dialog; resolves the selected device/variable id and its Dev-/Var- type (defaulting to the plot's current device when none chosen), or ...buttonConfirmDeviceCALLBACK(valuesDict=, typeId=, targetId=) — line 7290. Button callback that confirms/saves the selected device by delegating to confirmDevice; on success it marks the device states as OK, records the confirmed device as the previous selection, sets the ...confirmDevice(valuesDict) — line 7320. Confirms and persists a device/variable selection into the plugin's DEVICE structure: for a new device it resolves and stores the id, name and Dev-/Var- type into the current slot, for an existing ...DEVtoValesDict(DEV, valuesDict) — line 7390. Copies a DEVICE slot's per-state configuration (measurement, state, offset, multiplier, min/max, fillGaps, nickName, reset type/periods) into the dialog's valuesDict fields for each state index, ...preSelectStates(devID) — line 7455. Builds the list of selectable states/properties for a given device id, returning ('value','value') for variables and, for devices, each numeric state (excluding Mode/All/.ui states) paired with a ...tryNiceState(inState) — line 7493. Returns a human-friendly display label for a device state key by looking it up in the stateNiceWords mapping, falling back to the raw key when no mapping exists.filterselDeviceStates1(filter=, valuesDict=, typeId=) — line 7507. Config-UI list filter callback for device state selector 1, delegating to filterDeviceStatesAll for state index 1.filterselDeviceStates2(filter=, valuesDict=, typeId=) — line 7518. Config-UI list filter callback for device state selector 2, delegating to filterDeviceStatesAll for state index 2.filterselDeviceStates3(filter=, valuesDict=, typeId=) — line 7529. Indigo config UI list callback that returns the selectable device states for state slot 3 by delegating to filterDeviceStatesAll with stateNo=3.filterselDeviceStates4(filter=, valuesDict=, typeId=) — line 7540. Indigo config UI list callback that returns the selectable device states for state slot 4 by delegating to filterDeviceStatesAll with stateNo=4.filterselDeviceStates5(filter=, valuesDict=, typeId=) — line 7551. Indigo config UI list callback that returns the selectable device states for state slot 5 by delegating to filterDeviceStatesAll with stateNo=5.filterselDeviceStates6(filter=, valuesDict=, typeId=) — line 7562. Indigo config UI list callback that returns the selectable device states for state slot 6 by delegating to filterDeviceStatesAll with stateNo=6.filterselDeviceStates7(filter=, valuesDict=, typeId=) — line 7573. Indigo config UI list callback that returns the selectable device states for state slot 7 by delegating to filterDeviceStatesAll with stateNo=7.filterselDeviceStates8(filter=, valuesDict=, typeId=) — line 7584. Indigo config UI list callback that returns the selectable device states for state slot 8 by delegating to filterDeviceStatesAll with stateNo=8.filterDeviceStatesAll(valuesDict, stateNo) — line 7597. Shared helper backing the per-slot state list callbacks; returns a copy of the currently selectable states for the active device, or a placeholder [(0,0)] when no device is selected.consumptionTypeCALLBACK(valuesDict=) — line 7619. Config UI callback for the consumption-type field that triggers consumptionPeriodCALLBACK to refresh dependent fields, then returns the dialog values unchanged.consumptionPeriodCALLBACK(valuesDict=) — line 7630. Config UI callback that, for the selected consumption type and period, loads stored cost/consumption data into the dialog fields (period text or day/hour plus per-cost consumed and cost values).checkIfEventData() — line 7663. Scans all configured devices/states and rebuilds self.eventDataPresent, mapping each data-column index to its [devNo, stateNo] for any state whose measurement contains 'event'.buttonConfirmDeviceStatesCALLBACK(valuesDict=, typeId=) — line 7681. Config UI Confirm-button callback that validates and commits the selected device's state slots: handles deletes, parses/validates reset-period date strings, computes nicknames, and marks each state ...getNickName(devNo, stateNo, devNameN=, nickNameN=, stateN=, measurementN=, fillGapsN=, resetTypeN=) — line 7924. Builds a display nickname (max 50 chars) for a device state, preferring an existing/new user-supplied name when valid, otherwise composing one from device name, state, measurement, reset type, and ...buttonConfirmRatesCALLBACK(valuesDict=) — line 8019. Config-dialog callback that validates and stores the user's consumption-cost rate schedule for a selected consumption type/period, handling deletion of a rate period (shifting later periods up), ...getDeviceConfigUiValues(devPluginProps, typeId, devId) — line 8156. Returns the initial values for a plot device's configuration dialog, seeding from the device's existing plugin props, looking up or creating the corresponding PLOT entry (handling brand-new devices ...filterFont(filter=, valuesDict=, typeId=, targetId=) — line 8346. Dynamic list-filter callback that supplies the available font choices for the plot's text font menu; returns an empty list in matplotlib mode, otherwise returns the font names plus a default entry ...plotBackgroundColorCALLBACK(valuesDict=, typeId=, targetId=) — line 8366. Config-dialog callback that updates the BackgroundColorRGB field from either the selected named Background color or the manually entered RGB value, converting it to an integer RGB string.plotTextColorRGBCALLBACK(valuesDict=, typeId=, targetId=) — line 8384. Config-dialog callback that updates the TextColorRGB field from either the selected named TextColor or the manually entered RGB value, converting it to an integer RGB string.plotLineColorRGBCALLBACK(valuesDict=, typeId=, targetId=) — line 8401. Config-dialog callback that updates the lineColorRGB field from either the selected named lineColor or the manually entered RGB value, converting it to an integer RGB string.buttonConfirmPlotCALLBACK(valuesDict=, typeId=, targetId=) — line 8421. Confirm-plot button callback that validates and saves the plot's settings via buttonConfirmPlotCALLBACKcheck, then on success switches the dialog into line-definition mode (updating status text and ...buttonConfirmPlotCALLBACKcheck(valuesDict=, typeId=, targetId=, script=) — line 8462. Core validation/storage routine that copies the user's plot configuration from valuesDict into the PLOT data structure for the target device, validating and normalizing values (plot type, fonts, ...convertoIntAndHexRGB(value, defColor=) — line 8726. Parses a color value given either as a #RRGGBB hex string or an 'r,g,b' integer triple and returns both representations, validating ranges and format; on bad/empty input it returns the supplied ...filterExistingLine(filter=, valuesDict=, typeId=, targetId=) — line 8773. Dynamic list-filter callback that builds the menu of existing lines for the target plot, labeling each configured line with its key and source column name (or 'StraightLine'), pruning lines whose ...selectedLineSourceACALLBACK(valuesDict=, typeId=, targetId=) — line 8833. Config-dialog callback for the selected line source A menu; if a negative source is chosen it enables straight-line mode and sets the showAB state, then refreshes and returns the dialog view via ...pickExistingOrNewLineCALLBACK(valuesDict=, typeId=, targetId=) — line 8852. Config-dialog callback for choosing an existing line or adding a new one; for 'Add New Line' it finds the next free line slot and initializes it to defaults, then loads the chosen line's parameters ...filterSelectedLinesA(filter=, valuesDict=, typeId=, targetId=) — line 8956. Indigo list-callback that supplies the selectable data-source options (A side) for the currently selected line of a plot.filterSelectedLinesB(filter=, valuesDict=, typeId=, targetId=) — line 9006. Indigo list-callback that supplies the selectable data-source options (B side) for the currently selected line of a plot, mirroring the A-side filter.lineFuncCALLBACK(valuesDict=, typeId=, targetId=) — line 9051. Dialog field-change callback for the line function selector; forces lineType to 'DOT.' when the function is S, E, or C, then refreshes which fields are shown.buttonUpdatePlotCALLBACK(valuesDict=, typeId=, targetId=) — line 9066. Dialog button callback that regenerates and redraws the plot for the target device.buttonDrawPlotCALLBACK(valuesDict=, typeId=, targetId=) — line 9091. Dialog button callback that shows/redraws the existing plot image for the target device without recreating it, by calling plotNow with ShowOnly set while temporarily disabling the plotting-wait flag.doplotNOWCommand() — line 9113. Executes a pending plot-now request stored in self.plotNOWCommand, dispatching to plotNow for all plots or for a specific plot/show target, then clears the command and restores the plotting-wait flag.doplotNOWOnlyCommand() — line 9134. Executes a pending show-only plot request from self.plotNOWCommand, calling plotNow with ShowOnly set to display the existing plot, then clears the command and restores the plotting-wait flag.buttonConfirmLinePropsCALLBACK(valuesDict=, thetypeId=, thetargetId=) — line 9152. Dialog button callback that confirms and saves the edited line properties for the currently selected line.buttonConfirmLinePropsCALLBACKcheck(valuesDict=, typeId=, targetId=, script=) — line 9177. Validates and persists all properties of the currently selected plot line into self.PLOT, handling delete/duplicate actions, smoothing/function/line-type validation, color conversion, multipliers, ...filterZorder(filter=, valuesDict=, typeId=, targetId=) — line 9330. Indigo list-callback that returns the available z-order positions for a plot, producing one (n, n) entry per existing line number from 1 up to the highest defined line.zorderCALLBACK(valuesDict=, typeId=, targetId=) — line 9357. Reorders the currently selected line to a new z-order position by shifting the intervening lines up or down in self.PLOT and moving the selected line into its new slot via deep copies.getPrefsConfigUiValues() — line 9424. Builds the values dictionary used to populate the plugin preferences config dialog, starting from pluginPrefs, preselecting devices, and copying in current settings such as expert flags, PNG ...validatePrefsConfigUi(valuesDict=) — line 9472. Validates and applies the plugin preferences config dialog, copying settings (gnuplot binary, SQLite/Postgres mode, debug areas, PNG output dir, sampling period, expert options, dynamic-SQL mode, ...closedPrefsConfigUi(valuesDict, userCancelled) — line 9593. Called when the plugin preferences config dialog is closed; clears the new-prefs flag and the wait-with-plotting flag.validateDeviceConfigUi(valuesDict=, typeId=, targetId=) — line 9607. Validates a plot device's config dialog, clears any mini-plot dataSource assignment, serializes the plot definition into the device's PLOTindigo prop, queues a redoParam command, and records the ...closedDeviceConfigUi(valuesDict, userCancelled, typeId=, targetId=) — line 9637. Called when a plot device's config dialog is closed; clears the newPLOTS marker and the wait-with-plotting flag.redoParameters() — line 9656. Rebuilds all parameters after a config change by re-running plot parameter setup (redoParam), cleaning the data, and marking the plugin as initialized (sleeping first if it was not yet initialized).redoParam() — line 9673. Recompiles the plot/data-source indices by calling redolineDataSource (retrying up to four times while it returns -1), then writes plot parameters, persists device parameters to file, and regenerates ...checkForNewDeviceNames() — line 9693. Scans all tracked devices and variables for name changes in Indigo, updating the stored Name field to the current name; if any changed, persists the device parameters to file and logs the renames.redolineDataSource(calledfrom=) — line 9730. Recompiles the mapping between data columns and device/state indices: pads bookkeeping lists to the column count, fixes the width of timeDataNumbers, validates each column's device/state (removing ...resetDeviceStateNo(devNo, stateNo) — line 10037. Resets all per-state fields (state, measurement, fillGaps, min/max value, offset, multiplier, resetType) of a given device's state slot back to the empty-device defaults.DeleteDevice(devNo, valuesDict) — line 10058. Queues a device for removal by appending its number to removeThisDevice, triggers the actual removal, and marks the UI text field as deleted.removeDevice() — line 10073. Removes the queued devices by calling removeDevice0, then rebuilds all parameters and persists the device parameters to file.removeDevice0(reDo=) — line 10087. Removes each device queued in removeThisDevice by stripping all of its state props and deleting it from the DEVICE dict, bracketing the operation with Pause/Continue data-collection commands, ...removePropFromDevice(devNo, stateNo, writeD=, reDo=) — line 10116. Removes a single device state/property from the plugin's tracked data by clearing its DEVICE bookkeeping entries and dropping its associated data column from the data buffers and index maps, then ...removeColumnFromIndexes(columnToRemove) — line 10148. Removes a given data column index from all plot line definitions, device state-to-index maps, and supporting index lists, deleting lines that referenced it and decrementing higher indexes; updates ...removeThisPlotFile(nPlot) — line 10223. Deletes the generated gnuplot script (.gnu) and rendered image (.png) files on disk for a given plot, across all plot sizes and (for time-series plots) all time types, via shell rm commands.removeThisPlot(nPlot) — line 10251. Fully removes a plot by deleting its output files, removing its entry from the PLOT dictionary, resetting the current line number, and writing the updated plot parameters to file.removeColumnFromData(colToRemove) — line 10272. Removes a data column from all in-memory data arrays by shifting subsequent columns down and deleting the trailing slot, including the binned time data, per-time-type Indigo value buffers, and ...setPlotToDefault(nPlot) — line 10313. Resets a plot's configuration to the default empty plot template by deep-copying emptyPlot into the PLOT dictionary entry.setLineToDefault(nPlot, nLine) — line 10325. Resets a specific line within a plot to the default empty line template by deep-copying emptyLine into the plot's lines dictionary.getcProfileVariable() — line 10340. Reads the time-tracking control Indigo variable and parses its value into a command and an optional print-option, used to enable, disable, or print cProfile timing; also sets the wait interval before ...printcProfileStats(pri=) — line 10370. Dumps and writes the accumulated cProfile statistics to timeStats.dump and timeStats.txt files, sorted by the given metric (defaulting to cumulative time), temporarily redirecting stdout to the text ...checkcProfile() — line 10406. Periodically checks the time-tracking control variable and starts, stops, or prints cProfile profiling accordingly, lazily importing the profiler, enabling/disabling it, and flagging a plugin restart ...checkcProfileEND() — line 10448. Finalizes cProfile profiling at shutdown by printing the accumulated stats if profiling was active in on or print mode.runConcurrentThread() — line 10465. Indigo's main concurrent thread entry point: runs the plugin's main work loop, finalizes profiling, sleeps one second, and restarts the plugin via the Indigo server if a quit request has been set.dorunConcurrentThread() — line 10487. Runs the plugin's main background data-collection and plotting loop: initializes time/index state, removes deleted plot devices, writes plot parameters and sets up gnuplot/matplot files, then loops ...doAfterMidnight() — line 10719. Midnight maintenance routine that regenerates the Python export and, if SQL is in batch2Day mode, forces all SQL column/history statuses to a refresh state and re-runs the SQL batch import until the ...checkPLOTSandConsumption() — line 10744. Checks for pending new-plot or new-preferences flags and, when set, re-syncs plots with Indigo, recomputes consumption/cost and column data, and triggers a plot run; returns whether the caller's loop ...checkSQLdata() — line 10772. Drives SQL data import during the main loop: when SQL data is pending and not paused, writes device parameters, runs the SQL batch setup/read, and includes a safety mechanism that detects a stalled ...doCHECKcommands() — line 10821. Processes the queued indigoCommand list one entry at a time, dispatching to the matching handler (pause/continue data collection, redo parameters, plot now, init/reset data, reload SQL, print/export ...syncPlotsWithIndigo(Force=) — line 10889. Synchronizes the in-memory PLOT dictionary with the actual Indigo plot devices: detects new, renamed, deleted-name and enabled-state changes, fills in missing default keys/lines, migrates legacy ...checkForVariables(mPlot) — line 11025. Scans a plot definition (or all plots if mPlot is empty) for any text/line field containing the variable marker '%%v:', and marks the plot's variableInText flag when one is found.fnameToDeviceNamePlot(nPlot) — line 11055. Migrates a single plot's legacy configuration keys to the current naming scheme: renames Fname to DeviceNamePlot, Type to devOrVar, and per-line keys (Type, Width, Color, Func, Smooth, Multiplier, ...removeDeletedIndigoPlots() — line 11139. Removes plot entries from self.PLOT whose corresponding Indigo device no longer exists, deleting the associated gnuplot/png output files for each orphaned plot.checkMinMaxFiles() — line 11180. Deletes all generated min/max bin data files from the plugin's data directory by matching filenames containing the bin-type file name markers.plotNow(createNow=, showNow=, ShowOnly=) — line 11204. Generates and optionally displays plots for the configured plot devices using either matplotlib or gnuplot: for matplot it writes a command file for the helper process, and for gnuplot it builds and ...checkExtraData(nPlot, TTI) — line 11299. Computes derived min/max time-series data (per hour/day/month) for plot lines configured with min/max repeat modes: it gathers the time bins in range applying from/to filters, time shifts, ...calcMinMax(frDate, toDate, out, minMAX) — line 11446. Iterates over a list of (timestamp, value) pairs, groups them by a date substring slice (frDate:toDate of the timestamp), and for each group emits the row holding the minimum or maximum value, ...callGnu(Fname, PNGname, cmd, compressPNGfile) — line 11483. Removes any stale .err/.ok/.done marker files for the given plot, runs the supplied gnuplot command via readPopen, and if compression is requested runs pngquant to compress the PNG in place and ...CheckIfPlotdone(Fname, PNGname, wait=, checkOnlyThisOne=) — line 11508. Checks whether a single plot has finished rendering by inspecting gnuplot's .err/.done marker files (logging any warnings) or, in matplotlib mode, the PNG file's modification time; optionally ...CheckIfPlotOK(wait=, checkOnlyThisOne=) — line 11556. Iterates over all configured plots and verifies each expected PNG output file was actually created and is non-empty, logging warnings about missing/empty files; if all plots are present it fires the ...checkVariableData(testNew=) — line 11625. For each plot of type 'dataFromVariable', reads the Indigo variable's value, and (optionally only when the value changed) writes it to the plot's data file (converting '|' separators to newlines) and ...checkFileData() — line 11656. For each plot of type 'dataFromFile', checks the source data file's modification time and, when it has changed since the last recorded update, triggers a re-plot of that device; logs errors and ...getIndigoData() — line 11684. Reads the current value of every configured Indigo device state or variable column, applies offset/multiplier scaling, validates against per-column min/max ranges, records the last-changed ...acummulateValues(action, TTI, TBI) — line 11776. Accumulates the latest sampled Indigo values into the current time bins for each data column, either initializing/rolling bins (action 'init') by resetting counters per measurement type (integrate, ...mkCopyOfDB() — line 12151. For sqlite databases configured to use a working copy, checks whether a copy operation is already running and whether the existing indigo_historycp.sqlite copy is older than two hours, and if needed ...setupSQLDataBatch(calledfrom=) — line 12188. Builds and dispatches the batch SQL extraction commands for each device/variable data column whose status requests an update: verifies the sql-logger plugin is enabled, optionally makes a DB copy, ...fixSQLFiles(wait=) — line 12482. Generates a shell script (fixSQL.sh) that runs the fixSQLoutput.py helper on each per-device/state SQL export file to remove duplicate records, launches the script as a subprocess, and optionally ...readSQLdataBatch(calledfrom=) — line 12550. Reads the finished per-column SQL export files (those with a .done marker), sorts them by size to process smaller ones first, determines the first time bin to fill (limited to the last two days in ...getsqldataFromFile(theDeviceId, theState, theDeviceName, theMeasurement, theCol, foundfirst, d0, atLeastOneRecord, reject2days, ignoreSQL) — line 12811. Reads the SQL export result file for a device/state column (produced by an external sql import), waiting for the .done marker and a stable file size, parses each semicolon-separated record into ...clearSqlData(empty) — line 12954. Cleans up SQL import control state and leftover .done/.error/data files for device/state columns.getCarryInFromSQL(TTI, theCol) — line 13035. Value of the bin just before the SQL import window, used to fill a gap at the START of the imported range (eg when only the last 2 days are loaded the first bin often has no record of its own).fillHistogramFromSQL(sqlDataIn, sqlIndex, theCol, theState, fillGaps, resetTypeIN, theMeasurement, offsetD, multiplierD, timeNow, d0) — line 13053. Distributes parsed SQL [timestamp, value] records into the plugin's time-binned histogram arrays for each time-series type (minute/hour/day), applying the requested aggregation (average, sum, min, ...aveAngle(thetaNewMeasurement, thetaCurrentAverage, nMeasurement, offset=, flip=) — line 13832. Computes a running circular (angular) average in radians, incorporating a new angle measurement into the current average while correctly handling wrap-around at 2*pi, an optional fixed offset, and ...checkSQLData(SQLtemp, theMeasurement, theState, minValue, maxValue) — line 13866. Filters/cleans a list of SQL [timestamp, value] records, rejecting values outside the min/max range and detecting bad spikes or consumption resets for energy states (curEnergyLevel/accumEnergyTotal).padzero(instring) — line 13981. Left-pads a one-digit number or string to a two-character string by prefixing a zero (e.g. 2 -> '02'), also handling a leading space; values already two characters are returned unchanged.testFonts() — line 13995. Checks the installed gnuplot version and tests TrueType font support by writing and running a small test gnuplot script.procUPtime(process) — line 14040. Returns the accumulated CPU time (in seconds) consumed by a named process, by running ps/grep/awk and parsing the hours:minutes:seconds output into seconds.triggerStartProcessing(trigger) — line 14073. Indigo trigger lifecycle hook that registers a trigger by appending its id to the plugin's active trigger list.triggerStopProcessing(trigger) — line 14083. Indigo trigger lifecycle hook that unregisters a trigger by removing its id from the plugin's active trigger list if present.triggerEvent(eventId) — line 14104. Fires all registered plugin triggers whose pluginTypeId matches the given event id, by iterating the active trigger list and executing each matching Indigo trigger.readPopen(cmd) — line 14120. Runs a shell command via subprocess.Popen and returns its stdout and stderr decoded as UTF-8 strings; logs an error on failure.openEncoding(ff, readOrWrite) — line 14135. Opens a file with UTF-8 encoding, using the built-in open() on Python 3 and codecs.open() on Python 2, returning the file object or an empty string on error.completePath(inPath) — line 14154. Normalizes a directory path by ensuring it ends with a trailing slash, returning an empty string for empty or blank input.decideMyLog(msgLevel) — line 14176. Decides whether a message at a given debug level should be logged by checking the requested level against the configured debugLevel set.__init__(fmt=, datefmt=, level_fmts=, level_date=) — line 14200. Initializes a LevelFormatter logging formatter, building per-level logging.Formatter instances from the given level format and date mappings plus a default format.format(record) — line 14219. Formats a log record using the formatter registered for the record's level if one exists, otherwise falling back to the default formatter.indigoMPplot.py — matplotlib rendering back end (runs as its own process)main() — line 38. Runs the plugin's main loop: initializes global time-binning configuration, then repeatedly watches for a matplot command file, reloads plot parameters when changed, loads disk and event data, and ...readPlotParameters() — line 145. Reads the JSON parameter file written by IndigoPlotD and populates global plot configuration (PLOT, DEVICE, column-to-device mapping, data offset, PNG output directory), retrying up to three times on ...resettimeDataNumbers() — line 184. Resets the global timeDataNumbers structure to a fresh list of zero-filled bins, one list per time type sized to that type's number of time bins.getEventData() — line 198. Builds event-related global data by scanning configured device/state columns for event measurement types (up/down/change/count with optional reset and zero modifiers), then reads each matching ...getDiskData(tType) — line 285. Loads the on-disk time-series data file for the given time type, validating the line count against the expected number of bins (adjusting bin/day counts or quitting if mismatched), parses each line ...firstLastDayToPlot(days, shift, tType) — line 371. Computes the earliest and last day/datetime boundaries to plot for a given time type, number of days, and shift code, handling minute/hour/day windows, continuous hourly shift, and fixed ...secMillis(d0) — line 462. Returns the elapsed time since a starting datetime as a formatted 'seconds.microseconds' string, used for timing log messages.plotNow(filenamesToPlot) — line 476. Generates all requested plots: sets up reference datetimes (now and next midnight), iterates over every plot definition in PLOT calling do_nPlot for each, then cleans up matplotlib figure/axes ...comparePLOT(oldPlot, newPlot) — line 517. Deeply compares two plot-definition dicts (handling nested one-level dicts) and reports whether they are equal, used to detect whether a plot's definition changed.do_nPlot(nPlot, filenamesToPlot) — line 542. Processes a single plot definition: checks whether it is enabled and requested, decides whether re-plotting is needed (new data, changed definition, or missing PNG files), parses scale ranges, X-axis ...do_PlottType(plotN, filenamesToPlot, XisDate, tType, colOffset, BorderColor) — line 712. Dispatcher for one plot/time-type: calls do_prepData to gather and bin the data, and if any data was returned, calls do_DisplayData to render and save the plot images.do_prepData(plotN, filenamesToPlot, XisDate, tType, colOffset, BorderColor) — line 738. Prepares and aggregates the raw data for a plot: builds the X time axis, selects which data columns map to left/right lines, and processes time-series/event data (up, down, change, count with ...getminMaxPerTimeperiod(minMax, timePeriod, xtimeForOneCol, theColumnValues, weight) — line 1441. Computes per-time-period extrema (minimum or maximum) of a column's values: walks the time/value samples grouped by the given strftime time-period format and collects the X, Y (and optional weight) ...do_DisplayData(plotN, filenamesToPlot, XisDate, tType, colOffset, BorderColor) — line 1503. Sets up matplotlib rcParams (fonts, tick sizes, colors, padding) based on the plot config, then for each of the two output sizes computes resolution and text size and dispatches to do_xyPlot or ...do_xyPlot(plotN, xres, yres, DeviceNamePlotpng, xMax, xMin, textSize, BordOff, BorderColor, firstDaytoPlot, lastDaytoPlot, y1, y2, tType, XisDate) — line 1599. Renders an XY (Cartesian) matplotlib plot from the prepared data: creates the figure, applies title and extra text, configures left and right Y axes (labels, log scale, ranges, custom ticks, ...do_polar(plotN, xres, yres, DeviceNamePlotpng, xMax, xMin, tType) — line 2238. Renders a polar matplotlib plot from the prepared data: creates a polar figure, draws each configured line (solid/dashed/dot styles), sets radial scale/limits and tick labels, builds directional ...set_border(BordOff, ax, ax2=) — line 2423. Hides selected plot borders and ticks: for each side flagged '0' in BordOff, disables the corresponding ticks and makes that spine invisible on the primary axis, and on the secondary axis when one is ...save_plot(DeviceNamePlotpng, fig, plt, TransparentBackground, compressPNGfile) — line 2466. Saves the matplotlib figure to a PNG file (transparent or with background color depending on the setting), and optionally runs the bundled pngquant tool to compress the PNG in place.openEncoding(ff, readOrWrite) — line 2501. Opens a file for reading or writing with UTF-8 encoding, using the built-in open on Python 3 and codecs.open on Python 2.getNumber.py — number parsing helpergetNumber(val) — line 19. Get Number. Inputs: val: Caller-supplied value used by this method.fixSQLoutput.py — SQL export de-duplication helper (run as a script)makeEvents() — line 17. Placeholder/no-op stub that does nothing and returns immediately; defined for API/import compatibility.fixPy.py — backup/restore file migration helper (run as a script)No functions: the whole module runs at import/script level.
checkIndigoPluginName.py — plugin install-path sanity checkcheckIndigoPluginName(indigo) — line 11. no docstring| Released on: | Oct. 28, 2026 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 29 times |
| Download this release | |
c
| Released on: | July 14, 2026 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 116 times |
| Download this release | |
minor big fixes
| Released on: | Feb. 3, 2026 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 132 times |
| Download this release | |
fixed matplot issue extra text rotation must be a number not a string eg not "90.0" but 90.0
| Released on: | Nov. 9, 2025 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 123 times |
| Download this release | |
fixed matplot issue with not plotting
| v2022.21.87 | Requires Indigo v2022.1.0+ | Released Sept. 22, 2025 | fixed error when running indigo beta version |
| Released on: | Sept. 22, 2025 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 133 times |
| Download this release | |
| v2022.21.84 | Requires Indigo v2022.1.0+ | Released Oct. 2, 2024 | fixes path to sqlite if indigo changes path |
| Released on: | Oct. 2, 2024 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 130 times |
| Download this release | |
| Released on: | July 30, 2024 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 132 times |
| Download this release | |
| Released on: | April 2, 2024 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 126 times |
| Download this release | |
- position of R label ( was at ~ 30 deg.) - angle of R tick numbers (was def 30 deg)
| v2022.21.80 | Requires Indigo v2022.1.0+ | Released Feb. 1, 2024 | fix sqlite path when indigo changes path |
| Released on: | Feb. 1, 2024 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 133 times |
| Download this release | |
| v2022.21.76 | Requires Indigo v2022.1.0+ | Released June 22, 2022 | fixed: save config write error, executed once at midnight |
| Released on: | June 22, 2022 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 112 times |
| Download this release | |
fixed: save config write error, executed once at midnight
| Released on: | May 26, 2022 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 136 times |
| Download this release | |
fixed: unicode error
| Released on: | May 25, 2022 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 115 times |
| Download this release | |
fixed: sql produced file with bad data INDIGOplotD Error 'could not convert string to float:
| Released on: | May 18, 2022 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 145 times |
| Download this release | |
fixed settings for indigo 2022.1
| Released on: | Jan. 1, 2021 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 118 times |
| Download this release | |
make /Library/Application Support/Perceptive Automation/Indigo x.y/Logs/ default path to indigo sql db
| v7.20.72 | Requires Indigo v7.0.2 thru v2022.2 | Released Aug. 7, 2020 | added " (psql) and [] (sqllite) around column names in sql queries to allow eg index as name |
| Released on: | Aug. 7, 2020 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 137 times |
| Download this release | |
added " (psql) and [] (sqllite) around column names in sql queries to allow eg index as name
| Released on: | May 27, 2020 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 119 times |
| Download this release | |
set psql command string to default (w warning) if command is too short or does not contain psql
| Released on: | March 26, 2020 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 129 times |
| Download this release | |
added measurement "delta Max" as compared to delta average of value this - last time bin
| Released on: | Feb. 11, 2020 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 146 times |
| Download this release | |
| v7.18.55 | Requires Indigo v7.0.2 thru v2022.2 | Released Nov. 8, 2018 | fixed error:'Plugin' object has no attribute 'pr' |
| Released on: | Nov. 8, 2018 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 140 times |
| Download this release | |
fixed error:'Plugin' object has no attribute 'pr'
| Released on: | Nov. 8, 2018 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 132 times |
| Download this release | |
| Released on: | Sept. 30, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 133 times |
| Download this release | |
adopted new indigo path 7.2
indigo 6
| Released on: | Aug. 12, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 138 times |
| Download this release | |
v4.18.48
indigo 7
| Released on: | July 23, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 141 times |
| Download this release | |
fixed SQL import bug for menu import single device/state . Was not properly initialized fixed SQL import bug for LARGE files. Sometimes the file was not completely finished exporting while indigoplotd started read and only read the first part of the file was imported
indigo 6
| v4.18.46 | Requires Indigo v6.1.5 thru v2022.2 | Released March 20, 2018 | completed options for x axis format |
| Released on: | March 20, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 130 times |
| Download this release | |
has now the following x axis for options: 1. off = leave # of ticks and date format to GNUPLOT or MATPLOT 2. blanks, use indigoplotD suggestions 3 A) GNUPLOT: %forat + ticks every xx seconds eg %H:M+2*3600 will show Hour:Min every 2 hours 3 B) MATPLOT use multiplier eg 0.1 1(default) 2 3 4 5 12 to decrease / increase # of ticks shows compared to indigoplotD suggestions
indigo 6
| v4.18.45 | Requires Indigo v6.1.5 thru v2022.2 | Released March 18, 2018 | added # of ticks and format for gnu plot |
| Released on: | March 18, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 128 times |
| Download this release | |
currently only for GNUPLOT added filed to set 1. format of x ticks ( %m/%d-%H= month/day-hour) 2. frequency of x ticks in seconds eg 3*3600 puts month/day-hour every 3 hours on the x-axis
enter: >>%m/%d-%H+12*3600<< in Format scale
Karl
indigo 6+
| v4.17.45 | Requires Indigo v6.1.5 thru v2022.2 | Released March 14, 2018 | bug fixes for eventCOUNT reset periods |
| Released on: | March 14, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 136 times |
| Download this release | |
the reset period for event counts was set to 0 during restart of plugin.
indigo 6
| Released on: | March 6, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 138 times |
| Download this release | |
fixed bug that was introduces in the previous version (a "-" sign was missing)
indigo 6
| Released on: | March 3, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 130 times |
| Download this release | |
sql import bug fix
indigo 6 +
| v4.17.40 | Requires Indigo v6.1.5 thru v2022.2 | Released Feb. 27, 2018 | added event count and indigo store version controller |
| Released on: | Feb. 27, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 137 times |
| Download this release | |
added indigo store version check added eventCOUNT measurement: ** this measurement type counts all events (any entry in sql logger that is not 0 and adds them up. then at selected reset point the count goes to zero. reset points can be day, week, month, year.
this is useful if you have short events that go up/down in 1 - 3 secs so that the normal average months do not necessarily catch them . The normal counts measurement checks the value of the device/.state once a minute. What ever the state is then is used. This events count measurement checks all sql entries and will not miss any. In comparison to event UP or DOWN orANY count adds the # of events up. So if you have 20 events in 1 hour "eventsCOUNT" would show ONE point at y = 20; "eventsUP" would show 20 points at y=1 at the exact event times hour:mim:secs. "eventsDOWN" would also show 20 but at the points where the signal goes from 1 to 0. "events ANY" would show 40 entries.
indigo 7
| Released on: | Feb. 17, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 130 times |
| Download this release | |
plugin now offers "event count" type lines.
in menue define data sources select measurement type event count
then in plots select this selection for a line
it plots the following quality: for each bin (5 minutes/1 hour/1 day) if counts the number of events in the data where the data was updated in indigo and was > 0. eg assume 5min 10 secs data was 1 6 min15 secs data was 0 7 min 35 secs data was 1 8 min 12 sec data was 0 10 min 1 sec data was 1 then the count value would be 2 for the 5 minute bin
This can be used to show eg how often a door was opened each hour
This is different than the regular count measurement. That measurement only tests the data once per minute at 58 secs and uses what ever the value is at that point in time. So if you have SHORT event types where a values goes up just for eg 3 seconds the regular count measurement would likely miss that.
indie 6
| v4.16.30 | Requires Indigo v6.1.5 thru v2022.2 | Released Feb. 13, 2018 | added several languages for yes no |
| Released on: | Feb. 13, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 142 times |
| Download this release | |
besides numbers the plugin recognizes: if ( val== u"TRUE" or val== u"T" or val== u"ON" or val== u"HOME" or val== u"YES" or val== u"SI" or val== u"JA" or val== u"IGEN" or val== u"OUI" or val== u"UP" or val== u"OPEN" or val== u"CLEAR" ): return 1.0 elif ( val== u"FALSE" or val== u"F" or val== u"AWAY" or val== u"OFF" or val== u"NO" or val== u"NEIN" or val== u"NEM" or val== u"NON" or val== u"DOWN" or val== u"CLOSED" or val== u"FAULTED" or val== u"FAULT" or val== u"EXPIRED" ): return 0.0
as 0 /1
indigo 6
| Released on: | Feb. 13, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 131 times |
| Download this release | |
the plugin now recognizes added QUI / NON as 1/0 in data besides --0/1 --yes/no --/true/false == ..
indigo 6
| Released on: | Jan. 9, 2018 |
| Requires: | Indigo v6.1.5 thru v2022.2 |
| Downloaded: | 131 times |
| Download this release | |
indigo v 6
| Released on: | Nov. 29, 2017 |
| Requires: | Indigo v6.0.0 thru v2022.2 |
| Downloaded: | 133 times |
| Download this release | |
base release
indigo 6