Pi-Star (increase) - Dashboard - Gateway Activity List Screen Section

Pi-Star (increase) - Dashboard - Gateway Activity List Screen Section

I would like to offer a suggestion for the Pi-Star software. I believe this is something that would benefit more hams than just myself, especially Net Control operators.

Concerning the Gateway Activity screen. Is it possible to have a configuration setting to allow the user to set more than 20 rows of activity. Displaying a vertical scroll bar on the right to go back and retrieve calls that have rolled off the screen? On the left side of the row, the number of rows desired would be set in the cofiguration menu. There is plenty of room on the left where the time is displayed to number each row so you can scroll backwards to look at any call signs that were missed because of the roll off.



I would find this to be very useful for Net Control operators such as my self who take quick-key checkins where the data often rolls in very quickly and often exceed mor than 20 checkins. Using a numbered scroll back feature would allow for more than 20 checkins and thus being able to retrieve any missed calleds that simply scrolled off the screen.

A setting would allow for the number of rows you wish to use in the gateway activity section such as 25 or 50 or any number with a limiting number if you wish to keep the necessary file that holds this feaure such as 100 0r 1000 or whatever is dsired by the programmer. I have been using DVTools for the the Pi, (written by AA4RC) which allows any number of lines to be scrolled back. As an example, I currenly have mine set at 1500. Also a clear gateway activity data feature would allow data to be cleared off the screen so an operator can start off with a blank Gateway activity screen.

... Concerning the Gateway Activity screen. Is it possible to have a configuration setting to allow the user to set more than 20 rows of activity. ...

Pi-Star (increase) - Dashboard - Gateway Activity Screen Section





The Gateway Activity log, displayed in the dashboard - and for which I provided a mod to increase its depth - is based on the Modem Activity log file, or, to put it another way, the Gateway Activity display is an continuous "extract" of the Modem Activity log.

Simple. The commands provided are intended to be run from the Pi-Star (Linux) command prompt. The commands have not been posted to github, so you can not use that mechanism to run the commands. (And had they been so posted, you'd still need to go to the command prompt to fetch them. So..)

From the dashboard: go to Configuration --> Expert --> SSH Access. From there, enter the user id and password, and then enter the commands one by one. Finish the process by entering "exit" and then selecting "dashboard" or "admin" at the top of your screen to return to normal functioning of your hotspot.

You should see something like this:
   pi-star-1 login: pi-star
   Password:
   Last login: Mon May 18 21:42:02 EDT 2020 from 192.168.1.22 on pts/0
   Linux pi-star-1 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l
          :
          :
   Pi-Star's disk is read-only by default, enable read-write with "rpi-rw".
   Pi-Star built by Andy Taylor (MW0MWZ), pi-star tools all start "pistar-".

                        Welcome to Pi-Star: v4.1.1

   pi-star@pi-star(ro):~$ rpi-rw
   pi-star@pi-star(rw):~$ sudo sed -i 's/($i <= 19)/($i <= 39)/' /var/www/dashboard/mmdvmhost/lh.php
   pi-star@pi-star(rw):~$ rpi-ro
   pi-star@pi-star(ro):~$ exit


And as mentioned previously, this change takes place immediately, without rebooting, although it may not be obvious immediately because the frequency of activity you've selected may not push your display to the new limit for a good, long while. Also note that the activity log gets cleared either by a reboot or by the daily "rotation". The change outlined above only effects the display of what is currently available in the log and not its duration or retention over time. So, if you leave your hotspot running 24/7, you'll see the display wax and wane accordingly.



SOLUTION ::

You can edit line #21 of /var/www/dashboard/mmdvmhost/lh.php to enable as many lines as you like ... after making a backup copy of the file, of course.

# grep -ni "last 20" /var/www/dashboard/mmdvmhost/lh.php/var/www/dashboard/mmdvmhost/lh.php.ORG:21:for ($i = 0; ($i <= 19); $i++) { //Last 20 calls

E.g., for 50 calls it would be edited to read:
for ($i = 0; ($i <= 49); $i++) { //Last 50 calls

Net Control would need to be alert however, since those in the lineup will move to the top of the list when they transmit. It may be easier to use a net control software such as flnet at http://w1hkj.com/files/flnet/ here



Update #1
Log into SSH and run the following commands:

rpi-rw
sudo sed -i 's/($i <= 19)/($i <= 29)/g' /var/www/dashboard/mmdvmhost/lh.php
rpi-ro

the mod: it takes effect immediately and does not require a reboot.
If you've rebooted, then you've lost (reset) your current log and will have to wait for more traffic to come in.



Update #2
Log into SSH and run the following commands:
rpi-rw
cd /var/www/dashboard/mmdvmhost
ls
sudo nano lh.php
E.g., for 50 calls it would be edited to read:    for ($i = 0; ($i <= 49); $i++) { //Last 50 calls
rpi-ro

Gateway activity Lines to 100: for ($i = 0; ($i <= 99); $i++) { //Last 100 calls.   My GW activity now stops at 40 lines. Something else must be stopping it now.

** mE to see step-by-step 
VE3WZW - ANDRÉ 


Reboot does not clear the change.  The change takes place immediately without a reboot. 

The change remains in place across reboots. (Unless a system update changes the underlying file.)

reboot clears the list displayed!     Everytime.You.Reboot.  (Or, until the system decides to age the list.)



Discussions at Groups.io :

Pi-Star Users Support Group
https://groups.io/g/PiStar
****** share this with others *******


VE3WZW
ANDRE

1 comment:

  1. I am running Pi-Star:4.1.5 / Dashboard: 20210621. Using your instructions I increased the GW activity Lines to 100: for ($i = 0; ($i <= 99); $i++) { //Last 100 calls. My GW activity now stops at 40 lines. Something else must be stopping it now.
    Thanks,
    Dave W4EIP

    ReplyDelete

.
PiStar Users Discussion Group
Pi-Star Users Support Group
https://groups.io/g/PiStar

BrandMeister Network Users Discussion Group
https://groups.io/g/BrandMeister
.

Note: only a member of this blog may post a comment.