Well, OK, but only because they’re good questions. In fact, they’re so good, that I’m starting a new thread with a better topic title since we have wandered far from the original here http://forum.micasaverde.com/index.php/topic,35656.msg263560.html#msg263560
I see quite a lot of calls for /cgi-bin/cmh/sysinfo.sh in the logs, which obviously doesn't exist, is that expected?
Yes, the thing that’s of note if that you’re seeing them (I think) in the log of the server on port 3480. This is because of a little magic that @amg0 made possible in this release http://forum.micasaverde.com/index.php/topic,33308.msg260309.html#msg260309 (that’s build 1023 and beyond) “sysinfo fix (openluup)”. This should mean that openLuup can handle CGI call as it likes (at least, in some cases.) I plan to have a /etc/cmh-ludl/cgi-bin/ directory where you can put scripts. This is a special case of something I’ll go into further below.
Is there a list of known "working" plugins? Or is it a case of trying them and seeing for yourself? I'm using the Day Or Night and Heliotrope plugins so far without a problem.
Not exactly, although @CudaNet has made a good start. What I have done is to create threads here with board topics such as ‘AV Plugins’ (actually mostly for audio: Sonos, DLNA, etc.) and ‘Video, Cameras’, etc. There’s even one for ‘Day or Night’.
I have to say that I don’t understand what the Day or Night plugin brings over and above the luup.is_night() call, along with the Night mode that UI7 introduced. I should perhaps also note that all the calculations that the Heliotrope plugin does are already in the timer module of openLuup, since that it exactly how it calculates sunrise and sunset. I can make these accessible, if needed, through the openLuup:Extensions plugin.
If a plugin doesn't work, what's the best way to determine who to report that to? Is it an openLuup issue? Or an AltUI issue? Or maybe a a bit of both?
If it’s a problem with the luup environment, then it’s an openLuup issue. Otherwise, it’s sometimes hard to tell. @amg0 and I discuss things a fair amount! If your can verify that it’s not a problem on Vera (under AltUI) then that’s a good start. Then ask either in an existing appropriate thread or start a new one. I like to prefix openLuup topics with “openLuup:…” to make it clear to the casual reader that it’s not a Vera topic (perhaps we need our own BB!)
On a more general point, I simply can’t be an expert on other people’s plugins. It’s quite amazing the things some developers do (quite understandably) to try and function in Vera’s weird ecosystem. However, openLuup is NOT Vera, and whilst it aspires to a very complete emulation of the Luup environment, Vera/MiOS is much more than that. In particular, there are script files all over the place, that some developers use to find out various things. Also, none of openLuup’s files are compressed, so folk who do wonderful things with call to pluto-lzo may run into trouble. I’m also keen on making as much of it work as possible under windws, so call to os.execute() should be eschewed. We can ask openLuup-friendly developers to tweak things a bit - or we can do it ourselves.
As an example I'm looking at the Visonic alarm panel plugin for my Powermax+ ... I can workaround the lack of serial io by moving it to an ethernet interface or using socat so that's not a problem.
I’d be interested to hear how that goes. It is, to me, the best solution to avoid having to handle hardware-specific serial devices in openLuup.
But the plugin fails to load correctly at all initially, I fixed a couple of things easily enough (missing "bit" lib and a badly packaged ssl/https lib that was in the wrong place).
These are things of general interest that I can highlight and improve upon in the documentation. It’s also why I included a configuration test utility in the openLuup distribution.
AltUI was showing errors in the parent device though, complaining of a missing function "pulldown_from_array", I tracked that down to /mios/www/cmh/js/main.js on a real Vera so as a quick fix I just copied the function into the plugins' own JS file.
Should that main.js file be part of openLuup though? Or AltUI? Or neither and it’s bad form for a plugin to rely on something from the core Vera files?
openLuup has not one line of JavaScript. Never has, never will. It actually has almost nothing to do with the user interface - that’s AltUI’s domain (and absolutely not an area of my expertise, such as it is.)
So the Visonic plugin is sort of running, but the UI is still a bit messed up with regards to settings and controls etc - I guess that's an AltUI issue?
I’ll need to physically connect a Visonic panel to go much further (to see if it actually talks to the panel and creates all the child devices (partitions & sensors). I would need to break my live system to do that though so just wondering which direction to ask for help if it all fails spectacularly!
Well, as you see after reading the above: it may, or may not, be an AltUI issue. Just ask again.