berkinet wrote:However, when considering a plugin, there is no real advantage over the script. .
Yup, really i just find it a lot tidier. At the moment i have variables which are grouped together in folders per device (e.g. a Sky HD box which outputs the current channel, show name, etc via serial that is then put into variables using a rather poorly made applescript).. the only real problem with this approach is that i’ve got so many variables that whenever i’m modifying a control page it’s a pain finding the particular one i’m looking for. Considering there’s almost 40 fields of information that APCupsd can report on for my current UPS, if i have 4 UPSes that’s well over 100 extra variables to scroll through each time. I’m very slowly learning python and i’m hoping to build some simple little plugins myself in the future to help manage all these bits of info.. but i’m still a fair bit off from being able to do that myself.
I suppose the only other major benefit of having a plugin would be it’s just a bit easier to add multiple devices.. just select the device you want to report on in the GUI