I’m finally taking the plung and trying to get openLuup up and running.
I started following the instructions at
https://github.com/akbooer/openLuup/blob/master/Documentation/20160609%20openLuup%20User%20Guide.pdf
but found that the openLuup_install.lua file, in the documentation, threw lots of errors. So I deleted everything in /etc/cmh-ludl and started again, this time using a different openLuup_install.lua file (see below)
-- first-time download and install of openLuup files from GitHub
local lua = "lua5.1" -- change this to "lua" if required
local x = os.execute
local p = print
p "openLuup_install 2016.06.08 @akbooer"
local http = require "socket.http"
local https = require "ssl.https"
local ltn12 = require "ltn12"
local lfs = require "lfs"
p "getting latest openLuup version tar file from GitHub..."
local _, code = https.request{
url = "https://codeload.github.com/akbooer/openLuup/tar.gz/master",
sink = ltn12.sink.file(io.open("latest.tar.gz", "wb"))
}
assert (code == 200, "GitHub download failed with code " .. code)
p "un-zipping download files..."
x "tar -xf latest.tar.gz"
x "mv openLuup-master/openLuup/ ."
x "rm -r openLuup-master/"
p "getting dkjson.lua..."
_, code = http.request{
url = "http://dkolf.de/src/dkjson-lua.fsl/raw/dkjson.lua?
name=16cbc26080996d9da827df42cb0844a25518eeb3",
sink = ltn12.sink.file(io.open("dkjson.lua", "wb"))
}
assert (code == 200, "GitHub download failed with code " .. code)
p "creating required files and folders"
lfs.mkdir "files"
lfs.mkdir "icons"
local vfs = require "openLuup.virtualfilesystem"
local function add_vfs_file (name)
local f = io.open (name, "wb")
f: write (vfs.read (name))
f: close ()
end
add_vfs_file "index.html"
local reload = "openLuup_reload"
local pathSeparator = package.config:sub(1,1)
if pathSeparator ~= '/' then reload = reload .. ".bat" end
add_vfs_file (reload)
p "initialising..."
x "chmod a+x openLuup_reload"
local s= require "openLuup.server"
local ip = s.myIP or "openLuupIP"
p "downloading and installing AltUI..."
x (lua .. " openLuup/init.lua altui")
x "./openLuup_reload &"
p "openLuup downloaded, installed, and running..."
p ("visit http://" .. ip .. ":3480 to start using the system")
-----
This time things seemed to work. When I attempt to open in a browser with http://:3480 - the redirect is to http://:3480/data_request?id=lr_ALTUI_Handler&command=home#.
This seems correct BUT , all that is displayed is “Waiting Initial Data”. It seems this problem has been reported in the past but without a specific cause / remedy.
A look at the log file does not show anything obviously wrong and http://:3480/data_request?id=exit dutifully closes openLuup and starting it again seems to work ok, but still get the same message.
Attached is a copy of the log file and a directory listing. Any suggestions ?
P.S. have cleaned out the directory and tried to install several times – I had to stop else someone think me crazy for expecting a different outcome :![]()