Re: [chirp_users] Database import from Radioreference.com
Hi G-Mail, I have recently added this feature for Canada/RadioReference and I submitted the patch on Nov 29th (for the stable branch - py3). As the author is (I believe) hospitalized at the moment, patches have not been accepted or applied since Nov 26th. If you're savvy, you can used the attached patch file to add support for importing from any province in Canada. I'll probably fork CHIRP with this added feature as it's been requested by boatloads of folks, and I would love for folks to be able to get their hands on it... When I have time... See attached patch. Cheers, -Mark From: "G-mail" To: "chirp users" Sent: Thursday, December 17, 2020 7:00:48 AM Subject: [chirp_users] Database import from Radioreference.com Hi, When importing a database into CHIRP from Radioreference.com, it asks for: - Username - ok - Password - ok - Zip Code – I’m from Canada & the database is also . Which zip code should I use? I didn't enter an address on Radioreference & I don't see one associated with the database... ? - It is giving an error code: server raised fault: Invalid Country ID I have also tried to import via a CSV file, but so far I’m getting an error message, as it doesn’t like the CSV formatting… Thanks! [ http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient ] Virus-free. [ http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient | www.avg.com ] [ https://wm-no.glb.shawcable.net/zimbra/mail#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2 | ] ___ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Mark Leigh at mark.le...@shaw.ca To unsubscribe, send an email to chirp_users-unsubscr...@intrepid.danplanet.com # HG changeset patch # User Mark Leigh # Date 1606700125 28800 # Sun Nov 29 17:35:25 2020 -0800 # Node ID d627b810da3de4ca1a1d689710a7f8dca369af5a # Parent 8d906ccd00db039eee18a8af23c87ed4d2d6f127 Added methods and UI to query/import RadioRef.com for Canada. Fixes #8021 My first foray into Python, so forgive anything that's not optimal. user: Mark Leigh branch 'default' changed chirp/directory.py changed chirp/radioreference.py changed chirp/ui/mainapp.py diff --git a/chirp/directory.py b/chirp/directory.py --- a/chirp/directory.py +++ b/chirp/directory.py @@ -113,9 +113,9 @@ def get_radio_by_image(image_file): """Attempt to get the radio class that owns @image_file""" if image_file.startswith("radioreference://"): -_, _, zipcode, username, password = image_file.split("/", 4) +_, _, zipcode, username, password, country = image_file.split("/", 5) rr = radioreference.RadioReferenceRadio(None) -rr.set_params(zipcode, username, password) +rr.set_params(zipcode, username, password, country) return rr if image_file.startswith("rfinder://"): @@ -165,4 +165,4 @@ e.metadata = metadata raise e else: -raise errors.ImageDetectFailed("Unknown file format") +raise errors.ImageDetectFailed("Unknown file format") \ No newline at end of file diff --git a/chirp/radioreference.py b/chirp/radioreference.py --- a/chirp/radioreference.py +++ b/chirp/radioreference.py @@ -56,24 +56,49 @@ self._client = Client(self.URL) self._freqs = None self._modes = None -self._zip = None +self._zipcounty = None +self._country = None -def set_params(self, zipcode, username, password): +def set_params(self, zipcounty, username, password, country): """Set the parameters to be used for a query""" -self._zip = zipcode +self._country = country +self._zipcounty = zipcounty self._auth["username"] = username self._auth["password"] = password -def do_fetch(self): -"""Fetches frequencies for all subcategories in a county.""" -self._freqs = [] - +def do_getcanadacounties(self): try: service = self._client.service -zipcode = service.getZipcodeInfo(self._zip, self._auth) -county = service.getCountyInfo(zipcode.ctid, self._auth) +provincelist = service.getCountryInfo(2, self._auth) +provinces = {} +clist = [] +for province in provincelist: +provinces[province[2]] = province[0] +provinceinfo = service.getStateInfo(province[0], self._auth) +for county in provinceinfo.countyList: +if count
Re: [chirp_users] Import Error Regarding Radio Reference
Hi Chris, As I recently added the Canadian radioRef search feature to Chirp, I thought I would reply as I wondered if it it had something to do with that. I've just tried the daily myself and both the USA and Canadian radioReference import work at my end, as does querying both of the countries. Could you provide any information about what operating system you're on and any error messages you're getting? Or at what point exactly it's failing? Can you also confirm that your RadioRef subscription is up to date as well? Thanks, -Mark On 2021-01-10 4:13 p.m., ct...@cox.net wrote: Hello and thanks for what you do! Last week, I was successfully able to import frequencies from Radio Reference.com through my subscription. However, today, I was unable to do so. I have researched the FAQs regarding this topic. The only references I found were: CHIRP-Bug #4961 and Bug #4963. I downloaded the latest “Daily” version of CHIRP and tried import again with no success. Can you help? Thanks! Regards, Chris ___ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Mark Leigh at mark.le...@shaw.ca To unsubscribe, send an email to chirp_users-unsubscr...@intrepid.danplanet.com ___ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to arch...@mail-archive.com at arch...@mail-archive.com To unsubscribe, send an email to chirp_users-unsubscr...@intrepid.danplanet.com
Re: [chirp_users] Import Error Regarding Radio Reference
What zip code are you looking up? Thanks, -Mark From: ct...@cox.net To: "Discussion of CHIRP" Sent: Tuesday, January 12, 2021 9:31:00 AM Subject: Re: [chirp_users] Import Error Regarding Radio Reference Mark and all that have responded. Thank you so much for the staccato of responses. I am as green as they come and the support from the community has been EXCEPTIONAL, so thanks to ALL of you! I will reach out Radio Reference; however, I am able to successfully login from a separate web browser. I am running Windows 10 Home, Version 2004. The error message states: “Server raised fault: ‘Invalid Username or Password’ What is perplexing is that I successfully imported from Radio Reference into CHIRP two weeks ago… Thanks again to all! -Chris From: chirp_users-boun...@intrepid.danplanet.com On Behalf Of Mark Leigh Sent: Sunday, January 10, 2021 6:35 PM To: chirp_users@intrepid.danplanet.com Subject: Re: [chirp_users] Import Error Regarding Radio Reference Hi Chris, As I recently added the Canadian radioRef search feature to Chirp, I thought I would reply as I wondered if it it had something to do with that. I've just tried the daily myself and both the USA and Canadian radioReference import work at my end, as does querying both of the countries. Could you provide any information about what operating system you're on and any error messages you're getting? Or at what point exactly it's failing? Can you also confirm that your RadioRef subscription is up to date as well? Thanks, -Mark On 2021-01-10 4:13 p.m., [ mailto:ct...@cox.net | ct...@cox.net ] wrote: Hello and thanks for what you do! Last week, I was successfully able to import frequencies from Radio Reference.com through my subscription. However, today, I was unable to do so. I have researched the FAQs regarding this topic. The only references I found were: CHIRP-Bug #4961 and Bug #4963. I downloaded the latest “Daily” version of CHIRP and tried import again with no success. Can you help? Thanks! Regards, Chris ___ chirp_users mailing list [ mailto:chirp_users@intrepid.danplanet.com | chirp_users@intrepid.danplanet.com ] [ http://intrepid.danplanet.com/mailman/listinfo/chirp_users | http://intrepid.danplanet.com/mailman/listinfo/chirp_users ] This message was sent to Mark Leigh at [ mailto:mark.le...@shaw.ca | mark.le...@shaw.ca ] To unsubscribe, send an email to [ mailto:chirp_users-unsubscr...@intrepid.danplanet.com | chirp_users-unsubscr...@intrepid.danplanet.com ] ___ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Mark Leigh at mark.le...@shaw.ca To unsubscribe, send an email to chirp_users-unsubscr...@intrepid.danplanet.com ___ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to arch...@mail-archive.com at arch...@mail-archive.com To unsubscribe, send an email to chirp_users-unsubscr...@intrepid.danplanet.com
Re: [chirp_users] Import Error Regarding Radio Reference
I have just tested that zip code in Chirp; Windows 10 on the latest daily. It works for me without issue. All I can think is that your firewall/antivirus is blocking Chirp from accessing the internet or your RadioRef paid account has expired. Have you tried querying radioreference Canada, or repeaterbook from within Chirp to confirm that Chirp is able to access the internet? Also, the fact that you can log in to radioRef does not mean your premium subscription is up to date - you may have expired and become a regular user. Non-premium accounts can not query the database using Chirp. Hope that helps! Cheers, -Mark From: ct...@cox.net To: "Discussion of CHIRP" Sent: Tuesday, January 12, 2021 1:11:52 PM Subject: Re: [chirp_users] Import Error Regarding Radio Reference 85253 From: chirp_users-boun...@intrepid.danplanet.com On Behalf Of Mark Leigh Sent: Tuesday, January 12, 2021 11:09 AM To: Discussion of CHIRP Subject: Re: [chirp_users] Import Error Regarding Radio Reference What zip code are you looking up? Thanks, -Mark From: [ mailto:ct...@cox.net | ct...@cox.net ] To: "Discussion of CHIRP" < [ mailto:chirp_users@intrepid.danplanet.com | chirp_users@intrepid.danplanet.com ] > Sent: Tuesday, January 12, 2021 9:31:00 AM Subject: Re: [chirp_users] Import Error Regarding Radio Reference Mark and all that have responded. Thank you so much for the staccato of responses. I am as green as they come and the support from the community has been EXCEPTIONAL, so thanks to ALL of you! I will reach out Radio Reference; however, I am able to successfully login from a separate web browser. I am running Windows 10 Home, Version 2004. The error message states: “Server raised fault: ‘Invalid Username or Password’ What is perplexing is that I successfully imported from Radio Reference into CHIRP two weeks ago… Thanks again to all! -Chris From: [ mailto:chirp_users-boun...@intrepid.danplanet.com | chirp_users-boun...@intrepid.danplanet.com ] < [ mailto:chirp_users-boun...@intrepid.danplanet.com | chirp_users-boun...@intrepid.danplanet.com ] > On Behalf Of Mark Leigh Sent: Sunday, January 10, 2021 6:35 PM To: [ mailto:chirp_users@intrepid.danplanet.com | chirp_users@intrepid.danplanet.com ] Subject: Re: [chirp_users] Import Error Regarding Radio Reference Hi Chris, As I recently added the Canadian radioRef search feature to Chirp, I thought I would reply as I wondered if it it had something to do with that. I've just tried the daily myself and both the USA and Canadian radioReference import work at my end, as does querying both of the countries. Could you provide any information about what operating system you're on and any error messages you're getting? Or at what point exactly it's failing? Can you also confirm that your RadioRef subscription is up to date as well? Thanks, -Mark On 2021-01-10 4:13 p.m., [ mailto:ct...@cox.net | ct...@cox.net ] wrote: Hello and thanks for what you do! Last week, I was successfully able to import frequencies from Radio Reference.com through my subscription. However, today, I was unable to do so. I have researched the FAQs regarding this topic. The only references I found were: CHIRP-Bug #4961 and Bug #4963. I downloaded the latest “Daily” version of CHIRP and tried import again with no success. Can you help? Thanks! Regards, Chris ___ chirp_users mailing list [ mailto:chirp_users@intrepid.danplanet.com | chirp_users@intrepid.danplanet.com ] [ http://intrepid.danplanet.com/mailman/listinfo/chirp_users | http://intrepid.danplanet.com/mailman/listinfo/chirp_users ] This message was sent to Mark Leigh at [ mailto:mark.le...@shaw.ca | mark.le...@shaw.ca ] To unsubscribe, send an email to [ mailto:chirp_users-unsubscr...@intrepid.danplanet.com | chirp_users-unsubscr...@intrepid.danplanet.com ] ___ chirp_users mailing list [ mailto:chirp_users@intrepid.danplanet.com | chirp_users@intrepid.danplanet.com ] [ http://intrepid.danplanet.com/mailman/listinfo/chirp_users | http://intrepid.danplanet.com/mailman/listinfo/chirp_users ] This message was sent to Mark Leigh at [ mailto:mark.le...@shaw.ca | mark.le...@shaw.ca ] To unsubscribe, send an email to [ mailto:chirp_users-unsubscr...@intrepid.danplanet.com | chirp_users-unsubscr...@intrepid.danplanet.com ] ___ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Mark Leigh at mark.le...@shaw.ca To unsubscribe, send an email to chirp_users-unsubscr...@intrepid.danplanet.com ___ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intr