DSheirer / sdrtrunk

A cross-platform java application for decoding, monitoring, recording and streaming trunked mobile and related radio protocols using Software Defined Radios (SDR). Website:
GNU General Public License v3.0
1.54k stars 251 forks source link

RRDB Enterprise Account Import #1781

Closed BrendanMan3 closed 1 month ago

BrendanMan3 commented 8 months ago

Hello I am running v0.6.0 and have tried to link to my RRDB account which is an enterprise account. However I receive the error that my account is not a premium RRDB account in sdrtrunk, although it is.

DSheirer commented 8 months ago

You may want to try logging into the webpage and verify that you can browse through the frequency database. If that's ok, then check with the radio reference folks to see why your account login doesn't reflect premium.

BrendanMan3 commented 8 months ago

My account is not Premium, it is Enterprise. So while it is also premium it also includes a few extra perks. Enterprise and Premium should be the same for importing from the RRDB.

DSheirer commented 8 months ago

The sdrtrunk application attempts to use the radio reference API using the login credentials that you provide. If the API service is reporting that your account is not enabled to use the API, then that's something you'll have to resolve with the radio reference team.

Even though sdrtrunk reports the error as 'you don't have a premium account', the reality is that your login credentials are not authorized to access the API.

I don't believe this is a bug in the sdrtrunk software.

BrendanMan3 commented 8 months ago

Works fine for me in ProScan which I "assume" is the same API. Nonetheless I will reach out to RR.

blantonl commented 2 months ago

Dennis, can you advise how SDRTrunk is determining premium subscription status and authorization? What API call are you using, and what attributes are you keying off of to make the determination?

This seems to be localized to SDRTrunk and I'm trying to determine why... other API consumers appears to be working ok (this person is able to use ProScan for instance just fine with his enterprise account)

DSheirer commented 1 month ago

In discussion with @blantonl the API getUserData method can return the following values:

Will update sdrtrunk to accept any non-date value strings that start with 'Never' as valid expiration dates.

DSheirer commented 1 month ago

After inspecting the code, it should be handling the optional response values for any of the 'Never - ' expiration status and allowing the user to use the RR API.

I tested each of these response values and confirmed that the code functions correctly.

@BrendanMan3 can you post a screen shot of the radio reference tab in the playlist editor? This should display the 'Expiration Date' value that was returned from the radio reference API for your account.

BrendanMan33 commented 1 month ago

Screenshot 2024-07-29 113035 That did the trick.

Thank you all for the help.