How do I know if I Need to update API Keys to V2?

General support for the Pi-Star System
Post Reply
kc7ve
Posts: 30
Joined: Thu Nov 19, 2020 4:01 am

How do I know if I Need to update API Keys to V2?

Post by kc7ve »

It's pretty bad that I don't know if I have something to do. ;)

I read something about updating API Keys to V2. But I have no clue if I have to do anything if they are already at V2.

My hotspots have been down for over a year. They were configured some long time before. It may be they are already V2 (or not).

How do I check?
1) Do changes have to be made on Brandmeister (BM) and my pi-stars?
2) Which ones get updated first?
3) Are keys first generated on PI or BM?
4) Just for testing, can I add a key, just to test, never use it, then delete it? Without any problems?
5) Is it possible to see tge actual keys used on my hotspots and BM? I don't see anything that look like the example keys.

I checked API keys on BM and there are 2 listed. They are password keys. But just that and expiration. No actual key that I can see.

See I'm pretty clueless on these API Keys. Up to now, I haven't ever done anything with regards to keys.

Any info helps

Mike
Amateur Radio 40+ years
USMC 1963-1967
M1DNS
Pi-Star Team
Posts: 1388
Joined: Thu Apr 05, 2018 5:30 am

Re: How do I know if I Need to update API Keys to V2?

Post by M1DNS »

Link below shows what, where, why and how...

https://news.brandmeister.network/




Sent via smoke signals from my SM-G935F M1DNS (Admin)



Andrew M1DNS.
Pi-star Admin Team.
kc7ve
Posts: 30
Joined: Thu Nov 19, 2020 4:01 am

Re: How do I know if I Need to update API Keys to V2?

Post by kc7ve »

M1DNS wrote: Thu Feb 02, 2023 7:33 am Link below shows what, where, why and how...

https://news.brandmeister.network/




Sent via smoke signals from my SM-G935F M1DNS (Admin)
I already read that before I posted here. It doesn't address my questions. That's why I posted here.

But I think I have the answer. Since I've never used API keys, I don't think I have anything to do.
Amateur Radio 40+ years
USMC 1963-1967
KN2TOD
Posts: 264
Joined: Sun Nov 11, 2018 6:36 pm

Re: How do I know if I Need to update API Keys to V2?

Post by KN2TOD »

I think you misread/misunderstood something here: you are not going to being able to connect to the Brandmeister network without an API key. And, if your HS's have been down for year or so, then they are/were probably configured for V1 keys which are obsolete now. You need to update 'em.

You can do a quick check via SSH by issuing these commands (dashboard->admin->expert->SSH):

Code: Select all

sudo pistar-bmapi dmrid
sudo pistar-bmapi apikey
You should get something similar to this:

Code: Select all

Using BM API v2
Your DMR ID is: .......
Using BM API v2
Your BrandMeister API Key is: .......
Also your Pi-Star needs to be up-to-date:

Code: Select all

Pi-Star:4.1.6 / Dashboard: 20221114
... answering your questions:

Yes, changes have to be made on BM *and* Pi-Star.
You start be getting a key(s) from BM - that's where they are generated.
You then "apply" the key in Pi-Star: dashboard->admin->expert->BM API

Don't know why you'd want to generate a key, apply it, and then discard it: it's usually "set it and forget it". Unless you are configuring for a friend or planning on passing your HS on to someone else.

Yes, the keys can be viewed (by you) on both BM and Pi-Star, via the appropriate dashboards; no, there are no "example" keys.
Post Reply