Compare commits
3 Commits
e40d9dfedd
...
6ed41e2662
Author | SHA1 | Date | |
---|---|---|---|
6ed41e2662 | |||
64e4d68d5a | |||
412c516a58 |
11
iniget.inc.php
Normal file
11
iniget.inc.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
if ( file_exists("local.ini") ) {
|
||||
$ini=parse_ini_file("local.ini",TRUE);
|
||||
}
|
||||
if ( strlen($ini["qrzcq"]["mycall"]) >= 3 && strlen($ini["qrzcq"]["apikey"]) == 16 ) {
|
||||
$mycall=$ini["qrzcq"]["mycall"];
|
||||
$apikey=$ini["qrzcq"]["apikey"];
|
||||
}
|
||||
$rmodel=$ini["local"]["rmodel"];
|
||||
$device=$ini["local"]["device"];
|
||||
$dspeed=$ini["local"]["dspeed"];
|
@ -1,3 +1,8 @@
|
||||
[qrzcq]
|
||||
mycall = XXXXXX
|
||||
apikey = XXXXXXXXXXXXXXXX
|
||||
|
||||
[local]
|
||||
device = /dev/ttyUSB0
|
||||
dspeed = 19200
|
||||
rmodel = 129
|
||||
|
10
rigctld.php
10
rigctld.php
@ -1,11 +1,7 @@
|
||||
<?
|
||||
$mycall='XXXXXX'; # my call sign
|
||||
$apikey='XXXXXXXXXXXXXXXX'; # my qrzcq api key
|
||||
$rigctl='/usr/bin/rigctl'; # where rigctl lives
|
||||
$rmodel='363'; # rig model for hamlib
|
||||
$device='/dev/ttyUSB0'; # serial device connected to rig
|
||||
$dspeed='19200'; # serial speed set in rig
|
||||
$ssb_wid='3000';
|
||||
require_once("iniget.inc.php");
|
||||
$rigctl='/usr/bin/rigctl';
|
||||
$ssb_wid='2400';
|
||||
$cw_wid='500';
|
||||
###############################################################
|
||||
print "==> RIG CONNECT... ";
|
||||
|
10
rigctld2.php
10
rigctld2.php
@ -1,11 +1,7 @@
|
||||
<?php
|
||||
$mycall='XXXXXX'; # my call sign
|
||||
$apikey='XXXXXXXXXXXXXXXX'; # my qrzcq api key
|
||||
$rigctl='/usr/bin/rigctl'; # where rigctl lives
|
||||
$rmodel='363'; # rig model for hamlib
|
||||
$device='/dev/ttyUSB0'; # serial device connected to rig
|
||||
$dspeed='19200'; # serial speed set in rig
|
||||
$ssb_wid='2400'; # Icom IC-7600 -> Fil-2
|
||||
require_once("iniget.inc.php");
|
||||
$rigctl='/usr/bin/rigctl';
|
||||
$ssb_wid='2400';
|
||||
$cw_wid='500';
|
||||
###############################################################
|
||||
print "==> RIG CONNECT... ";
|
||||
|
10
rigctld3.php
10
rigctld3.php
@ -1,11 +1,7 @@
|
||||
<?php
|
||||
$mycall='XXXXXX'; # my call sign
|
||||
$apikey='XXXXXXXXXXXXXXXX'; # my qrzcq api key
|
||||
$rigctl='/usr/bin/rigctl'; # where rigctl lives
|
||||
$rmodel='363'; # rig model for hamlib
|
||||
$device='/dev/ttyUSB1'; # serial device connected to rig
|
||||
$dspeed='19200'; # serial speed set in rig
|
||||
$ssb_wid='2400'; # Icom IC-7600 -> Fil-2
|
||||
require_once("iniget.inc.php");
|
||||
$rigctl='/usr/bin/rigctl';
|
||||
$ssb_wid='2400';
|
||||
$cw_wid='500';
|
||||
###############################################################
|
||||
print "==> RIG CONNECT... ";
|
||||
|
Loading…
Reference in New Issue
Block a user