The use is as follows:
When you see a CQ, or the answer to your CQ, a Double-right-click on the call
will send to DBLog the call, the locator and the level of reception (sent
report); besides DBLog is set in "start QSO" mode and WSJT will start to
transmit.
DBLog will show the list of QSO with that station if Worked Before and will
show its position on the map.
Also Name and QTH will appear into the main window if available.
When the other station sends you the report Control-right-click on it: it will
be copied into the received report box of DBLog
At the end of the QSO push "Log QSO" on WSJT main window to log the QSO both
on DBLog and on WSJT.
On http://www.qsl.net/zp4kfx/Linux/WSJT you can find a patched version named
wsjt.py. Rename first your original version, then put the new wsjt.py into
the wsjt directory.
Please Joe, K1JT, would you mind to insert these changes into the main stream
of WSJY for Linux ?
Best 73
Pino ZP4KFX
----------------------------------CUT HERE-----------------------------------
5d4
< import asyncore, socket # For connecting to DBLog
33d31
< print " Modified by ZP4KFX to enable logging into DBLog"
53,65d50
< #------------------------------------------------------ For DBLog
< dblog=0 # <> 0 if connected to DBLog
< locator=""
< HOST = '127.0.0.1' # Change this if on another computer
< PORT = 3164 # DBLog server on the same computer
< s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
< try:
< s.connect((HOST, PORT))
< print "Connected to DBLog "
< dblog=1
< except:
< print "DBlog not found"
< #
67d51
< recrpt="" # Received Report to be sent to DBLog
197,198d180
< if dblog ==1 :
< s.close() # connection to DBLog
237,240c219
< if dblog ==1 : # Logit to DBLog
< s.send('L:')
< dblog_risp = s.recv(1024)
< print 'For LogIt received ', repr(dblog_risp)
---
>
252,281c231
< #---------------------
< def report_event(event): ### From TT
< """Print a description of an event, based on its attributes.
< """
< event_name = {"2": "KeyPress", "4": "ButtonPress"}
< print "Time:", str(event.time)
< print "EventType=" + str(event.type), \
< event_name[str(event.type)],\
< "EventWidgetId=" + str(event.widget), \
< "EventKeySymbol=" + str(event.keysym)
< #---------------
< def single_click_text(event): # single right click
< report_event(event) # called also by the double click !!! is it a
BUG ?
<
< #------------------------------Control-Right-click_text for catching
Received Report for DBLog
< def click_text(event):
< # check if is single click or double-click ...how ?
< report_event(event)
< global recrpt
< t=text.get('1.0',END) #Entire contents of text box
< t1=text.get('1.0',CURRENT) #Contents from start to mouse pointer
< i1=t1.rfind(' ')+1 #index of preceding space
< i2=i1+t[i1:].find(' ') #index of next space
< recrpt= t[i1:i2].lstrip('R') #selected word, assumed as
callsign
< print "click-text",recrpt
< if dblog ==1 :
< s.send('R:'+recrpt) # Received Report to DBLog
< dblog_risp = s.recv(1024)
< print 'For ReceivedReport received ', repr(dblog_risp)
< #
---
>
284d233
< report_event(event)
294,295d242
< report_event(event)
< global rpt
330d276
< report_event(event)
334,335c280
<
< #------------------------------------------------------ dbl_click_call
<----CALL
---
> #------------------------------------------------------ dbl_click_call
337d281
< report_event(event)
343,349d286
< # Here can extract the GRID Locator ... Added by ZP4KFX
< global locator
< locator=t[i2+1:i2+5]
< print "Locator :",locator
< # HisGrid.delete(0,END) # Does not work here....maybe overwritten
later
< # HisGrid.insert(0,locator)
< #
380,401c317
< if event.num==3 and not lauto:
< toggleauto() # Start transmission on double
Right Click
<
< print "HisCal : "+ hiscall # sent hiscall to DBLog
< if dblog ==1 :
< s.send('C:'+ hiscall)
< dblog_risp = s.recv(1024)
< print 'For Call received ', repr(dblog_risp) # Mame, QTH and Grid if
available to be
< s.send('M:'+mode.get()) # displayed on the WSJT window
< dblog_risp = s.recv(1024) # maybe write them to labAz.configure ?
< print 'For Mode received ', repr(dblog_risp)
< s.send('LO:'+ locator)
< dblog_risp = s.recv(1024)
< print 'For Locator received ', repr(dblog_risp)
< print "Sent Report :",rpt
< s.send('S:'+rpt) # Sent Report
< dblog_risp = s.recv(1024)
< print 'For SentReport received ', repr(dblog_risp)
< s.send('IN:')
< dblog_risp = s.recv(1024)
< print 'For StartQSO received ', repr(dblog_risp)
< #
---
> if event.num==3 and not lauto: toggleauto()
547,550d462
< if dblog ==1 and hisgrid=="" : # For DBLog # and hisgrid=="" ???
< HisGrid.delete(0,END) # write locator from the received call or
CQ
< HisGrid.insert(0,locator)
<
1771d1682
< # endif isec != isec0:
1825d1735
< #endif mode
2332,2333d2241
< text.bind('<Control-Button-3>',click_text) # By ZP4KFX for
DBLog
< text.bind('<Button-3>',single_click_text) # experimeting
----------------------------------
--
"In the universe there is no time existing as a physical reality,
there is no past, no present and no future"
"Time is a mind construction into which one experiences motion"
"Time is a flow of irreversible material changes"
-Davide Fiscaletti
Key ID: 0xF6768208
Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208
Key server: hkp://wwwkeys.eu.pgp.net