Systems to run at.. share experiences

i have tested openluup now on a few platforms (apple and linux based)

it turned out that akbooer’s statement about ‘almost instant communication’ is correct.
the lag is mostly comming from the operatingsystem and platform.

as example on a Raspberry B … a “useless machine test” (turning off a light after it has been turned on)
takes some times 6 secounds.
but on a Raspberry B+ its below 500ms … (even while kodi is playing a HD movie)

sadly i could not find a lua5.1 package for Openelec … which is bad since a openelec (living room OS) would be just perfect to run somethings like openLuup.

how is your experience ?

After several tries, today I succesfully installed openLuup on two machines :smiley:

[ul][li]1st install on a Ubuntu 15.10 Virtual box running on my Synology Nas with PHP Virtualbox [/li]
[li]2nd install on a Debian Chroot install which is a package running natively on Synology[/li][/ul]

Both installs are working fine, however I prefer the virtual box experience because I can easily make backup copies if I need to start again.

A big thanks! to Cudanet who shared his installation guide with me. Without his help I would never have come this far. Thanks also to Akboer and Mg0 ofcourse for their work on openLuup and AltUI.

Have a great weekend,

Jacques

Delighted to hear it.

...I prefer the virtual box experience because I can easily make backup copies if I need to start again.

Fair enough, but I’m surprised. Backing up openLuup is as simple as copying the user_data.json file (you can even do it when it’s running.) Starting a saved system is a one-liner to openLuup_reload with that file as a parameter.

I regularly switch between configurations during development - running a single device for testing and then switching to a system bridged to a remote Vera. It takes about 5 seconds of elapsed time. How does it go on a virtual box?

[quote=“akbooer, post:3, topic:189409”]Fair enough, but I’m surprised. Backing up openLuup is as simple as copying the user_data.json file (you can even do it when it’s running.) Starting a saved system is a one-liner to openLuup_reload with that file as a parameter.

I regularly switch between configurations during development - running a single device for testing and then switching to a system bridged to a remote Vera. It takes about 5 seconds of elapsed time. How does it go on a virtual box?[/quote]

I am still very new to openLuup, I have only had it up and running for less than 24 hrs -:), so I did’nt know about the configuration backup option you mentioned. Will play with that more this weekend.

Making a snapshot with Virtual box takes a few seconds and as an utter Linux noob it makes me feel ‘safe’ to be able to go back in time if anything went wrong.

Kind regards,

Jacques

We use Oracle’s Virtual Box at work and it works great. When I first installed openLuup, I did so on a Ubuntu Server running on Windows OS within VirtualBox. I was able to clone it to a thumb drive and take it home to work on. We use it for exactly the reasons you mentioned. Once we have a stable environment (OS and application) we clone it off and version it. Now we have a means to isolate any incremental changes which may caused the issues.

Glad to hear you’re up and running…

[quote=“jcsv75, post:4, topic:189409”][quote=“akbooer, post:3, topic:189409”]Fair enough, but I’m surprised. Backing up openLuup is as simple as copying the user_data.json file (you can even do it when it’s running.) Starting a saved system is a one-liner to openLuup_reload with that file as a parameter.

I regularly switch between configurations during development - running a single device for testing and then switching to a system bridged to a remote Vera. It takes about 5 seconds of elapsed time. How does it go on a virtual box?[/quote]

I am still very new to openLuup, I have only had it up and running for less than 24 hrs -:), so I did’nt know about the configuration backup option you mentioned. Will play with that more this weekend.

Making a snapshot with Virtual box takes a few seconds and as an utter Linux noob it makes me feel ‘safe’ to be able to go back in time if anything went wrong.

Kind regards,

Jacques[/quote]

Anyone tried to install openLuup on openWRT ? I was just curious and may try an install later this week once I finish out the documentation on plugins.
Thoughts ? Warnings… Don’t let me wander into the woods alone now !

Had some free time. This is openLuup 5.5 installed on Oracle VirtualBox [5.06] in a Windows environment.
The VDI is openWRT Attitude Adjustment 12.09.

Installed all the necessary modules and I have to say, install was pretty easy. Will be very easy to adapt the install guide to this.
I’ll install the usual suspects when I get a chance and see how well they operate in their native environment… openWRT is available for Raspberry Pi2 and of course will run on an x86.

root@OpenWrt:/vera/cmh-ludl# cat /etc/banner
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (12.09, r36088)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/vera/cmh-ludl#

openLuup log data:

