PyRadmon-Reborn v2.0.0

More
5 years 2 months ago - 5 years 2 months ago #4260 by ThibmoRozier
Hello everyone!
After a long time I've returned to make a big update to PyRadmon-Reborn.

As some of you know I moved the repository to Github, the repository can be found here: https://github.com/thibmo/PyRadmon-Reborn

The rewrite will take some time and I will update this post along the way.

PyRadmon-Reborn is being rewritten for Python 3.x. The contents of requirements.txt:
cffi==1.11.5
numpy==1.16.0
pip==18.1
pycparser==2.19
pyserial==3.4
setuptools==40.6.3
SoundCard==0.2.2

Sneak-peek:
Last edit: 5 years 2 months ago by ThibmoRozier.
The following user(s) said Thank You: mw0uzo

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #4264 by mw0uzo
Replied by mw0uzo on topic PyRadmon-Reborn v2.0.0
Great news Thimo!! Good to see you posting again on the forum, welcome back!
The following user(s) said Thank You: ThibmoRozier

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #4275 by ThibmoRozier
Replied by ThibmoRozier on topic PyRadmon-Reborn v2.0.0
Right, I can now have people test the new revision.
At the moment it only supports 1 single device, not multiple devices. (Might re-add this in an improved manner in the future.)

Attached is the test revision. If there are any issues, please do tell me. :)

File Attachment:

File Name: pyradmon.py
File Size:37 KB


File Attachment:

File Name: pyradmon.s...1-25.txt
File Size:0 KB


To use it as a service you need to:
  • Install python3 and pip (if they are not installed yet): apt-get install python3-pip
  • Install PySerial (if you wish to use a serial device): python3 -m pip install --upgrade pyserial
  • Install SoundCard (if you wish to use an audio device): python3 -m pip install --upgrade SoundCard
  • Download the script to some directory, eg /var/pyradmon/pyradmon.py
  • Change the permissions of the script: chmod 755 /var/pyradmon/pyradmon.py
  • Run the script one to generate the default settings, then modify the settings file: /var/pyradmon/pyradmon.py
  • Login as root (su - or sudo su -)
  • Download the service file to /lib/systemd/system/pyradmon.service
  • Modify the service file if needed
  • Change the permissions of the service file: chmod 644 /lib/systemd/system/pyradmon.service
  • Reload the SystemD service daemon: systemctl daemon-reload
  • Enable the PyRadmon service: systemctl enable pyradmon.service
Attachments:
Last edit: 5 years 2 months ago by ThibmoRozier.
The following user(s) said Thank You: mw0uzo

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #4276 by ThibmoRozier
Replied by ThibmoRozier on topic PyRadmon-Reborn v2.0.0
Oh, and a preview of the new script running as a service under Debian 9.4. :)

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #4279 by mw0uzo
Replied by mw0uzo on topic PyRadmon-Reborn v2.0.0
Ah cool you can set it up as a service! I'll try this soon, as I need to rejig my radmon setup and get it going again. Thank you Thimo!
The following user(s) said Thank You: ThibmoRozier

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #4281 by ThibmoRozier
Replied by ThibmoRozier on topic PyRadmon-Reborn v2.0.0
Found I got a type error when reading from the serial bus (Bytes is not compatible with string), fixed with decode()

File Attachment:

File Name: PyRadmon.py
File Size:37 KB


Here it is running on my Raspberry Pi 1 Model B+ with a RH MyGeiger rev 1.02 attached via a modded-on UART-to-USB:
Attachments:
Last edit: 5 years 2 months ago by ThibmoRozier.

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.229 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 33% Memory 14% Swap 18% CPU temp=59.9'C Uptime 40 Days