pi-star API

Suggest new features here
Post Reply
KB1ISI
Posts: 3
Joined: Tue Apr 06, 2021 2:53 am

pi-star API

Post by KB1ISI »

Just curious, Is there a pi-star API available so that one can throw api commands to enable or disable dmr networks, or sending in a tg disconnect or power recycle, configuration recycle, etc. Would be nice to have an API to flip settings quickly.
Thanks
Peter
AF6VN
Posts: 574
Joined: Fri Jul 20, 2018 1:15 am

Re: pi-star API

Post by AF6VN »

There are a number of "commands" in /usr/local/sbin (buried among all the service files used by the "new" [and complex to me] init scheme) which can be issued from an SSH session.

Code: Select all

[email protected](rw):~$ ls /usr/local/sbin
aprsgateway.service       pistar-daily.cron              pistar-nxdnlink
dapnetgateway.service     pistar-dapnetapi               pistar-p25link
dmr2nxdn.service          pistar-expand                  pistar-remote
dmr2ysf.service           pistar-findmodem               pistar-remote.service
dmrgateway.service        pistar-firewall                pistar-sendcw
dstarrepeater.service     pistar-hourly.cron             pistar-tgifapi
HostFilesUpdate.sh        pistar-jittertest              pistar-update
ircddbgateway.service     pistar-keeper                  pistar-upgrade
mmdvmhost_NoOLED.service  pistar-keeper.service          pistar-upnp.service
mmdvmhost.service         pistar-link                    pistar-vyehsflash
mobilegps.service         pistar-mdoflash                pistar-watchdog
nextiondriver.service     pistar-mmdvmcal                pistar-watchdog.service
nxdn2dmr.service          pistar-mmdvmhost-module        pistar-ysflink
nxdngateway.service       pistar-mmdvmhshatdowngrade     pistar-zumspotflash
nxdnparrot.service        pistar-mmdvmhshatflash         timercontrol.service
p25gateway.service        pistar-mmdvmhshatflash-custom  timeserver.service
p25parrot.service         pistar-mmdvmhshatreset         ysf2dmr.service
pistar-ap.service         pistar-mmdvmremote             ysf2nxdn.service
pistar-bmapi              pistar-mmdvmrpthatflash        ysf2p25.service
pistar-bootconfig.sh      pistar-motdgen                 ysfgateway.service
pistar-clone              pistar-nanodvflash             ysfparrot.service
pi-sta[email protected](rw):~$
{I see it is time to reboot again -- some update has hung it in R/W mode}

--
AF6VN
Dennis L Bieber
KB1ISI
Posts: 3
Joined: Tue Apr 06, 2021 2:53 am

Re: pi-star API

Post by KB1ISI »

Thank you. I was hoping the support folks can buld an api into 4.1.5 so that we can issue quick url commands in a doget to enable disable dmrgateway networks or something simple. instead of using the configuration all the time to change it.
N2UQR
Posts: 1
Joined: Tue Jun 01, 2021 2:43 pm

Re: pi-star API

Post by N2UQR »

Have been looking for API access as well. I'd like to be able to programatically switch channels with something like Node Red. Nothing fancy.

OpenSpot has this capability. Here are some docs:

http://manuals.sharkrf.com/openspot3/en/api.html
https://github.com/sharkrf/osb-http-api

Hope to see something similar, though not necessarily as complex, implemented in pi-star soon.
Post Reply