2015-11-09 20:57:18.002   :: openLuup STARTUP :: 
2015-11-09 20:57:18.002   openLuup.init::      version 2015.11.01  @akbooer
2015-11-09 20:57:18.006   openLuup.scheduler:: version 2015.10.15  @akbooer
2015-11-09 20:57:18.006   openLuup.server::    version 2015.11.01  @akbooer
2015-11-09 20:57:18.007   openLuup.plugins::   version 2015.10.16  @akbooer
2015-11-09 20:57:18.008   openLuup.scenes::    version 2015.10.26  @akbooer
2015-11-09 20:57:18.008   openLuup.chdev::     version 2015.11.01  @akbooer
2015-11-09 20:57:18.009   openLuup.io::        version 2015.10.15  @akbooer
2015-11-09 20:57:18.009   openLuup.luup::      version 2015.11.01  @akbooer
2015-11-09 20:57:18.010   openLuup.rooms::     version 2015.10.15  @akbooer
2015-11-09 20:57:18.010   openLuup.requests::  version 2015.10.30  @akbooer
2015-11-09 20:57:18.010   luup.create_device:: [1] urn:schemas-micasaverde-com:device:ZWaveNetwork:1 / no-implementation-file
2015-11-09 20:57:18.010   luup.create_device:: [2] urn:schemas-micasaverde-com:device:SceneController:1 / no-implementation-file
2015-11-09 20:57:18.010   openLuup.init:: loading configuration user_data.json
2015-11-09 20:57:18.010   openLuup.init:: loading user_data json...
2015-11-09 20:57:18.012   openLuup.init:: loading rooms...
2015-11-09 20:57:18.012   openLuup.init:: ...room loading completed
2015-11-09 20:57:18.012   openLuup.init:: loading devices...
2015-11-09 20:57:18.012   openLuup.init:: [1] 'ZWave', urn:schemas-micasaverde-com:device:ZWaveNetwork:1
2015-11-09 20:57:18.012   openLuup.init:: [2] '_SceneController', urn:schemas-micasaverde-com:device:SceneController:1
2015-11-09 20:57:18.013   openLuup.init:: [3] 'ALTUI', urn:schemas-upnp-org:device:altui:1
2015-11-09 20:57:18.023   openLuup.init:: [4] 'openLuup:Extensions', openLuup:Extensions
2015-11-09 20:57:18.024   openLuup.init:: loading scenes...
2015-11-09 20:57:18.024   openLuup.init:: number of scenes = 0
2015-11-09 20:57:18.024   openLuup.init:: ...scene loading completed
2015-11-09 20:57:18.024   openLuup.init:: loading installed plugin info...
2015-11-09 20:57:18.024   openLuup.init:: ...user_data loading completed
2015-11-09 20:57:18.024   openLuup.init:: running _openLuup_STARTUP_
2015-11-09 20:57:18.024   openLuup.init:: startup completed
2015-11-09 20:57:18.024   openLuup.server:: starting HTTP server on 172.16.5.127:3480 tcp{server}: 0x83fc8fc
2015-11-09 20:57:18.024   openLuup.scheduler:: starting
2015-11-09 20:57:18.024   openLuup.scheduler:3: device startup
2015-11-09 20:57:18.024   luup_log:3: ALTUI: initstatus(3) starting version: v0.96
2015-11-09 20:57:18.024   openLuup.scheduler:3: device startup completed: status=nil, msg=nil, name=nil
2015-11-09 20:57:18.024   openLuup.scheduler:4: device startup
2015-11-09 20:57:18.025   luup.variable_set:4: 4.urn:upnp-org:serviceId:altui1.DisplayLine1 was: Uptime 0 now: Uptime 0 #hooks:0
2015-11-09 20:57:18.025   luup.variable_set:4: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was:  now:  #hooks:0
2015-11-09 20:57:18.025   openLuup.scheduler:4: device startup completed: status=nil, msg=synchronising in 42.0 seconds, name=openLuup:Extensions
2015-11-09 20:57:19.028   luup_log:3: ALTUI: startupDeferred, called on behalf of device:3
2015-11-09 20:57:19.029   luup.variable_set:3: 3.urn:upnp-org:serviceId:altui1.Version was: v0.96 now: v0.96 #hooks:0
2015-11-09 20:57:19.029   luup.set_failure:3: status = 0
2015-11-09 20:57:19.029   luup.register_handler:3: global_function_name=myALTUI_Handler, request=lr_ALTUI_Handler
2015-11-09 20:57:19.031   luup.call_action:3: 0.urn:micasaverde-com:serviceId:HomeAutomationGateway1.RunLua 
2015-11-09 20:57:19.031   luup.register_handler:0: global_function_name=ALTUI_LuaRunHandler, request=lr_ALTUI_LuaRunHandler
2015-11-09 20:57:19.031   luup_log:3: ALTUI: startup completed
2015-11-09 20:57:19.188   openLuup.server:: new client connection: tcp{client}: 0x8407464
2015-11-09 20:57:19.189   openLuup.server:: /data_request?id=lu_status2&output_format=json&DataVersion=102262060&Timeout=60&MinimumDelay=1500&_=1447102296918 tcp{client}: 0x8407464
2015-11-09 20:57:20.694   openLuup.server:: request completed (8774 bytes, 1 chunks, 1505 ms) tcp{client}: 0x8407464
2015-11-09 20:57:20.697   openLuup.server:: /data_request?id=user_data&output_format=json&DataVersion=102262028&_=1447102296919 tcp{client}: 0x8407464
2015-11-09 20:57:20.704   openLuup.server:: request completed (16819 bytes, 2 chunks, 6 ms) tcp{client}: 0x8407464
2015-11-09 20:57:22.907   openLuup.server:: /data_request?id=lu_status2&output_format=json&DataVersion=102637050&Timeout=60&MinimumDelay=1500&_=1447102296920 tcp{client}: 0x8407464
2015-11-09 20:57:29.351   openLuup.server:: new client connection: tcp{client}: 0x84003bc
2015-11-09 20:57:29.351   openLuup.server:: /data_request?id=lr_ALTUI_Handler&command=oscommand&oscommand=tail%20-n%20500%20%2Fetc%2Fcmh-ludl%2FLuaUPnP.log&_=1447102296921 tcp{client}: 0x84003bc
2015-11-09 20:57:29.351   luup_log:3: ALTUI: ALTUI_Handler: request is: lr_ALTUI_Handler
2015-11-09 20:57:29.351   luup_log:3: ALTUI: ALTUI_Handler: parameters is: {"command":"oscommand","oscommand":"tail -n 500 /etc/cmh-ludl/LuaUPnP.log","_":"1447102296921"}
2015-11-09 20:57:29.351   luup_log:3: ALTUI: ALTUI_Handler: outputformat is: null

