[quote=“mda, post:100, topic:187412”][quote=“akbooer, post:98, topic:187412”]Don’t know if these are any good.
Found them, and the contained sub-directory in /usr/local/lib/[/quote]
worked! Thanks!!! now on to configuring and testing openluup ;)[/quote]
looks like it is working working! Yay! now to try to some cameras and other plugins…
I moved over the camera and foscam files from my vera (decompressed). I tried a foscam device which OpenLuup loaded from my Vera but it does not get an image. Attached is screen shot.
I haven’t tried cameras (haven’t got one.) I don’t think I’ve done anything explicit to support them, so it may need something extra. The log should be a good diagnostic of anything missing. You should not have to create anything locally explicitly when bridging to an existing remote Vera.
What worries me about that screen shot is the “Waiting for initial data” at the bottom. This is not how it should be: it’s missing the ‘donate’ button. Look like ALTUI has not started up right? (Just to be clear, this will be an openLuup issue, rather than an ALTUI one!)
I think it’s important to walk before we can run. What else, more basic, do you have and how is that working (switches, sensors, etc.) ?
Wow, that’s amazing! I shouldn’t sound surprised, but it sounds like you went for the whole works straight away. You’re saying that the Arduino gateway plugin works OK as well as the bridge to both of your Veras? What sensors are you running on the Veras?
Basically the vera’s are just controling my zwave devices and some PLEG on the edge. I started with the lite but ran into memory issues causing multiple restarts a day when i added more than 5 mysensors nodes. I added the edge last December and it works a lot better but the buggy firmware is still frustrating. I bought a pogo plug v4 on ebay for $5 and hacked to to run Debian Linux but it was just sitting around do nothing so when i saw this i thought why not and tried it.
I have LED, temp, motion,light and rainsensors.
Well you’re obviously an expert, and that’s a great example of how I imagined it being used. If there are any lessons learned during the commissioning, or suggestions for improvements, I’d be happy to hear them.
So well done again, and thanks for thinking “why not” in the first place!
i decompressed and copied all the files from /etc/cmh-lu and /etc/cmh-ludl on vera to /etc/cmh on my mac. I could not bring over the Vera Alerts plug in or a couple other encrypted files.
The good news is i can turn z-wave lights on/off from AltUI on openluup and the multiswitch values display (though clicking on a multiswitch button does not have any effect, which is fine ;). I can also connect to openluup with HomeWave on iOS and can control bridged vera z-wave lights through openluup.
But, the bridged cameras still do not display images on altUI or on Homewave – however this does not matter to me since I want to connect openluup directly to the camera and avoid the camera being in vera as my next step, so i do not need to get bridged cameras working.
But…
I have changed OpnLuup’s startup.lua to have my location but AltUI shows Chantilly Virginia as my location (I am in California), and “Waiting Initial Data” so something is still not right. I also replaced “Upstairs” with “Master” in the Room setup in startup.lua but AltUI is showing Upstairs, Downstairs, and Master (where is it getting “Upstairs” from?)
So before i start to create devices in startup.lua i think i still need to figure out why OpenLuup is not taking into account my startup.lua changes correctly and still “Waiting Initial Data”?
But, the bridged cameras still do not display images on altUI or on Homewave -- however this does not matter to me since I want to connect openluup directly to the camera and avoid the camera being in vera as my next step, so i do not need to get bridged cameras working.
OK, fair plan. I've taken a look and there is one critical HTTP request that I have not yet implemented: request_image, as documented (not very well) here: [url=http://wiki.micasaverde.com/index.php/Luup_Requests#request_image]http://wiki.micasaverde.com/index.php/Luup_Requests#request_image[/url]
I’ll take a look at doing this. My initial worry is that cameras seem (from reading other posts) to be a bit of a challenge to set up. I’m not sure why this is, but no doubt I will find out. Not having a camera at all will mean a bit of trial and error on the way.
I have changed OpnLuup's startup.lua to have my location but AltUI shows Chantilly Virginia as my location (I am in California)
I'll take a look at the startup file and see what that tells me. To help further diagnostics it would be good to have the output from the id=user_data request.
and "Waiting Initial Data" so something is still not right. I also replaced "Upstairs" with "Master" in the Room setup in startup.lua but AltUI is showing Upstairs, Downstairs, and Master (where is it getting "Upstairs" from?)
As documented, room states, and scenes, are persistent. The are saved in the file user_data.json on a clean exit from openLuup (ie. after an HTTP request with id=exit). You can directly edit that file to remove the room, or use and HTTP request (documented here [url=http://wiki.micasaverde.com/index.php/Luup_Requests#room]http://wiki.micasaverde.com/index.php/Luup_Requests#room[/url]) to remove it.
So before i start to create devices in startup.lua i think i still need to figure out why OpenLuup is not taking into account my startup.lua changes correctly and still "Waiting Initial Data"?
I have changed OpnLuup's startup.lua to have my location but AltUI shows Chantilly Virginia as my location (I am in California)
What ALTUI shows is a weather location - I don’t know exactly where it gets it from. Simply click on the banner to go to the weather website and select your desired location.
The ACTUAL location used (for sunrise / sunset) is taken from the latitude and longitude settings. The convention, for Vera, is , I believe, NEGATIVE for WEST of the meridian, so you should be using -118, or thereabouts?
I have changed OpnLuup's startup.lua to have my location but AltUI shows Chantilly Virginia as my location (I am in California)
What ALTUI shows is a weather location - I don’t know exactly where it gets it from. Simply click on the banner to go to the weather website and select your desired location.
The ACTUAL location used (for sunrise / sunset) is taken from the latitude and longitude settings. The convention, for Vera, is , I believe, NEGATIVE for WEST of the meridian, so you should be using -118, or thereabouts?[/quote]
First of Thanks for this Virtual Vera I stumbled upon it tonight and I’m having fun so far but the ALTUI is not coming up after boot. I even removed the MYS and VeraBridge just in case that was the hangup. I can access the webpage for calling up user_data, etc. The images come up when called like in the tutorial as well. I tink this is something with apache? but not sure what to do.
Oh good, I’m glad you found it. I nearly called it ‘Virtual Vera’ before then worrying about trademarks, etc.
...but the ALTUI is not coming up after boot. I even removed the MYS and VeraBridge just in case that was the hangup. I can access the webpage for calling up user_data, etc. The images come up when called like in the tutorial as well. I tink this is something with apache? but not sure what to do.
OK, this is a real problem - you're the second one to find this problem: it was @amg0 (of ALTUI fame) who ran into this too, but that was running in a virtual machine environment, so I put it down to that.
[code]2015-08-17 00:10:00.215 openLuup.server:: /J_ALTUI_uimgr.js tcp{client}: 0x850908 6
2015-08-17 00:10:00.216 openLuup.server:: error 'timeout' sending 379225 bytes to tcp{client}: 0x850908 11
[/code]
why is this happening?
There’s two theories so far:
[ol][li]it genuinely IS a timeout on the transaction,[/li]
[li]it is length-related, perhaps a buffer length problem.[/li][/ol]
Your observation is extremely helpful in underlining the issue, but I’ve not been able to replicate it on Debian or Open-WRT, although neither of these are running Apache. I also run on a Mac which does use that and doesn’t show the problem either.
However, the transaction which is failing is to the port 3480 server - which is definitely an openLuup problem, and seems to be file-length related. The file J_ALTUI_uimgr.js is the big one in the ALTUI package - I don’t know if there’s an easy way to split it, I’m not in any way JavaScript competent.
If anyone has suggestions or insights into this, I’m very happy to listen. But I will anyway pursue my own investigations.
Oh good, I’m glad you found it. I nearly called it ‘Virtual Vera’ before then worrying about trademarks, etc.
...but the ALTUI is not coming up after boot. I even removed the MYS and VeraBridge just in case that was the hangup. I can access the webpage for calling up user_data, etc. The images come up when called like in the tutorial as well. I tink this is something with apache? but not sure what to do.
OK, this is a real problem - you're the second one to find this problem: it was @amg0 (of ALTUI fame) who ran into this too, but that was running in a virtual machine environment, so I put it down to that.
[code]2015-08-17 00:10:00.215 openLuup.server:: /J_ALTUI_uimgr.js tcp{client}: 0x850908 6
2015-08-17 00:10:00.216 openLuup.server:: error 'timeout' sending 379225 bytes to tcp{client}: 0x850908 11
[/code]
why is this happening?
There’s two theories so far:
[ol][li]it genuinely IS a timeout on the transaction,[/li]
[li]it is length-related, perhaps a buffer length problem.[/li][/ol]
Your observation is extremely helpful in underlining the issue, but I’ve not been able to replicate it on Debian or Open-WRT, although neither of these are running Apache. I also run on a Mac which does use that and doesn’t show the problem either.
However, the transaction which is failing is to the port 3480 server - which is definitely an openLuup problem, and seems to be file-length related. The file J_ALTUI_uimgr.js is the big one in the ALTUI package - I don’t know if there’s an easy way to split it, I’m not in any way JavaScript competent.
If anyone has suggestions or insights into this, I’m very happy to listen. But I will anyway pursue my own investigations.
Sorry for the inconvenience.[/quote]
AK,
I wonder about the client:setoption(option [, value]) or client:settimeout(value [, mode]) API documented in LuaSocket: TCP/IP support
especially the ‘linger’ option ,or the ‘b’ and ‘t’ timeout options…
[quote=“amg0, post:117, topic:187412”]I wonder about the client:setoption(option [, value]) or client:settimeout(value [, mode]) API documented in LuaSocket: TCP/IP support
especially the ‘linger’ option ,or the ‘b’ and ‘t’ timeout options…[/quote]
Yes, good steer. I’m wondering about that too. I thought I had set a 10 second timeout, but looking at it right now. Thanks!
Sorry I missed your original post. Yes, that’s all you need to do. But you must make sure that your DESTINATIONS ip:port match that port number.
This is perhaps more of a DataYours question than an openLuup one, but I see the dilemma. Maybe better for future similar queries to ask in the “DataYours on Rpi” thread?