iu5jae / pysfreflector Goto Github PK
View Code? Open in Web Editor NEWYSF Reflector
License: GNU General Public License v3.0
YSF Reflector
License: GNU General Public License v3.0
follow install procedure but get error as blow
python3 ./YSFReflector /opt/pYSFReflector/YSFReflector.ini
File "./YSFReflector", line 1423
s1 = " ".join([f"{i:02x}" for i in b]) # hex string
Could this be made to listen on IPv6 as well? I am running a duel stack setup and it would be helpful to allow IPv6 clients to connect.
Thanks.
Hello Daniel PU5KOD from Brazil here.
Just now I noticed a specific situation occurring with the current version of the reflector.
I have two active YSF reflectors and in both I was able to reproduce the fault, the situation is as follows, DStar users using OpenSpot3 doing crossmode to YSF are not able to pass the audio to the reflector, in the opposite way it can hear, I have been watching the log and noticed that these transmissions made in DStar are being blocked by some part of the rule, it is also worth remembering that I have no registered lock.
Below is a part of the log where a transmission made in DStar is blocked, user PR7DD is in DStar via crossmode to YSF using a Kenwood THD74.
M: 2021-06-28 14:53:09.168 Received data from PU5KOD to ALL at PU5KOD
M: 2021-06-28 14:53:09.168 Received end of transmission
M: 2021-06-28 14:53:17.952 Data from PR7DD TH at PR7DD blocked/CS
M: 2021-06-28 14:53:32.572 Removed from blockeds queue 32
M: 2021-06-28 14:53:44.280 Data from PR7DD TH at PR7DD blocked/CS
M: 2021-06-28 14:53:47.919 Received data from PU5KOD to ALL at PU5KOD
M: 2021-06-28 14:53:49.903 Removed from blockeds queue 32
M: 2021-06-28 14:54:48.367 Currently linked repeaters/gateways:
M: 2021-06-28 14:54:48.367 PR7DD : 170.244.197.254:12082 3/60 : 2021-06-28 14:52:59
M: 2021-06-28 14:54:48.367 PU5KOD : 187.108.0.156:42001 4/60 : 2021-06-28 14:53:09
M: 2021-06-28 14:54:48.367 No repeaters/gateways muted
M: 2021-06-28 14:55:27.889 Received end of transmission
M: 2021-06-28 14:55:33.505 Data from PR7DD TH at PR7DD blocked/CS
M: 2021-06-28 14:55:36.210 Removed from blockeds queue 32
M: 2021-06-28 14:55:39.939 Received data from PU5KOD to ALL at PU5KOD
M: 2021-06-28 14:55:58.810 Received end of transmission
M: 2021-06-28 14:56:02.620 Data from PR7DD TH at PR7DD blocked/CS
M: 2021-06-28 14:56:12.081 Removed from blockeds queue 32
M: 2021-06-28 14:56:18.489 Received data from PU5KOD to ALL at PU5KOD
M: 2021-06-28 14:56:26.653 Received end of transmission
M: 2021-06-28 14:56:35.233 Data from PR7DD TH at PR7DD blocked/CS
M: 2021-06-28 14:56:41.965 Received data from PU5KOD to ALL at PU5KOD
M: 2021-06-28 14:56:43.842 Removed from blockeds queue 32
M: 2021-06-28 14:56:47.538 Received end of transmission
M: 2021-06-28 14:56:48.370 Currently linked repeaters/gateways:
M: 2021-06-28 14:56:48.370 PR7DD : 170.244.197.254:12082 2/60 : 2021-06-28 14:52:59
M: 2021-06-28 14:56:48.371 PU5KOD : 187.108.0.156:42001 4/60 : 2021-06-28 14:53:09
M: 2021-06-28 14:56:48.371 No repeaters/gateways muted
M: 2021-06-28 14:58:48.467 Currently linked repeaters/gateways:
M: 2021-06-28 14:58:48.467 PR7DD : 170.244.197.254:12082 4/60 : 2021-06-28 14:52:59
M: 2021-06-28 14:58:48.468 PU5KOD : 187.108.0.156:42001 4/60 : 2021-06-28 14:53:09
M: 2021-06-28 14:58:48.468 No repeaters/gateways muted
M: 2021-06-28 15:00:35.068 Received data from PU5KOD to ALL at PU5KOD
M: 2021-06-28 15:00:48.568 Currently linked repeaters/gateways:
M: 2021-06-28 15:00:48.569 PR7DD : 170.244.197.254:12082 1/60 : 2021-06-28 14:52:59
M: 2021-06-28 15:00:48.569 PU5KOD : 187.108.0.156:42001 4/60 : 2021-06-28 14:53:09
M: 2021-06-28 15:00:48.569 No repeaters/gateways muted
M: 2021-06-28 15:01:21.942 Received end of transmission
M: 2021-06-28 15:02:48.638 Currently linked repeaters/gateways:
M: 2021-06-28 15:02:48.638 PR7DD : 170.244.197.254:12082 3/60 : 2021-06-28 14:52:59
M: 2021-06-28 15:02:48.639 PU5KOD : 187.108.0.156:42001 4/60 : 2021-06-28 14:53:09
M: 2021-06-28 15:02:48.639 No repeaters/gateways muted
I already inserted the callsign that is being blocked in the white list but I haven't had the opportunity to test it yet, but even if it works I would only solve this user's problem, leaving all others at the same circumstances blocked.
If anyone can check or give me any suggestions to resolve the situation I would be extremely grateful.
Thanks for listening!
Hi, Please could you write details on how you actually install a Python YSF Reflector
Thank you, Bear
Hi there,
I have tryed to upgrade our YSFReflector to pYSFReflector release without succeded.
In few words, I cannot see port 42000 or others open. I follow several time the installation instruction, step by step but with bad result.
WSYSFDashbord is working using standard YSFReflector.
Where I' m wrong ? Any suggestions / idea ?
Thanks in adavance for any help
73 IU2KUL
hi there
it could be me but the code seame not to be working on down load l have gobbledygook
thanks
I’d much rather run this behind a reverse proxy rather than exposing port 42000. How can I achieve this if at all? I have it working otherwise but I’d like to host more reflectors. I’d prefer not to open all the ports on my gateway but rather use reverse proxy. Exposing my IP and port to the world on the ysf reflector public page seems a bit risky.
Hi,
I think it can be very helpful to generate a requirements.txt, which can be used to install all the python modules with the help of pip in one step.
Like pip install -r requirements.txt [--upgrade]
. It's easier for the people I think and for update/upgrade the moduls.
73 Heiko, DL1BZ
The Reflector runs much more reliably than the previous one I was using(!) Great work.
Every week or so I get an error like the following or a general parsing related error and the service stops. Any thoughts?
Thanks
Feb 02 13:08:44 zbm2 systemd[1]: Starting YSFReflector...
Feb 02 13:08:46 zbm2 systemd[1]: Started YSFReflector.
Feb 03 09:33:18 zbm2 python3[899]: Starting pYSFReflector-20210606
Feb 03 09:33:19 zbm2 python3[899]: Traceback (most recent call last):
Feb 03 09:33:19 zbm2 python3[899]: File "/usr/local/bin/YSFReflector", line 922, in
Feb 03 09:33:19 zbm2 python3[899]: RunServer(config)
Feb 03 09:33:19 zbm2 python3[899]: File "/usr/local/bin/YSFReflector", line 666, in RunServer
Feb 03 09:33:19 zbm2 python3[899]: tx_ok = canTrasmit(data[14:24].decode().strip(), CheckRE)
Feb 03 09:33:19 zbm2 python3[899]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 4: invalid start byte
Going to take a stab at this and hopefully I explain this properly. I have a running pYSFR and using the php dashboard, not the Web Socket. In my research of logrotate, I've found the reason it doesn't work with the reflector is the log file is dated. So my question to you gents. Is there a way to re-name the file that's generated daily without the time stamp? Thanks in advance......
hi there having trouble
root@raspberrypi:/opt/pYSFReflector# python3 ./YSFReflector /opt/pYSFReflector/YSFReflector.ini
File "./YSFReflector", line 857
s1 = " ".join([f"{i:02x}" for i in b]) # hex string
can you please iam very new to all this
thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.