KN2TOD wrote: ↑Tue Sep 06, 2022 12:59 am
A quick look at the logic:
Code: Select all
pi-star@pi-star(ro):sbin$ grep APIVer pistar-bmapi
APIVer="2"
APIVer="1.0"
if [[ ${APIVer} -ge 2 ]]; then
if [[ ${APIVer} -ge 2 ]]; then
if [[ ${APIVer} -ge 2 ]]; then
if [[ ${APIVer} -ge 2 ]]; then
if [[ ${APIVer} -ge 2 ]]; then
if [[ ${APIVer} -ge 2 ]]; then
would suggest you are right; try changing the APIVer="1.0" statement to APIVer="1" and see if that fixes the problem.
Hi,
I made the change, as recommended, by changing the variable "1.0" to "1".
Still the command does not work.
The odd thing is that I entered BM's API key v2, but it looks like Key v1. For what reason?
The command:
pi-star@pi-star2(rw):~$ sudo pistar-bmapi apikey
returns the following information:
Using BM API v1.0
Your BrandMeister API Key is: ecc ecc ecc... code
Now the message that appears after the command is the following:
pi-star@pi-star2(rw):~$ sudo pistar-bmapi addtg 2237 0
Using BM API v1.0
Request to BrandMesiter API: Add TG 2237 to TimeSlot 0 for DMR ID 222448316
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable
Answer from BrandMesiter API:
Evidently there is still something wrong and the static TG is not added.
I haven't changed any other lines of the code, so I'm wondering how to fix the problem.
'73 de Paolo IV3BVK