Announcement

Collapse
No announcement yet.

HS4 Plugin Not Loading INI Settings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HS4 Plugin Not Loading INI Settings

    I'm not sure what I'm missing. I've writing a plugin for HS4, using the Visual Studio debugger. In my plugin Initialize() method, I have the following line:

    Code:
    Dictionary<string, string> settingsINIDictionary = HomeSeerSystem.GetIniSection("Settings", "RFPlugin.ini");
    I've placed my INI file under the RFPlugin-CS1\bin\Debug\Config\ folder. The dictionary is always empty.

    I've tried putting the same INI file in various folders, i.e. the same location as the compiled EXE but it never gets populated. Also, no error is thrown if the file is not found.

    My INI file contains:

    Code:
    [Settings]
    dumpDevices=True
    I haven't created any feature pages yet, just trying to load Plugin settings on startup.

    Any suggestions?

    #2
    Try placing it in the <hs install folder>\Config. HS4 checks this directory for the ini files.
    -- Wim

    Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

    1210 devices/features ---- 392 events ----- 40 scripts

    Comment


      #3
      Yup, that was it! Thanks again.

      Comment

      Working...
      X