You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get Transformer running here's roughly the steps to follow:
Install the dependencies as listed in the README. To avoid 'contaminating' your system I usually install everything in a subdirectory of the repo and set the relevant LD_LIBRARY_PATH, LUA_PATH and LUA_CPATH to the right values. I have a script for that but it's unfortunately only suitable for internal use.
Build the Lua C modules from this repo and make them available in your LUA_CPATH.
Make the ./transformer/ directory available in your LUA_PATH (copy, symlink, ...).
Make the files in ./lib/src/lua-datamodel/ available in your LUA_PATH.
Ideally create a first data model mapping file with the root object. The generator.sh script in the generator directory can be used to generate a skeleton mapping file for an object; afterwards you have to add the logic on how everything maps to the platform. I've just commited a mapping file for the Device root object to get things started.
As can be seen in transformer/server/main.lua these mappings are expected in /usr/share/transformer/mappings/ by default but this can be overridden in the UCI config that Transformer reads on startup. If you don't want to bother with creating such a config (it's optional) you can always change the default values in main.lua.
With all this in place you can execute transformer/server/main.lua. To interact with the daemon you can execute cli/cli.lua in a different terminal and issue commands there.
I realize this is far from ideal to get up and running quickly. I know how to improve this drastically but I lack the time, and I'm not actively working on Transformer anymore. But I'm gonna try my best...
I want to use your application to transform uci format and cwmpd format
The text was updated successfully, but these errors were encountered: