openLuup log files - LuaUPnP.log and LuaUPnP_startup.log
-
The code above before it is reformatted has ", at the very end:
Any other startup processing may be inserted here...\nluup.log "startup code completed"\n\n",
the 176 line above is inside the user_data file and every parameter is separated by "," . Following some lines around 176 :
"Region_description":"Lazio",
"ShutdownCode":"",
"StartupCode":"\n-- You can personalise the installation by changing these attributes,\n-- which are persistent and may be removed from the Startup after a reload.\nlocal attr = luup.attr_set\n\n-- Geographical location\nattr ("City_description", "Rome")\nattr ("Country_description", "Italy")\nattr ("Region_description", "Lazio")\nattr ("latitude", "51.48")\nattr ("longitude", "0.0")\n\n-- other parameters\nattr ("TemperatureFormat", "C")\nattr ("PK_AccessPoint", "99000007")\nattr ("currency", "£")\nattr ("date_format", "dd/mm/yy")\nattr ("model", "Not a Vera")\nattr ("timeFormat", "24hr")\n\n-- Any other startup processing may be inserted here...\nluup.log "startup code completed"\n\n",
"TemperatureFormat":"C",
"ThousandsSeparator":",", -
Yes, this is just part of a larger JSON structure.
You should not be editing the user_data file directly. What does the Startup Lua window actually show?
I am suspecting an invalid non-printable character somewhere. Can you just retype those few lines around the apparent error?
-
Yes, this is just part of a larger JSON structure.
You should not be editing the user_data file directly. What does the Startup Lua window actually show?
I am suspecting an invalid non-printable character somewhere. Can you just retype those few lines around the apparent error?
attached a copy of startup lua
and the few lines around the error :
"Mode":"1",
"ModeSetting":"1:DC*;2:DC*;3:DC*;4:DC*",
"PK_AccessPoint":"99000007",
"Region_description":"Lazio",
"ShutdownCode":"",
"StartupCode":"\n-- You can personalise the installation by changing these attributes,\n-- which are persistent and may be removed from the Startup after a reload.\nlocal attr = luup.attr_set\n\n-- Geographical location\nattr ("City_description", "Rome")\nattr ("Country_description", "Italy")\nattr ("Region_description", "Lazio")\nattr ("latitude", "51.48")\nattr ("longitude", "0.0")\n\n-- other parameters\nattr ("TemperatureFormat", "C")\nattr ("PK_AccessPoint", "99000007")\nattr ("currency", "£")\nattr ("date_format", "dd/mm/yy")\nattr ("model", "Not a Vera")\nattr ("timeFormat", "24hr")\n\n-- Any other startup processing may be inserted here...\nluup.log "startup code completed"\n\n",
"TemperatureFormat":"C",
"ThousandsSeparator":",",
"currency":"£",
"date_format":"dd/mm/yy", -
No, I think that the issue is the unquoted quotes.
Here’s an extract from what I get when printing out part of my user_data file…
attr (\"City_description\", \"Oxford\")\nattr (\"Country_description\"
Double quotes need to be preceded by \ when in JSON strings.
I still don’t understand how it got like this.
-
No, I think that the issue is the unquoted quotes.
Here’s an extract from what I get when printing out part of my user_data file…
attr (\"City_description\", \"Oxford\")\nattr (\"Country_description\"
Double quotes need to be preceded by \ when in JSON strings.
I still don’t understand how it got like this.
-
No, I think that the issue is the unquoted quotes.
Here’s an extract from what I get when printing out part of my user_data file…
attr (\"City_description\", \"Oxford\")\nattr (\"Country_description\"
Double quotes need to be preceded by \ when in JSON strings.
I still don’t understand how it got like this.
in my actual user_data file double quotes are preceded by \.
when I paste the file as text and submit the reply here the \ symbol is eliminated .
Following I paste as code :
"StartupCode":"\n-- You can personalise the installation by changing these attributes,\n-- which are persistent and may be removed from the Startup after a reload.\nlocal attr = luup.attr_set\n\n-- Geographical location\nattr (\"City_description\", \"Rome\")\nattr (\"Country_description\", \"Italy\")\nattr (\"Region_description\", \"Lazio\")\nattr (\"latitude\", \"51.48\")\nattr (\"longitude\", \"0.0\")\n\n-- other parameters\nattr (\"TemperatureFormat\", \"C\")\nattr (\"PK_AccessPoint\", \"99000007\")\nattr (\"currency\", \"£\")\nattr (\"date_format\", \"dd/mm/yy\")\nattr (\"model\", \"Not a Vera\")\nattr (\"timeFormat\", \"24hr\")\n\n-- Any other startup processing may be inserted here...\nluup.log \"startup code completed\"\n\n",
sorry for my error
-
Where do you paste it? In the user_data.json file? Why not just enter it into the Lua Startup editor?