Giter Club home page Giter Club logo

rpi-p2000receiver's Issues

[SOLVED] Capcode filter names not showing with multiple capcodes

I have added all the required capcodes to the capcodes.txt, but if there is more than one capcode in a message, it will not display them. I've tried everything, but it doesn't work.

So if you have one capcode with a message ex: 001100220 and you added this to the capcode file, it will show the name.
ex: 001100220,TestCapcode
Will show: TestCapcode (001100220)
But ex: 001100220 002211550 won't show it.
And the capcode 002029568 and 002029569 are GROUP IDs
(https://monitor.p2000alarm.nl/capcode/2029568 and https://monitor.p2000alarm.nl/capcode/2029569) but they show as a normal capcode. Can I somehow filter these out?

Any idea of how this can work?

vncviewer_mArdj15eyi
sublime_text_ig4vECEGvC
notepad++_ZYBo3LEq0l
opera_KPKn5MGG5r

Posting to server.

Maybe someone can help me.

I post the data to an server, but sometimes the raspberry pi loses its internet connection.
When that happens the post requests will stop forever, is it maybe an option to make an check, if ther is an connection active. so when the raspberry does have internet again, it can start posting again. Now i need to restart the script to start posting to te server again.

Thanks ๐Ÿ‘

Data thread stopped

Hi,

I got this error.

FLEX|2020-06-13 16:40:37|1600/2/K/A|10.029|002029568 001423381 001423001 001420999|ALN|B1 AMBU 18181 Weegje 3295CT 's-Gravendeel SGRAVD bon 71858
POST: {
"body": "B1 AMBU 18181 Weegje 3295CT 's-Gravendeel SGRAVD bon 71858",
"capcodes": [
"AMBU"
],
"groupid": "001420999|ALN|B1",
"is_posted": false,
"priority": 3,
"receivers": "AMBU",
"sender": 0,
"timereceived": 1592066437.2198057,
"timestamp": "16:40:37|1600/2/K/A|10.029|002029568 001423381"
}
dataThreadFunc::Error in line: <class 'IndexError'> p2000.py 606 list index out of range
Data thread stopped

Any idea why?

time in utc not local time

followed your install manual, but my time showed in the browser is in utc not my local timezone.
Current default time zone: 'Europe/Amsterdam'
Local time is now: Thu May 27 22:28:30 CEST 2021.
Universal Time is now: Thu May 27 20:28:30 UTC 2021.

2021-05-27 20:28:16
07.018. To: 002029568, 001423377, 001423001, 001420999
A2 (DIA: ja) AMBU 18177 Willem de Zwijgerstraat 2967EM Langerak LANGRK bon 70079

libTFT

Traceback (most recent call last):
File "p2000.py", line 26, in
import libTFT
ImportError: No module named 'libTFT'

Any thoughts on how to overcome this ?

Bug, regex prio

This message "Prio 4 A12 R 36,5 BODEGR Loslopende dieren" are set to prio 1, but it is prio 4.

image

Errors RaspberryPi 4

Hi,

I have install all on my Raspberry Pi 4 but get the next response;

pi@raspberrypi:~ $ python3 /home/pi/RPi-P2000Receiver/p2000.py

P2000 decoder v0.33 by Dmitrii Eliseev

Run:
python3 p2000.py --lcd=true|false [--filter=filter.txt] [--capcodes=capcodes.txt]

Server running: http://192.168.0.48:8000
API (GET): http://192.168.0.48:8000/api/messages
Websocket: ws://192.168.0.48:8001

LCD in use: no
Frequency: 169.65M
rtl_fm: ok
multimon-ng: ok

Loading /home/pi/RPi-P2000Receiver/capcodes.txt
Capcodes: 2 records loaded
Filter: 0 strings loaded

Loading capcodes for classifier /home/pi/RPi-P2000Receiver/cc_police.txt
  4 loaded
Loading capcodes for classifier /home/pi/RPi-P2000Receiver/cc_fire.txt
  10 loaded
Loading capcodes for classifier /home/pi/RPi-P2000Receiver/cc_ambu.txt
  21 loaded
Websocket thread started
Http server started
Data post thread started
Found 1 device(s):
multimon-ng 1.1.7
  (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
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
No supported tuner found
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
Enabled direct sampling mode, input 1
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
Tuner gain set to 0.00 dB.
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_write_reg failed with -7
Allocating 15 zero-copy buffers
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
WARNING: Failed to set center freq.
Oversampling input by: 46x.
Oversampling output by: 1x.
Buffer size: 8.08ms
Exact sample rate is: 1014300.020041 Hz
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
WARNING: Failed to set sample rate.
Output at 22050 Hz.

Any idea?

Post data other format

Hi,

The post data has some raw format "capcodes=002029568&capcodes=000120999&capcodes=000120117&type=message&timestamp=2019-02-04+22%3A14%3A48&body=A1+13117+Rit+14864+Landsmeer+Weegbreesingel+1121XZ"

But when i send it to an PHP script and will get the $_POST data than i get;

{
capcodes: "001523183",
type: "message",
body: "B1 LUMC (K2-R) SEH LUMC Ambulancehal Brugmansplein LEIDEN : 16183",
timestamp: "2019-02-04 22:18:39"
}

You see only one capcode and not an array, maybe you can fix this?

wich os

wich os are you running on raspberry

Since pocsag is added some date are invalid

Since the pocsag is added to this project there are in the flex protocol invalid messages.

payload { "body": "-", "capcodes": [ "1323864", "1321752" ], "groupid": 0, "is_posted": false, "priority": 2, "receivers": "1323864, 1321752", "sender": 67, "timereceived": 1554798018.4470956, "timestamp": "2019-04-09 09:20:18" }

You see here a sender and before the pocsag it was not.

ImportError: No module named 'tzlocal'

This error i get, how can i fix this?

pi@raspberrypi:~ $ python3 /home/pi/RPi-P2000Receiver/p2000.py
Traceback (most recent call last):
File "/home/pi/RPi-P2000Receiver/p2000.py", line 23, in
import libTFT
File "/home/pi/RPi-P2000Receiver/libTFT.py", line 9, in
import utils
File "/home/pi/RPi-P2000Receiver/utils.py", line 3, in
import tzlocal
ImportError: No module named 'tzlocal'

Line contains ALN or NUM

Hi, I have one more little question for you. Maybe you can help. It's the last "issue" I have, so I won't bother you after this haha.

Most of the FLEX messages is:
FLEX|2020-10-17 18:40:22|1600/2/K/A|10.021|001523161|ALN|A2 Zadelmaker ALPHRN Directe inzet 16161
or
FLEX: 2018-07-29 11:43:27 1600/2/K/A 10.120 [001523172] ALN A1 Boerhaavelaan HAARLM : 16172

But now I have a capcode with a different sort of line:
FLEX: 2020-10-17 18:40:19 1600/2/A 10.020 [001530615] NUM 3301
Where 3301 is the message and NUM is the ALN.

Now the script is filtering on ALN by doing: message = line[line.find("ALN")+4:].strip()
How can I add NUM to the line.find of the old FLEX code.
ShareX_EAQOQhuj4p

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.