Re: Error, DVSwitch.ini file not found.. But it's right there?!


sigmazgfx@...
 
Edited

Ok... so I moved the comments down a line on the TXPort and RXPort lines.. it appears that for some reason it doesnt honor the ; comment delimiter

anyway, ran it again and this is what we see..

parseIniFile "$DVSWITCH_INI" "$_MODE" "TXPort"
++ parseIniFile /opt/MMDVM_Bridge/DVSwitch.ini DSTAR TXPort
++ python -
+ _MBTX=32100
parseIniFile "$DVSWITCH_INI" "$_MODE" "RXPort"
++ parseIniFile /opt/MMDVM_Bridge/DVSwitch.ini DSTAR RXPort
++ python -
+ _MBRX=32103
+ '[' '!' -z 32100 ']'
+ sendMessage 'Setting mode to DSTAR'
+ '[' -z 'Setting mode to DSTAR' ']'
+ remoteControlCommand 'message=Setting mode to DSTAR'
+ '[' '!' -z '' ']'
+ PYTHON_ARG='message=Setting mode to DSTAR'
+ python -
+ setAmbeMode DSTAR
+ '[' 1 -eq 0 ']'
+ remoteControlCommand ambeMode=DSTAR
+ '[' '!' -z '' ']'
+ PYTHON_ARG=ambeMode=DSTAR
+ python -
+ setTLVTxPort 32103
+ '[' 1 -eq 0 ']'
+ remoteControlCommand txport=32103
+ '[' '!' -z '' ']'
+ PYTHON_ARG=txport=32103
+ python -
+ setTLVRxPort 32100
+ '[' 1 -eq 0 ']'
+ remoteControlCommand rxport=32100
+ '[' '!' -z '' ']'
+ PYTHON_ARG=rxport=32100
+ python -
+ sleep 1
getTLVPort
++ getTLVPort
++ getABInfoValue tlv rx_port
getABInfoFileName
+++ getABInfoFileName
+++ '[' -z '' ']'
ls -t /tmp/ABInfo_*.json 2>/dev/null | head -1
++++ ls -t /tmp/ABInfo_34001.json
++++ head -1
+++ declare _json_file=/tmp/ABInfo_34001.json
+++ echo /tmp/ABInfo_34001.json
++ declare _json_file=/tmp/ABInfo_34001.json
++ python -
+ TLV_PORT=32100
+ getInfo
+ '[' 0 -eq 0 ']'
+ remoteControlCommand info
+ '[' '!' -z '' ']'
+ PYTHON_ARG=info
+ python -
exit $_ERRORCODE
+ exit 0

./dvswitch.sh mode DSTAR

But .. getEnabledModes is angry now.. 
 
[root@AllstarNode MMDVM_Bridge]# ./dvswitch.sh getEnabledModes
./dvswitch.sh: line 894: configparser: command not found
./dvswitch.sh: line 896: configparser: command not found
./dvswitch.sh: line 898: [: ==: unary operator expected
./dvswitch.sh: line 894: configparser: command not found
./dvswitch.sh: line 896: configparser: command not found
./dvswitch.sh: line 898: [: ==: unary operator expected
./dvswitch.sh: line 894: configparser: command not found
./dvswitch.sh: line 896: configparser: command not found
./dvswitch.sh: line 898: [: ==: unary operator expected
./dvswitch.sh: line 894: configparser: command not found
./dvswitch.sh: line 896: configparser: command not found
./dvswitch.sh: line 898: [: ==: unary operator expected
./dvswitch.sh: line 894: configparser: command not found
./dvswitch.sh: line 896: configparser: command not found
./dvswitch.sh: line 898: [: ==: unary operator expected
 

Join main@DVSwitch.groups.io to automatically receive all group messages.