Exporting Indigo device list to CSV
A Python script for exporting Indigo device names, IDs, folders, and descriptions to a sorted CSV reference file.
The Indigo SQL Logger plugin can save device states to a local SQLite database that is stored in Indigo’s current version support directory. But where is that directory and how can our scripts access it agnostic of the current version of Indigo?
It turns out that the server exposes its log directory path:
indigo.server.getLogsFolderPath()
Then to get the path to the device state database:
import os
db_path = os.path.join(indigo.server.getLogsFolderPath(),
"indigo_history.sqlite")And as an example:
Trigger, Scheduled or web UI element are not executed sequentially. Design accordingly to avoid race conditions.In Vim, to jump to a specific character on a line, you can use the following commands:
f{char} - Jump to the next occurrence of {char} on the current lineF{char} - Jump to the previous occurrence of {char} on the current linet{char} - Jump until (one position before) the next occurrence of {char}T{char} - Jump until (one position after) the previous occurrence of {char}For your specific example of “go to first #”: