You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cross...@googlegroups.com
Is it possible to pass in a user command line option when starting crossbar, such as crossbar start MYOPTION and have the ability to read MYOPTION during runtime?
If so, can someone point me to the documentation?
I have an application that communicates with Arduino's over serial. I can hardcode the serial port (/dev/ttyACM0) and that works fine for my configuration, but is there a mechanism whereby a user can provide their specific port designator before starting up crossbar?
Tobias Oberstein
unread,
Mar 17, 2015, 7:24:34 PM3/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cross...@googlegroups.com
Hi Alan,
Not from environment variables.
What you can do is provide custom configuration to app components
started from Crossbar.io via node configuration
This is for Python components (running in a worker of type "router" or
"container"). A similar thing exist for workers of type "guest". In this
case, custom configuration parts are serialized to JSON and provided to
the worker on stdin.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cross...@googlegroups.com
Tobias, Thanks for the quick answer. What I may need to do in the future is provide a script that will allow the user to enter command line options, and then have the script modify config.json "extras" before starting crossbar. My application is probably outside of the realm of intended use for crossbar, so I apologize for these "weird" questions.