We have moved at community.getvera.com

Author Topic: Systems to run at.. share experiences  (Read 24231 times)

Offline nullx8

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +9/-3
  • Trouble !
Systems to run at.. share experiences
« on: October 27, 2015, 11:04:46 pm »
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 ?
1 VeraLite, 2 RaspberryPI, Harmony Remote, openLuup, 85 Devices, 34Nodes, 63 Triggers, 49 Scenes

Offline jcsv75

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +3/-0
Re: Systems to run at.. share experiences
« Reply #1 on: November 06, 2015, 03:27:01 pm »
After several tries, today I succesfully installed openLuup on two machines  :D

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

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

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: Systems to run at.. share experiences
« Reply #2 on: November 06, 2015, 05:46:26 pm »
After several tries, today I succesfully installed openLuup on two machines  :D
Delighted to hear it.

Quote
...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?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline jcsv75

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +3/-0
Re: Systems to run at.. share experiences
« Reply #3 on: November 07, 2015, 12:55:54 am »

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?


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

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Systems to run at.. share experiences
« Reply #4 on: November 07, 2015, 02:52:10 pm »
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...


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?


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
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Systems to run at.. share experiences
« Reply #5 on: November 09, 2015, 02:54:29 pm »
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 !
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Systems to run at.. share experiences
« Reply #6 on: November 09, 2015, 03:59:44 pm »
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.

Code: [Select]
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:
Code: [Select]
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
« Last Edit: November 09, 2015, 04:04:23 pm by CudaNet »
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: Systems to run at.. share experiences
« Reply #7 on: November 09, 2015, 04:05:11 pm »
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:

Code: [Select]
# 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.)
« Last Edit: November 09, 2015, 04:06:44 pm by akbooer »
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Systems to run at.. share experiences
« Reply #8 on: November 09, 2015, 04:25:47 pm »
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...

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:

Code: [Select]
# 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.)
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Systems to run at.. share experiences
« Reply #9 on: November 10, 2015, 06:47:27 pm »
Update: Guide and Turn-key images moved to a new thread...
http://forum.micasaverde.com/index.php/topic,36861.0.html
« Last Edit: March 17, 2016, 03:29:23 pm by CudaNet »
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: Systems to run at.. share experiences
« Reply #10 on: November 10, 2015, 06:56:55 pm »
Just how many machines DO you have access to?!

Great work though!
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Systems to run at.. share experiences
« Reply #11 on: November 10, 2015, 10:29:27 pm »
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 !

Just how many machines DO you have access to?!

Great work though!
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Systems to run at.. share experiences
« Reply #12 on: November 12, 2015, 05:21:00 pm »
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: [Select]

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

Code: [Select]
# 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
« Last Edit: January 20, 2016, 06:59:02 pm by CudaNet »
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Systems to run at.. share experiences
« Reply #13 on: November 13, 2015, 04:50:46 pm »
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.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: Systems to run at.. share experiences
« Reply #14 on: November 13, 2015, 05:43:31 pm »
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.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.