[op25-dev] Re: Success! (almost...)

John Ackermann N8UR jra@febo.com [op25-dev] op25-dev at yahoogroups.com
Sun Jul 16 19:44:01 UTC 2017

Following up on this... Max is correct, the system I'm monitoring is 30 
channels.  I've come up with what has to be the most "ass-backwards" fix 
I've ever done.  The correct answer is to make the frequency list 
scrollable but I don't know anything about curses programming.  So 
instead, I inserted in terminal.py a call to read the console size on 
startup, and then size the row positions based on that (e.g., instead of 
showing the current frequency on row 20, I show it on row_size-5).  So, 
if you set the terminal to 36 lines there's now room for 30 frequencies.

Patch attached.  Really stupid, but it seems to work.

I'm also attaching a bash script I use to start rx.py and also the audio 
server.  I am certain that someone with bash-fu could make it much more 
robust.  (I'm still struggling to get this to start from a desktop 
shortcut in Raspbian.  The scanner window opens, but not the audio server.)


On 07/09/2017 09:38 AM, ikj1234i at yahoo.com [op25-dev] wrote:
> hey John
> is this by any chance a large system having more than 20 voice channels 
> (frequencies)?  What looks like might be happening is this error is 
> complaining that the number of lines it's trying to draw in the window 
> exceeds the size of the window.  In scope.py the list was scrollable, 
> but not in rx.py...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/op25-dev/attachments/20170716/f9a3a211/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: n8ur_op25-16July2017.diff
Type: text/x-patch
Size: 939 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/op25-dev/attachments/20170716/f9a3a211/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scanner.sh
Type: application/x-shellscript
Size: 345 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/op25-dev/attachments/20170716/f9a3a211/attachment-0001.bin>

More information about the op25-dev mailing list