dev-zzo / kiwiclient

9 stars 40 forks source link

Understanding process behind executing the code #2

Closed djcali closed 7 years ago

djcali commented 7 years ago

Hello, I currently have a Kiwi SDR that I am trying to use this Web Socket to connect to, but I am not very experienced in Python, and Web Sockets as a whole. Is there something I need to do before I execute the code on my computer, because when I ran it, it won't connect, and keeps generating the connection failed error message only to try again every 15 seconds. Thanks, David

dev-zzo commented 7 years ago

Could you please explain what is it you are trying to do? What commands are you running?

djcali commented 7 years ago

I have been trying to run the kiwi recorder file that is provided in the git, and after reading the code I am currently using the command line to input the server host and server portal in addition to the frequency. Once I do this, the code appears to execute without any breaks, after I commented out the ._logger() call on line 32 of kiwi recorder, because it threw an attribute error, but the zip file doesn't appear to be compiling as the instructions say. Is there anything else I need to manually enter into the command line, or what is the issue?

dev-zzo commented 7 years ago

There may be issues with the recorder application due to recent changes in the client itself; I didn't verify compatibility in any way. Let me check and get back to you.

dev-zzo commented 7 years ago

With commit 554e102 this should be working again. Please note you will have to adjust squelch threshold to ensure the mode of operation you want (non-stop recording vs squelched).

djcali commented 7 years ago

Thank you for updating this. If you would like to explain what squelched recording is, as I'm trying to change the 1 hour interval to 15 minutes for recording, that would be helpful. But it works just fine regardless of the .wav file length. :+1:

dev-zzo commented 7 years ago

It is a feature designed to record only when there is actual signal, avoiding huge files of noise.

If you'd prefer 15-minute intervals, then you will have to change the condition here: https://github.com/dev-zzo/kiwiclient/blob/master/kiwirecorder.py#L89