WebRig: Difference between revisions

From Tučňák Wiki
Jump to navigation Jump to search
Ok1zia (talk | contribs)
No edit summary
Ok1zia (talk | contribs)
Line 12: Line 12:
=How to install=
=How to install=
* Download the archive and unzip they into tree of webserver (maybe '''/var/www/webrig''').
* Download the archive and unzip they into tree of webserver (maybe '''/var/www/webrig''').
* Install hamlib utilities - '''sudo apt-get install libhamlib-utils''')
* Install hamlib utilities: '''sudo apt-get install libhamlib-utils''')
* Search for model number of your rig - '''rigctl -l'''. Next text assume 311.
* Search for model number of your rig: '''rigctl -l'''. Next text assume 311.
* Test if hamlib can communicate with radio - '''rigctl -m 311 f'''. This command should return current frequency. In case of problems try to add -vvvvv command to show verbose informations.
* Test if hamlib can communicate with radio: '''rigctl -m 311 -r /dev/ttyUSB0 f'''. This command should return current frequency. In case of problems try to add -vvvvv command to show verbose informations.
* When you discover proper options, run rigctld: '''nohup rigctld -m 311 -r /dev/ttyUSB0 &'''. Ampersand means command is run on background. If you want to stop it, use '''killall rigctld'''. Good way is add this command to the end of /etc/init.d/rc.local script (or similar, depends on your distribution).
* Connect to server using web browser.

Revision as of 21:34, 15 February 2015

Webrig is web application that allows remote control of hamradio transceiver. It uses today's web technologies like HTML5 and AJAX to provide same experience as desktop application.

Screenshot

Principles of operation

Webrig consists of some small PHP scripts. It should run on any web server (apache) with PHP support. To access rig (transceiver) it uses hamlib utility rigctl. WebRig is calling rigctl periodically to read rig state like frequency, mode etc. When user changes rig settings, WebRig sends appropriate command to radio. Because of using of rigctld daemon, more users can access the rig simultaneously.

How to install

  • Download the archive and unzip they into tree of webserver (maybe /var/www/webrig).
  • Install hamlib utilities: sudo apt-get install libhamlib-utils)
  • Search for model number of your rig: rigctl -l. Next text assume 311.
  • Test if hamlib can communicate with radio: rigctl -m 311 -r /dev/ttyUSB0 f. This command should return current frequency. In case of problems try to add -vvvvv command to show verbose informations.
  • When you discover proper options, run rigctld: nohup rigctld -m 311 -r /dev/ttyUSB0 &. Ampersand means command is run on background. If you want to stop it, use killall rigctld. Good way is add this command to the end of /etc/init.d/rc.local script (or similar, depends on your distribution).
  • Connect to server using web browser.