Why is DMR Net now yellow?

Help with DMR issues
KN2TOD
Posts: 104
Joined: Sun Nov 11, 2018 6:36 pm

Re: Why is DMR Net now yellow?

Post by KN2TOD »

MW0MWZ wrote: Fri Mar 19, 2021 5:52 pm I've tweaked the code based on the comments here, and I'd appreciate some more feedback with the new version.
I think your prior version of the function was/is better, but the test needed to be reformulated:

Instead of this (currently):

Code: Select all

$logCheck...DMRLogin = `tail -n 5 $logPath | awk '/master/ && /successfully/ || /master/ && /failed/' | tail -n 1`;
Or this (previously):

Code: Select all

$logCheck...HostDMRLogin = `tail -n5 $logPath | grep "Login to the master has failed" | wc -l`;
Perhaps this would do:

Code: Select all

$logCheck...HostDMRLogin = `tail -n5 $logPath | grep "Logged\|Login" | tail -n 1 | grep "Login" | wc -l`;
The use of AWK is overkill and expensive: generally, it's twice as slow as GREP and the overhead of the formatting capabilities is not really required for the test - the compound test pattern can be satisfied with just one additional GREP.

I agree that the testing of the link's status is less than perfect at this time, but you have to work with what you're given. Maybe, somewhere down the road, revisions to other pieces of code will yield better data for a more accurate rendering of the status in the dashboard (which, in turn, may mean that the initiate "tail -n 5" may need to be reevaluated at some later point).

But, what's currently being displayed (however flawed) is useful nevertheless.
f1rmb
Posts: 26
Joined: Thu Feb 21, 2019 12:12 pm

Re: Why is DMR Net now yellow?

Post by f1rmb »

Hi,

I think this log parsing thing could be dropped, as Jonathan merged a change I've made for DMRGateway and MMDVMHost, which makes possible to retrieve connections status using RemoteCommand.
Using this, you can have a real status per network (which is useful to turn the background color to red for each disconnected network, instead of yellowing the "DMR Net"). I refraining myself posting pictures of the result.


Cheers.
---
Daniel
User avatar
G8SEZ
Posts: 437
Joined: Fri Apr 13, 2018 8:26 pm

Re: Why is DMR Net now yellow?

Post by G8SEZ »

f1rmb wrote: Thu Mar 25, 2021 7:12 pm Hi,

I think this log parsing thing could be dropped, as Jonathan merged a change I've made for DMRGateway and MMDVMHost, which makes possible to retrieve connections status using RemoteCommand.
Using this, you can have a real status per network (which is useful to turn the background color to red for each disconnected network, instead of yellowing the "DMR Net"). I refraining myself posting pictures of the result.


Cheers.
---
Daniel
Well let's hope that this makes it into the new MMDVM binary that Andy has been talking about.
--

Brian G8SEZ
N6DMR
Posts: 23
Joined: Wed Apr 11, 2018 6:56 pm

Re: Why is DMR Net now yellow?

Post by N6DMR »

I am seeing that the Pi-Star Configuration Screen is not saving a new BM Hotspot Security Password (BM HS PW). My work around is to add the BM HS PW directly into the DMRGateway file. See attached picture.

I also did a video of the issue:

https://drive.google.com/file/d/1NSQlD7 ... sp=sharing
Attachments
DMR Network 1.jpg
DMR Network 1.jpg (37.35 KiB) Viewed 1249 times
KE7FNS
Pi-Star Team
Posts: 1945
Joined: Wed Apr 17, 2019 11:11 pm

Re: Why is DMR Net now yellow?

Post by KE7FNS »

N6DMR wrote: Fri Apr 30, 2021 11:48 am I am seeing that the Pi-Star Configuration Screen is not saving a new BM Hotspot Security Password (BM HS PW).
If the configuration screen is not saving your settings correctly you have problems elsewhere and it is best to just reimage the SD card. It is also possible your configuration file has errors in it so if upon restoration the situation returns, then you need to start over from scratch instead of restoring.
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:
Post Reply