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
pi-star API
Re: pi-star API
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.
{I see it is time to reboot again -- some update has hung it in R/W mode}
Code: Select all
pi-star@pi-star-3b(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-star@pi-star-3b(rw):~$
--
AF6VN
Dennis L Bieber
Re: pi-star API
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.
Re: pi-star API
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.
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.