You are not alone!

Yes, I’ve installed it on an Arduino Yun (which, aside from an actual Arduino has a 400Mhz system-on-a-chip running Open-WRT.)

It works really well, and is half of my ‘production’ HA system, running a MySensors network, a Netatmo Plugin, a complete suite of DataYours archiving data, a Sonos, and, of course, a VeraBridge to one of my real Veras.

It runs in about 10Mbytes and takes on average 5% of the CPU.

open-WRT is mentioned on page 4 of the User Guide, but essentially Lua 5.1 was already installed, so all I needed was:

# opkg update 
# opkg install luasocket 
# opkg install luafilesystem
# opkg install luasec

The latest openLuup requires LuaFileSystem (to make it fully portable to a Windows machine - without VM.)

This is very encouraging… You know, you had me at Sonos ! That still bothers … Well, you know…
OK, I’ll move forward with this and thanks for the confidence boost !

Oh and LFS, I believe, was necessary for MultiString so it was on my list of things needed to install…

[quote=“akbooer, post:8, topic:189409”]You are not alone!

Yes, I’ve installed it on an Arduino Yun (which, aside from an actual Arduino has a 400Mhz system-on-a-chip running Open-WRT.)

It works really well, and is half of my ‘production’ HA system, running a MySensors network, a Netatmo Plugin, a complete suite of DataYours archiving data, a Sonos, and, of course, a VeraBridge to one of my real Veras.

It runs in about 10Mbytes and takes on average 5% of the CPU.

open-WRT is mentioned on page 4 of the User Guide, but essentially Lua 5.1 was already installed, so all I needed was:

# opkg update 
# opkg install luasocket 
# opkg install luafilesystem
# opkg install luasec

The latest openLuup requires LuaFileSystem (to make it fully portable to a Windows machine - without VM.)[/quote]

