<div dir="ltr">Tom,<div><br></div><div>Like Michael said, rx888d was integrated into radiod but was not documented yet, so initiate radiod with an appropriate config file (there are some you can modify). Use & to run it as a background process or write a script. Choose the appropriate sampling rate for the frequencies of interest to reduce resource usage.  </div><div><br></div><div>Jonathan</div><div>KC3EEY</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 24, 2023 at 8:37 PM Michael Hauan <<a href="mailto:michael.j.hauan@gmail.com">michael.j.hauan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>BTW — if you intend to use wspr-decoded, I’ve been using the following script with some success.  Just run "wspr-decoded wspr-pcm.local &” (assuming you’ve made the [wspr] definition active in <a href="mailto:radiod@rx888-generic.conf" target="_blank">radiod@rx888-generic.conf</a>).  That will decode wspr signals in each frequency and store them in a separate subdirectory of ~/recordings/wspr.  The following script (change your call and grid square) will parse the files and upload them.  I put it on a cron job to run every 10 min.<div><br></div><div>---</div><div><div>import os</div><div>import subprocess</div><div>import requests</div><div><br></div><div>def process_and_upload_wspr(directory, call, grid):</div><div>    print(f"Processing and uploading in directory: {directory}")</div><div><br></div><div>    # Change to the target directory</div><div>    os.chdir(directory)</div><div><br></div><div>    # Input and output file names</div><div>    ALL_WSPR_FILE = "ALL_WSPR.TXT"</div><div>    ALLMEPT_FILE = "ALLMEPT.TXT"</div><div><br></div><div>    # Remove lines that contain the value of CALL from ALL_WSPR.TXT</div><div>    with open(ALL_WSPR_FILE, 'r') as input_file:</div><div>        lines = input_file.readlines()</div><div><br></div><div>    with open(ALL_WSPR_FILE, 'w') as output_file:</div><div>        for line in lines:</div><div>            if call not in line:</div><div>                output_file.write(line)</div><div><br></div><div>    # Sort the data by highest SNR, print unique date/time/band/call combinations,</div><div>    # and then sort them by date/time/frequency</div><div>    sort_cmd = f"sort -nr -k 4,4 {ALL_WSPR_FILE} | awk '!seen[$1\"_\"$2\"_\"int($6)\"_\"$7] {{print}} {{++seen[$1\"_\"$2\"_\"int($6)\"_\"$7]}}' | sort -n -k 1,1 -k 2,2 -k 6,6 -o {ALLMEPT_FILE}"</div><div>    subprocess.run(sort_cmd, shell=True)</div><div><br></div><div>    # Upload the processed data using curl</div><div>    url = "<a href="http://wsprnet.org/post" target="_blank">http://wsprnet.org/post</a>"</div><div>    files = {'allmept': open(ALLMEPT_FILE, 'rb')}</div><div>    data = {'call': call, 'grid': grid}</div><div>    response = <a href="http://requests.post" target="_blank">requests.post</a>(url, files=files, data=data)</div><div><br></div><div>    if response.status_code == 200:</div><div>        print("Upload successful.")</div><div>        # Empty the ALL_WSPR.TXT file after a successful upload</div><div>        open(ALL_WSPR_FILE, 'w').close()</div><div>    else:</div><div>        print("Upload failed.")</div><div><br></div><div>    # Clean up the temporary file</div><div>    os.remove(ALLMEPT_FILE)</div><div><br></div><div><br></div><div>if __name__ == "__main__":</div><div>    # Directory where the subdirectories are located</div><div>    base_directory = os.path.join(os.path.expanduser("~"), "recordings", "wspr")</div><div><br></div><div>    # Common values for call and grid</div><div>    CALL = "AC0G"</div><div>    GRID = "EM38ww"</div><div><br></div><div>    # Iterate through all subdirectories under ~/recordings/wspr</div><div>    for subdirectory in os.listdir(base_directory):</div><div>        full_directory_path = os.path.join(base_directory, subdirectory)</div><div>        if os.path.isdir(full_directory_path):</div><div>            process_and_upload_wspr(full_directory_path, CALL, GRID)</div></div><div><br></div><div><br></div><div><br></div><div>----</div><div><br><div><br><blockquote type="cite"><div>On Jul 24, 2023, at 19:21, Tom McDermott <<a href="mailto:tom.n5eg@gmail.com" target="_blank">tom.n5eg@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>Thanks, Michael.    I went through the install instructions in ka9q-radio successfully, and also the instructions on</div><div>the Utah WebSDR pages.  That all went properly.</div><div><br></div><div>I've added myself to the radio group, and logged-out/logged-in, my user is showing as</div><div>a member of the radio group.  But nothing changed - rx888d executable is still not found anywhere.</div><div><br></div><div>-- Tom, N5EG</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 24, 2023 at 4:54 PM Michael Hauan <<a href="mailto:michael.j.hauan@gmail.com" target="_blank">michael.j.hauan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>The only code I'm using (got rid of any other potential competing Cypress drivers) is ka9q-radio.  Simple git clone.  </div><div>Read the INSTALL.txt to get the required libraries and see where everything goes.  </div><div>Then "make" and "sudo make install" will get everything in the right places.  </div><div>I guess you got this far, for sure.</div><div>Add yourself to the "radio" group.  </div><div>Follow the instructions in docs/FFTW3.md in the ka9q-radio directory to create and move a wisdom file.  </div><div>You'll have to re-login to get in the group.  </div><div>You might examine the /etc/radio/radiod@rx888-generic.conf to confirm the virtual radios you want and to decrease the sample rate (if you want) which by default is at 128MHz. </div><div>Then enable and start <a href="mailto:radiod@rx888-generic.service" target="_blank">radiod@rx888-generic.service</a> using systemctl.  </div><div>If it's running ok (check with sudo systemctl status radiod@rx888-generic) you should be good to go.  </div><div>Confirm by running "monitor wspr-pcm.local" (or whatever pcm-streams you configured).</div><div><br></div><div><br><blockquote type="cite"><div>On Jul 24, 2023, at 18:39, Tom McDermott <<a href="mailto:tom.n5eg@gmail.com" target="_blank">tom.n5eg@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>The RX888D MKII has been received, installed ka9q-radio, created fft nwisdom, installed & started avahi.</div><div><br></div><div>In trying to start rx888d as standalone, and as daemon, there seem to be missing some files.    <br></div><div><br></div><div>./rx888d g5rv &   - fails no such file or directory</div><div></div><div><br></div><div>The only things $find / -name 'rx88*'    found are:</div><div><br></div><div>/home/tom/ka9q-radio/rx888d@.service<br>/home/tom/ka9q-radio/rx888.h<br>/home/tom/ka9q-radio/rx888.o<br>/home/tom/ka9q-radio/rx888.c<br>/home/tom/ka9q-radio/rx888d.conf<br></div><div><br></div><div>Thus the command(s) to run rx888d fail.  Was an rx888d executable supposed to be generated?</div><div></div><div><br></div><div>-- Tom, N5EG</div></div><div><br></div>

