Author Topic: RCForb Server API for sniffing info  (Read 1462 times)

Offline ny4i

  • Remote Enthusiast
  • ***
  • Posts: 32
RCForb Server API for sniffing info
« on: November 17, 2017, 10:40:18 am »
Is there an API of any sort that I can connect to get information about the current server? I ask as I would like to access data about the remote such as frequency, frequency, rotor heading, etc) and display that on a webpage (specifically on my WordPress site). If I can make a network call and access the info such as a simple telnet port on the server to gain info), then I can have the Raspberry Pi at my remote location gather the data and process it. But I need to get the info independently of if anyone is connected with a client. I suspect I could just implement the client protocol and look like an audio-less client to the server.

I would welcome any suggestions on where to look for more info on this. I have exhausted any documentation beyond a few ports that talks about a couple of commands but not anything like port numbers or the complete protocol.

Tom NY4I
Tom NY4I

Offline w8rj

  • Support Tech
  • Remote Master
  • ****
  • Posts: 2462
Re: RCForb Server API for sniffing info
« Reply #1 on: November 17, 2017, 05:03:25 pm »
There is no API for what your trying to do.

You can use the following url in an iframe to display your radio in a webpage.
http://www.remotehams.com/orb-embed.html?id=YourOrbId

If you set up Unreal Media Player you can also pass RX audio.
http://www.remotehams.com/forums/index.php/topic,16.0.html
73
Roger
W8RJ

Offline ny4i

  • Remote Enthusiast
  • ***
  • Posts: 32
Re: RCForb Server API for sniffing info
« Reply #2 on: November 17, 2017, 08:52:44 pm »
Thanks for the reply. I did a bit more investigation and I did find what I need. In the source to the page to which you referred, I saw a link to get JSON data. http://remote.sparc-club.org:4525/json.js

Quote
jsonpORBCallback({"remote": {"name":"SPARC%20W4GAC%20Remote","welcome":"***%20SPARC%20Members%20Only***Welcome%20to%20the%20RemoteHams%20remote%20of%20the%20St.%20Petersburg%20Amateur%20Radio%20Club.%20This%20remote%20is%20experimental%20and%20for%20the%20members%20of%20the%20club%20that%20have%20been%20qualified%20in%20its%20use.%20Please%20contact%20NY4I%20for%20more%20information%20on%20how%20to%20use%20this%20remote.","popup":"","location": "Pinellas Park, FL, United States","grid":"EL87pu","radio": [{"driver": "K3","frequency": "7074000","frequencyb":"7016400","mode":"DATA","smeter":"S9,9,21","intx":"0","login_required":"1","tx_allowed":"1","club_mode":"1"}],"rotator": [{"driver": "DCU-1","pos": "319"}],"users": [],"chats": []}})

I can just have the WordPress site grab that periodically as it has the frequency of the radio, mode, s-meter status and rotor direction. It is even easier with a JSON importer. So the JSON is exactly the API I needed as a periodic poll is all I want for the website so I will just check every 30 seconds (or less if the traffic is not too much).

This could also be written into a webpage with jQuery or any of the standard ways to process JSON data that dynamically updates.

Thanks!
Tom NY4I