News:

Tip: Get a notification of new posts by checking the 'Notify' button in each subforum. Or subscribe to individual replies using Profie - Modify Profile - Notifications - Turn notification on when you post or reply to a topic.

Main Menu

Make filter output file one line per hit?

Started by sm7tix, 27 Dec 2015, 13:15:14

Previous topic - Next topic

sm7tix

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

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

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

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

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

Hi Stefan,
Not sure about the use of languages.df file - trial and error?

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

Cheers
...Steve

Discriminator

Quote from: VidarParry on 31 Dec 2015, 05:04:23
Another one for Rene methinks.....:-)

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

VidarParry

Ah so modest, Rene:-)

Stefan - try posting on the PDW Development board.

Cheers
...Steve