Dashboard Data

Post Reply
g0lgj
Posts: 19
Joined: Wed Dec 19, 2018 12:36 am

Dashboard Data

Post by g0lgj »

Hi I am looking to collect data from the dashboard to publish on a website just showing the connected status of the repeater. Rather than the full dashboard.
I seem to remember seeing a post regarding this but cannot find it again.
any suggestions ?
Thanks Mark G0LGJ
User avatar
N7HHI
Posts: 65
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

Re: Dashboard Data

Post by N7HHI »

You can scrape the log file for the information you are looking for. It is in /var/log/pi-star/Links.log

One way I use the information from the log is, I set up a few aliases so that I can see the information from the Bash command line.
Below is a sample of the way I use them:

Code: Select all

alias showlinked2='awk '\''{print $12, $13}'\'' /var/log/pi-star/Links.log'
alias showlinked2b='awk '\''{print $3, $4}'\'' /var/log/pi-star/Links.log'
alias linked2='echo "Linked to $(showlinked2b) $(showlinked2)"'
Examples of output from the alias commands:
pi-star@pi-star(ro):~$ showlinked2
XRF757 A

pi-star@pi-star(ro):~$ showlinked2b
DExtra link

The first two aliases are really only used for setting up the third alias. The linked2 alias is the only one I really use to display what I am linked to.

pi-star@pi-star(ro):~$ linked2
Linked to DExtra link XRF757 A


There is undoubtedly a more efficient way of doing the same thing, but this works for what I wanted, so decided to not take the time to fix what isn't broken.
73...
Scott - N7HHI
Post Reply