-- <br>
Please follow the HamSCI Community Participation Guidelines at <a href="http://hamsci.org/hamsci-community-participation-guidelines" target="_blank">http://hamsci.org/hamsci-community-participation-guidelines</a>.<br>
--- <br>
You received this message because you are subscribed to the Google Groups "HamSCI" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:hamsci+unsubscribe@googlegroups.com" target="_blank">hamsci+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/hamsci/CACO3nRQLGR%2BHOMOqEq_B8ahbWR4RLs-pCNtWPGFDz%2BhD1CHM-A%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/hamsci/CACO3nRQLGR%2BHOMOqEq_B8ahbWR4RLs-pCNtWPGFDz%2BhD1CHM-A%40mail.gmail.com</a>.<br>
</div></blockquote></div><br></div><div><br></div>

-- <br>
Please follow the HamSCI Community Participation Guidelines at <a href="http://hamsci.org/hamsci-community-participation-guidelines" target="_blank">http://hamsci.org/hamsci-community-participation-guidelines</a>.<br>
--- <br>
You received this message because you are subscribed to the Google Groups "HamSCI" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:hamsci+unsubscribe@googlegroups.com" target="_blank">hamsci+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/hamsci/6FCC8BF8-2B66-4510-8F6F-1130C353BD13%40gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/hamsci/6FCC8BF8-2B66-4510-8F6F-1130C353BD13%40gmail.com</a>.<br>
</blockquote></div><div><br></div>

-- <br>
Please follow the HamSCI Community Participation Guidelines at <a href="http://hamsci.org/hamsci-community-participation-guidelines" target="_blank">http://hamsci.org/hamsci-community-participation-guidelines</a>.<br>
--- <br>
You received this message because you are subscribed to the Google Groups "HamSCI" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:hamsci+unsubscribe@googlegroups.com" target="_blank">hamsci+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/hamsci/CACO3nRSXFGQW9cBa68oG28qZ3%3DL7EGWtcX32Pbj09ziT1dc%3DAw%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/hamsci/CACO3nRSXFGQW9cBa68oG28qZ3%3DL7EGWtcX32Pbj09ziT1dc%3DAw%40mail.gmail.com</a>.<br>
</div></blockquote></div><br></div></div>

<p></p>

-- <br>
Please follow the HamSCI Community Participation Guidelines at <a href="http://hamsci.org/hamsci-community-participation-guidelines" target="_blank">http://hamsci.org/hamsci-community-participation-guidelines</a>.<br>
--- <br>
You received this message because you are subscribed to the Google Groups "HamSCI" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:hamsci+unsubscribe@googlegroups.com" target="_blank">hamsci+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/hamsci/F28A8140-DB4D-4588-AB5B-085A9D4AB6E5%40gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/hamsci/F28A8140-DB4D-4588-AB5B-085A9D4AB6E5%40gmail.com</a>.<br>
</blockquote></div>