cyberjunky / RTL-SDR-P2000Receiver-HA

Receive P2000 messages using RTL-SDR stick and post them to Home Assistant
MIT License
23 stars 11 forks source link

not posting to HA #21

Closed firefigther0575 closed 2 years ago

firefigther0575 commented 2 years ago

Dear Ron, currently im testing de receiver i do have output but not posting to ha, after every line that it receives i get the text ignord. can you help me

Dinges28 commented 2 years ago

Please check what is in ignore_text.txt

Probably it has something to general, and it sounds like every message contains than phrase. Maybe a single character or something??

firefigther0575 commented 2 years ago

i did and there is nothing in it...

Dinges28 commented 2 years ago

Did you try to enable debug in the config? Btw; when starting it shows how many things you will accept/ignore/amount of capcodes.

firefigther0575 commented 2 years ago

Yes id did, thats how i saw it. [home-assistant] enabled = True baseurl = * token = *** sensorname = p2000

it loads everything. Loading configuration from 'config.ini' Loading data from 'db_capcodes.txt' 87860 records loaded Loading data from 'db_plaatsnamen.txt' 2510 records loaded Loading data from 'db_pltsnmn.txt' 2505 records loaded Loading data from 'ignore_capcodes.txt' Loading data from 'ignore_text.txt' Loading data from 'match_text.txt' Loading data from 'match_capcodes.txt'

Dinges28 commented 2 years ago

Try renaming the ignore and match files

firefigther0575 commented 2 years ago

Checking if required software is installed rtl_fm is found multimon-ng is found Loading configuration from 'config.ini' Loading data from 'db_capcodes.txt' 87860 records loaded Loading data from 'db_plaatsnamen.txt' 2510 records loaded Loading data from 'db_pltsnmn.txt' 2505 records loaded Loading data from 'ignore_capcodes.txt' 1 records loaded Loading data from 'ignore_text.txt' 0 records loaded Loading data from 'match_text.txt' 0 records loaded Loading data from 'match_capcodes.txt' 0 records loaded RTL-SDR process started with: rtl_fm -f 169.65M -M fm -s 22050 | multimon-ng -a FLEX -t raw - Post thread started Found 1 device(s): multimon-ng 1.1.8 (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA (C) 2012-2019 by Elias Oenal Available demodulators: POCSAG512 POCSAG1200 POCSAG2400 FLEX EAS UFSK1200 CLIPFSK FMSFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI1 ZVEI2 ZVEI3 DZVEI PZVEI EEA EIA CCIR MORSE_CW DUMPCSV X10 SCOPE 0: Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM Detached kernel driver Tuner gain set to automatic. Tuned to 169903575 Hz. Oversampling input by: 46x. Oversampling output by: 1x. Buffer size: 8.08ms Exact sample rate is: 1014300.020041 Hz Sampling at 1014300 S/s. Output at 22050 Hz.

firefigther0575 commented 2 years ago

just a few messages to let you see whats happening

FLEX|2022-01-06 09:15:42|1600/2/K/A|04.000|002029568 001503902 001500199|ALN|P 1 BDH-15 HV Christiaan de Wetstraat 's-Gravenhage 159662 Using message stripping to find address City found: Grave City found: 's-Gravenhage Message 'P 1 BDH-15 HV Christiaan de Wetstraat 's-Gravenhage 159662' ignored (matched ignore_text) FLEX|2022-01-06 09:15:52|1600/2/K/A|04.005|001420057|ALN|B2 AMBU 17202 Rietaak 2924TG Krimpen aan den IJssel KRIMIJ bon 2559 Message 'B2 AMBU 17202 Rietaak 2924TG Krimpen aan den IJssel bon 2559' ignored (matched ignore_text) FLEX|2022-01-06 09:16:05|1600/2/K/A|04.012|002029568 000120999 000120103|ALN|A1 13103 Kolfschotenstraat 1104 Amsterdam 1682 Using message stripping to find address City found: Amsterdam Message 'A1 13103 Kolfschotenstraat 1104 Amsterdam 1682' ignored (matched ignore_text)

cyberjunky commented 2 years ago

@firefigther0575 is there a space character in ignore file perhaps?

firefigther0575 commented 2 years ago

wil have a look

Dinges28 commented 2 years ago

and otherwise rename the ignore_text.txt, so it will be completely ignored

firefigther0575 commented 2 years ago

@ron no blank spacing, @dinges i did that then it still says matched ignore text

Dinges28 commented 2 years ago

does it also say "Loading data from 'ignore_text.txt'"

firefigther0575 commented 2 years ago

yes it does and 0 loaded it says

firefigther0575 commented 2 years ago

Loading configuration from 'config.ini' Loading data from 'db_capcodes.txt' 87860 records loaded Loading data from 'db_plaatsnamen.txt' 2510 records loaded Loading data from 'db_pltsnmn.txt' 2505 records loaded Loading data from 'ignore_capcodes.txt' 1 records loaded Loading data from 'ignore_text.txt' 0 records loaded Loading data from 'match_text.txt' 0 records loaded Loading data from 'match_capcodes.txt' 0 records loaded

firefigther0575 commented 2 years ago

looks like everything in ' ' is ignored

cyberjunky commented 2 years ago

Whats in ignore_capcodes.txt?

firefigther0575 commented 2 years ago

leaved that as is.

Messages with one or more of these capcodes (9 chars long) will be ignored.

capcode[,description]

123456789,TEST GROUP

Dinges28 commented 2 years ago

If you rename the ignore_text.txt, it should come with this log:

Loading data from 'ignore_text.txt'
Could not open/read file: ignore_text.txt

If you rename it, and it still CAN find the file when starting the script... you probably are changing and troubleshooting the wrong files....

firefigther0575 commented 2 years ago

Loading data from 'ignore_text.txt' Could not open/read file: ignore_text.txt

and still it getting the same message looking into the directory if i can find another ignore text file

firefigther0575 commented 2 years ago

did not find it

firefigther0575 commented 2 years ago

with a clean install on a pi with new sd i got the same problem

leejoow commented 2 years ago

I had the same problem. It seems it only works if you do have a ignore file with at least one entry in it. No file or a files with all commented out rows gave me the same error.

firefigther0575 commented 2 years ago

lets try it, nothing to lose

cyberjunky commented 2 years ago

Yeah that could be (and is a bug ofcourse) will have some time tomorrow to fix and enhance it... just put test TEST etc in it each in new line thos msgs are not useful ;-)

firefigther0575 commented 2 years ago

i will give it a minute to test it and will let u know!

cyberjunky commented 2 years ago

I mean *test* and *TEST*

firefigther0575 commented 2 years ago

we have succes!!!!

firefigther0575 commented 2 years ago

thanks For the Help gentlemen.