Author Topic: Make filter output file one line per hit?  (Read 12442 times)

sm7tix

  • Senior Member
  • **
  • Posts: 10
    • View Profile
Make filter output file one line per hit?
« on: 27 Dec 2015, 13:15:14 »
Hi
I would like PDW to write the filter logfile one raw per hit. Today my output have linefieeds and so on. Look good in monitor but hard to read into a database. Any suggestions?
Or someone have a bash or pythonscript working to read in the filter-logfile? I have one working on one reciever there the input commes in one line.
Best regards
Stefan / SM7TIX

VidarParry

  • Top Member
  • ***
  • Posts: 126
    • View Profile
Re: Make filter output file one line per hit?
« Reply #1 on: 30 Dec 2015, 10:59:18 »
Hi Stefan,
My PDW filter logfile entries are one line per message for POCSAG, except the filter name is on the following line (after a hard return and a few spaces).

Is that not what you are looking for?

Certainly keen to see a way of automatically sucking the PDW log file data into a database - currently have to do it semi-automatically using string manipulation in Excel, then cut and paste into the final database!!

Cheers
...Steve

sm7tix

  • Senior Member
  • **
  • Posts: 10
    • View Profile
Re: Make filter output file one line per hit?
« Reply #2 on: 30 Dec 2015, 11:40:21 »
Hi Steve
I have two Pdw running on two Icom pcr1000. One id recieving on on one line but the other does not. I think it is how they format the message. Both are pocsag.
The one with oneline i have a pythonscript and bash to put in database automatic.
If message contain coordinates it plot it on a map to. http://stefnet.se:85/larmkarta.html
I have tried many ways to convert the file but so far no luck.
I hope someone can give me clue where to start.
Br Stefan

VidarParry

  • Top Member
  • ***
  • Posts: 126
    • View Profile
Re: Make filter output file one line per hit?
« Reply #3 on: 30 Dec 2015, 12:36:39 »
Hi Stefan,
I'm sure you've tried this - what happens if you swap over the interfaces - does the 'problem' stay with the scanner of the PC/PDW instance? Are the PDW instances both configured the same? What happens if you swap the filters.ini files?

Just trying to narrow down where the problem might be - if one system works and the other one doesn't, you should be able to pinpoint where the problem is (but maybe not the cause!).

Any chance of a copy of your python script?

Cheers
...Steve

sm7tix

  • Senior Member
  • **
  • Posts: 10
    • View Profile
Re: Make filter output file one line per hit?
« Reply #4 on: 30 Dec 2015, 14:49:56 »
From the beginning the two copies of PDW was exact. Now the filterfiles are different. But i have tried the things you suggested and i have noticed that the sendingformat are different on some of the frequencies. They send LF, CR and TAB so it looks nice on screen and i think it looks nice in pager also. One way i have thought about is the file language.cf. Should it be possible to convert all LF, CR and TAB to SPACE?
I can give you a copy of the pythonfiles if you send me and email on sm7tix@gmail.com.
BR Stefan

VidarParry

  • Top Member
  • ***
  • Posts: 126
    • View Profile
Re: Make filter output file one line per hit?
« Reply #5 on: 31 Dec 2015, 05:04:23 »
Hi Stefan,
Not sure about the use of languages.df file - trial and error?

Another one for Rene methinks.....:-)

Cheers
...Steve

Discriminator

  • Administrator
  • Top Member
  • ***
  • Posts: 185
    • View Profile
Re: Make filter output file one line per hit?
« Reply #6 on: 31 Dec 2015, 09:29:25 »
Another one for Rene methinks.....:-)

I'm afraid not. I'm just a user of PDW, not an expert.

VidarParry

  • Top Member
  • ***
  • Posts: 126
    • View Profile
Re: Make filter output file one line per hit?
« Reply #7 on: 31 Dec 2015, 19:15:03 »
Ah so modest, Rene:-)

Stefan - try posting on the PDW Development board.

Cheers
...Steve