Comments (8)
The default config is the last option which is used when all other options have failed. By default it will look for config files in the following order:
_conf_file_path = os.path.join(os.environ['HOME'], ".mavcesium.ini")
_conf_file_path = os.path.join(os.environ['LOCALAPPDATA'], "MAVProxy", "mavcesium.ini")
- If the above 2 fail it will load the default config
mavcesium_default.ini
from the MAVProxy directory
https://github.com/SamuelDudley/MAVCesium/blob/master/app/config.py#L18
Try adding a custom config file called .mavcesium.ini
(note the leading dot) to your users home directory. It should be used over the default config file when you next run MAVCesium. Note that the path of the config file which is used is printed to the MAVProxy console when MAVCesium loads.
This behaviour does not fix the issue of running multiple instances. To support that feature a config file path will need to be supplied at launch.
from mavcesium.
Having a bit more of a think about this... I could make a two step process to start the server from MAVProxy.
- Import the module. loads default config but does not start the server.
- User enters optional config path mavcesium load path_to_config
- User runs the server using the new config file. mavcesium start
Any thoughts?
from mavcesium.
I think that sounds a bit complex, also won't allow auto-starting. Is there any way of passing an extra argument to mavproxy, that can then be used by mavcesium? That way you could specify the desired config to mavproxy at start.
from mavcesium.
I dont think that functionality exists at the moment but would be pretty simple to add. I'll work on a MAVProxy PR to add it.
from mavcesium.
@fnoop I would be grateful if you could +1 the MAVProxy PR: ArduPilot/MAVProxy#452
from mavcesium.
Now that mavcesium is standalone, could a specific config file location parameter be added?
from mavcesium.
I have pushed some changes to #35 which allows the application to be ran with --configuration="/somepath/config.ini"
. This should solve your problem :)
from mavcesium.
Works great, thanks :)
from mavcesium.
Related Issues (20)
- Websocket address logic faulty HOT 4
- Add support for streaming video HOT 14
- PX4 Support HOT 3
- README.md is out of date and live demo is down HOT 2
- Make application independent of (but still compatible with) MAVProxy HOT 14
- Add SERVER_PREFIX config option to allow reverse proxy HOT 19
- app/mavcesium_default.ini should be in .gitignore HOT 5
- Possible to run SITL HOT 5
- Editable HTML and JS files HOT 6
- Standalone mavcesium uses a lot of resource HOT 22
- Support more than one vehicle in the same 'world'
- Support touch events for zooming and WP control
- Python bindings for C++ MAVLink processing HOT 2
- Does not retry for mavlink connection HOT 1
- Add pip installer for standalone server
- ConfigParser instance has no attribute 'read_file' HOT 3
- License Question HOT 2
- 3D map not loading
- Error running module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mavcesium.