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.
After several tries, today I succesfully installed openLuup on two machines
[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.
...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.
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.
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#
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:
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:
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?!
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
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.
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
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.