Update: Guide and Turn-key images moved to a new thread…
[url=http://forum.micasaverde.com/index.php/topic,36861.0.html]http://forum.micasaverde.com/index.php/topic,36861.0.html[/url]

Just how many machines DO you have access to?!

Great work though!

Just what’s installed in the wiring closet… OK, I got a little carried away with the Jetway’s…
And you know what, I have my Sonos systems… Totally worth it !

[quote=“akbooer, post:11, topic:189409”]Just how many machines DO you have access to?!

Great work though![/quote]

OK, here is an installation of OpenWRT (Chaos Calmer) on a Raspberry Pi 2. I’m also going to include a ‘beta’ installation guide.
I’ve personally tested this (obviously) so it should be good to go. I just need a ‘fresh’ set of eyes to go over it.

For any discrepancies/recommendations etc, please send me a PM.


root@OpenWrt:/# cat /etc/banner
			  _____
.-----.-----.-----.-----.|     |_.--.--.--.--.-----.
|  _  |  _  |  -__|     ||       |  |  |  |  |  _  |
|_____|   __|_____|__|__||_______|_____|_____|   __|
      |__|  F R E E D O M  F R O M  V E R A  |__|   
-----------------------------------------------------
OpenWRT - CHAOS CALMER (15.05)
Powered by Raspberry Pi 2
-----------------------------------------------------
* 1 1/2 oz Gin            Shake with a glassful
* 1/4 oz Triple Sec       of broken ice and pour
* 3/4 oz Lime Juice       unstrained into a goblet.
* 1 1/2 oz Orange Juice
* 1 tsp. Grenadine Syrup
-----------------------------------------------------
root@OpenWrt:/#

Edit: I’ll update this document when I have an opportunity, however I thought it worth mentioning. I discovered that the log directory [/etc/cmh-ludl] was removed after each boot cycle performed. I don’t know why (perhaps someone can post another solution), but to maintain persistence (this log is written to by AltUI) I patched my /etc/rc.local file. Logs are now written and can be viewed within AltUI.

Edit: Released updated guide, openWRT_r02.txt

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

mkdir /tmp/log/cmh

sleep 20
cd /etc/cmh-ludl
./openLuup_reload

exit 0

Sort of an extension of my previous post.

I started to assemble two plugin kits (files/icons and install guide) for install on OpenWrt. I should have something Saturday or Sunday for people to test. I’d like to provide Google Calendar 3 for events (push to calendar) and schedules (trigger on calendar) as well as IOS Push for notifications. These seem to be the most involved so far with exception of MCV’s Philips Hue and Nest which will follow later next week.

Installing and running these in an OpenWrt environment makes things MUCH easier than the Ubuntu. I can’t speak to the other flavors of Linux but so far my preference is OpenWrt.

That’s great, thanks for the update.

I haven’t tried Ubuntu, by in my experience Debian is as easy to configure as Open-WRT.

You’re very welcome !

I really missed using Linux and it’s been a great experience trying all of these flavors. I did have issues with Ubuntu Mate and memory. I’d start out with 511 meg of ram then 24 hours later I’d have 80-90 left over. I suspect maybe the Mate UI. OpenWRT has been a huge improvement. These are the numbers with it running all day…

             total         used         free       shared      buffers
Mem:        953500        36372       917128          884          760
-/+ buffers:              35612       917888
Swap:            0            0            0
I haven't tried Ubuntu, by in my experience Debian is as easy to configure as Open-WRT.

And here is an install package for IOS Push. I’ll see if I can get the Google Calendar [3] out today, if not then I’ll definitely put it out tomorrow.
Edit: I’ll be revising the package to patch the file: D_IosPush.xml

<staticJson>D_IosPush_UI7.json</staticJson> 

[quote=“CudaNet, post:13, topic:189409”]OK, here is an installation of OpenWRT (Chaos Calmer) on a Raspberry Pi 2. I’m also going to include a ‘beta’ installation guide.
I’ve personally tested this (obviously) so it should be good to go. I just need a ‘fresh’ set of eyes to go over it.

For any discrepancies/recommendations etc, please send me a PM.

[code]

root@OpenWrt:/# cat /etc/banner
_____
.-----.-----.-----.-----.| |.–.–.–.–.-----.
| _ | _ | -| || | | | | | _ |
|
| |||||
______||| |
|
| F R E E D O M F R O M V E R A |__|

OpenWRT - CHAOS CALMER (15.05)
Powered by Raspberry Pi 2

  • 1 1/2 oz Gin Shake with a glassful
  • 1/4 oz Triple Sec of broken ice and pour
  • 3/4 oz Lime Juice unstrained into a goblet.
  • 1 1/2 oz Orange Juice
  • 1 tsp. Grenadine Syrup

root@OpenWrt:/#

[/code][/quote]

oooooh! … like the custom header !!

I felt it added a bit of panache !

My impression is that we shouldn’t need a special version of crc32.lua if base64.lua works unchanged, which it does. This may have been an early fix, not now required. I’ll check.