Added ability to supply device arguments as parameter to applications.
Change adressing #140 enhancement request.
It is possible to select rtl-sdr dongle:
-with device index through commanline parameter: `--args="rtl=1"` (where 1 is the device index). Caution: device index is not unique identifier and it changes on each connection of the dongle.
-with devices serial number, the commandline option in this case has following form: `--args="rtl=00000001"` (where 00000001 is the serial number).
NOTE: You can set the serial number with use of:
```sh
rtl_eeprom -s <serial_number>
```
diff --git a/apps/grgsm_livemon.grc b/apps/grgsm_livemon.grc
index fc740fa..22c30b0 100644
--- a/apps/grgsm_livemon.grc
+++ b/apps/grgsm_livemon.grc
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
-<?grc format='1' created='3.7.10'?>
+<?grc format='1' created='3.7.8'?>
<flow_graph>
<timestamp>Sat Dec 13 10:49:59 2014</timestamp>
<block>
@@ -9,6 +9,10 @@
<value>Piotr Krysik</value>
</param>
<param>
+ <key>alias</key>
+ <value></value>
+ </param>
+ <param>
<key>window_size</key>
<value>2280, 1024</value>
</param>
@@ -41,10 +45,6 @@
<value>qt_gui</value>
</param>
<param>
- <key>hier_block_src_path</key>
- <value>.:</value>
- </param>
- <param>
<key>id</key>
<value>grgsm_livemon</value>
</param>
@@ -53,18 +53,10 @@
<value>0</value>
</param>
<param>
- <key>qt_qss_theme</key>
- <value></value>
- </param>
- <param>
<key>realtime_scheduling</key>
<value></value>
</param>
<param>
- <key>run_command</key>
- <value>{python} -u {filename}</value>
- </param>
- <param>
<key>run_options</key>
<value>prompt</value>
</param>
@@ -271,6 +263,49 @@
</param>
</block>
<block>
+ <key>parameter</key>
+ <param>
+ <key>alias</key>
+ <value></value>
+ </param>
+ <param>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(872, 11)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>id</key>
+ <value>args</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>Device Arguments</value>
+ </param>
+ <param>
+ <key>short_id</key>
+ <value></value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>string</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>""</value>
+ </param>
+ </block>
+ <block>
<key>blocks_rotator_cc</key>
<param>
<key>alias</key>
@@ -960,7 +995,7 @@
</param>
<param>
<key>_coordinate</key>
- <value>(880, 11)</value>
+ <value>(1016, 11)</value>
</param>
<param>
<key>_rotation</key>
@@ -2601,7 +2636,7 @@
</param>
<param>
<key>args</key>
- <value></value>
+ <value>args</value>
</param>
<param>
<key>_enabled</key>
@@ -2728,7 +2763,7 @@
</param>
<param>
<key>_coordinate</key>
- <value>(16, 75)</value>
+ <value>(16, 115)</value>
</param>
<param>
<key>_rotation</key>