Is there any API access/Lua options to allow object creation
Example you have a bunch of loco configurations/function list
( jmri xml roster export for example )
Can i create a script that will allow to create that loco incl DCC address and it’s associated functions?
Suspect the api/coding is well hidden from normal users and a very valid answer is NO, dont be lazy go type stuff in for a couple of hours
Ofcourse it would be my problem to transform my input into the desired format for TrainTastic and learn some Lua
Rationale: if there was an easy option to export/import stuff, that may help users bite the bullet and transition a little bit easier.
No there isn’t, the Lua scripting engine is a sandboxed environment and has no access to the file system as that would be a security risk.
An import function however that makes sense, it would be nice to provide that for new users. Are you willing to share your roster xml file? (Sending it via a PM is also fine.)
@reinder the roster file is a jmri export masquerading as a zipfile
containing ( on superficial inspection ) :
roster.xml <- seems to be overview of all loco's and functions
roster/<loco.xml> <- loco settings xml detail cv's and fuctions
rooster/<loco.[jpg|png| ] <- loco image
However discourse does not allow zip file uploads
Can i maybe dropbox it or do you have a different idea?