I'm stuck on a simple question I'm hoping you can help with!
Info.plist
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>1.0.0</string>
<key>ServerApiVersion</key>
<string>1.0.0</string>
<key>IwsApiVersion</key>
<string>1.0.0</string>
<key>CFBundleDisplayName</key>
<string>LightwaveRF</string>
<key>CFBundleIdentifier</key>
<string>com.perceptiveautomation.indigoplugin.lightwaverf</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>http://www.perceptiveautomation.com/userforum/viewforum.php?f=20</string>
</dict>
</array>
</dict>
</plist>
PluginConfig.xml
- Code: Select all
<?xml version="1.0"?>
<PluginConfig>
<SupportURL>http://www.yourdomain.com/plugin/config.html</SupportURL>
<Field id="wifilinkip" type="textfield" defaultValue="192.168.0.220">
<Label>Wifilink IP Address:</Label>
</Field>
</PluginConfig>
Could you let me know how I can refer to the "wifilinkip" property in the PluginConfig.xml from my python script?
I'm currently doing:
- Code: Select all
indigo.server.log(u"Value is " + com.perceptiveautomation.indigoplugin.lightwaverf.wifilinkip)
But that's resulting in:
Traceback (most recent call last):
File "plugin.py", line 56, in actionControlDimmerRelay
<type 'exceptions.NameError'>: global name 'com' is not defined
Thanks!