Logging lines
-
The parameters appears to reflect the actuality:
Logfile Incoming true Lines 2000 Name logs/LuaUPnP.log Versions 5
C
-
@catmanv2 said in Logging lines:
Can't see how to attach files in pm
You can email it to: openLuup at icloud.com
-
@catmanv2 said in Logging lines:
The parameters appears to reflect the actuality:
Then your Startup Code is wrong, or being changed somewhere else. You don’t have any residual edits left over from trying to fix this earlier?
@akbooer said in Logging lines:
@catmanv2 said in Logging lines:
The parameters appears to reflect the actuality:
Then your Startup Code is wrong, or being changed somewhere else. You don’t have any residual edits left over from trying to fix this earlier?
I don't think so. Can't see what else I would have done, or where I would have done it?
-- You can personalise the installation by changing these attributes, -- which are persistent and may be removed from the Startup after a reload. local attr = luup.attr_set ("latitude", 51.76) local attr = luup.attr_set ("City_description", Harlow) local attr = luup.attr_set ("longitude", 0.13) -- Geographical location attr ("City_description", "Harlow") attr ("Country_description", "UNITED KINGDOM") attr ("Region_description", "England") attr ("latitude", "51.76") attr ("longitude", "0.13") -- other parameters attr ("TemperatureFormat", "C") attr ("PK_AccessPoint", "88800000") attr ("currency", "£") attr ("date_format", "dd/mm/yy") attr ("model", "Not a Vera") attr ("timeFormat", "24hr") luup.attr_set ("openLuup.Logfile.Lines", 20000) -- Any other startup processing may be inserted here... luup.log "startup code completed"
Do I need to move the line to about the 'startup code completed?
C
-
This would rather explain it...
2020-12-08 22:41:12.859 openLuup.context_switch:: ERROR: [dev #0] [string "_openLuup_STARTUP_"]:9: attempt to call local 'attr' (a nil value) 2020-12-08 22:41:12.859 openLuup.init:: ERROR: [string "_openLuup_STARTUP_"]:9: attempt to call local 'attr' (a nil value)
You have a syntax error, and you’re not yet using the startup line I recommended.
-
I'm still getting that error:
Startup code:-- You can personalise the installation by changing these attributes, -- which are persistent and may be removed from the Startup after a reload. -- Geographical location attr ("latitude", 51.76) attr ("City_description", Harlow) attr ("longitude", 0.13)
And in the log
2020-12-09 08:38:16.349 openLuup.context_switch:: ERROR: [dev #0] [string "_openLuup_STARTUP_"]:7: attempt to call global 'attr' (a nil value) 2020-12-09 08:38:16.349 openLuup.init:: ERROR: [string "_openLuup_STARTUP_"]:7: attempt to call global 'attr' (a nil value)
Line 7 is
attr ("latitude", 51.76)
Thanks!
C