Skip to content

Commit 6a9171f

Browse files
committed
Version 1.2.0
1 parent fe8dbcb commit 6a9171f

File tree

19 files changed

+406
-187
lines changed

19 files changed

+406
-187
lines changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,56 @@
11
# RadexReader
22

3-
The RadexReader is an user-space driver for the [RADEX RD1212](https://quartarad.com/product-category/radiation-detector/) Geiger counter. It allow to read and clear **stored data** via USB. Warning! This tool is completely unrelated with QuartaRad.
3+
The RadexReader is an user-space driver for the [RADEX RD1212](https://quartarad.com/product-category/radiation-detector/) and the [RADEX ONE](https://quartarad.com/product-category/radiation-detector/) Geiger counters. It allow to read and clear stored data via USB. Warning! This tool is completely unrelated with QuartaRad.
44

5-
![RD1212](images/RD1212.jpg?raw=true)
5+
![RADEX RD1212](images/RD1212.jpg?raw=true)
6+
![RADEX ONE](images/ONE.jpg?raw=true)
67

78
## Screenshots
89

910
[![Screnshot 1](images/thumbs/read.png?raw=true)](images/read.png?raw=true)
1011
[![Screnshot 2](images/thumbs/compare.png?raw=true)](images/compare.png?raw=true)
1112

12-
* Read `src/cmd.py` for examples.
13+
* Read `src/radexreader.py` for examples.
1314
* Run the command `radexreader` available with DEB/RPM packages.
14-
* Run the command `cmd.py` available with PYPI package.
15+
* Run the command `radexreader.py` available with PYPI package.
1516

1617
## Installation
1718

18-
It require *libusb*.
19+
It require *libusb*, *pyusb* and *pyserial*.
1920

2021
* Debian and Ubuntu: `sudo apt install python3-radexreader radexreader` (coming soon or via [PPA](https://launchpad.net/~luigifab/+archive/ubuntu/packages))
2122

2223
* Fedora: `sudo dnf install python3-radexreader` (coming soon)
2324

24-
* Linux: `sudo python3 -m pip install pyusb pyserial radexreader` (+libusb)
25+
* OpenSuse: `sudo zypper install python3-radexreader`
2526

26-
* Mac: `sudo pip install pyusb pyserial radexreader` (+libusb)
27+
* Linux: `sudo python3 -m pip install radexreader` (+libusb)
2728

28-
* Windows: `python -m pip install pyusb pyserial radexreader` (+[libusb](https://libusb.info/), put libusb-1.0.dll in system32)
29+
* Mac: `sudo pip install radexreader` (+libusb)
30+
31+
* Windows: `python -m pip install radexreader` (+[libusb](https://libusb.info/), put libusb-1.0.dll in system32)
2932

3033
* Docker Alpine: `sudo docker run --rm --user root -it --privileged -v /dev:/dev python:3.x-alpine /bin/sh`\
31-
then: `apk update ; apk add libusb ; python3 -m pip install pyusb pyserial radexreader`
34+
then: `apk update ; apk add libusb ; python3 -m pip install radexreader`
3235

3336
## PPA
3437

3538
Installation for Debian and Ubuntu with [PPA](https://launchpad.net/~luigifab/+archive/ubuntu/packages):
36-
```
39+
```bash
3740
sudo add-apt-repository ppa:luigifab/packages
3841
sudo apt update
3942
sudo apt install python3-radexreader radexreader
40-
-- or --
43+
# or
4144
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys FFE5BD439356DF7D
4245
echo "deb http://ppa.launchpad.net/luigifab/packages/ubuntu hirsute main" | sudo tee -a /etc/apt/sources.list
4346
sudo apt update
4447
sudo apt install python3-radexreader radexreader
45-
-- or --
48+
# or
4649
sudo wget -O /etc/apt/trusted.gpg.d/luigifab.gpg https://www.luigifab.fr/apt.gpg
4750
echo "deb http://ppa.launchpad.net/luigifab/packages/ubuntu hirsute main" | sudo tee -a /etc/apt/sources.list
4851
sudo apt update
4952
sudo apt install python3-radexreader radexreader
5053
```
51-
5254
```bash
5355
# sha256sum /etc/apt/trusted.gpg.d/luigifab.gpg
5456
578c89a677048e38007462d543686b53587efba9f93814601169253c45ff9213
@@ -60,15 +62,15 @@ pub rsa4096 2020-10-31 [SC]
6062

6163
## Copyright
6264

63-
- Current version: 1.1.0 (04/04/2021)
65+
- Current version: 1.2.0 (05/05/2021)
6466
- Compatibility: Python 3.3 / 3.4 / 3.5 / 3.6 / 3.7 / 3.8 / 3.9
6567
- Links: [luigifab.fr](https://www.luigifab.fr/python/radexreader) - [github.com](https://github.com/luigifab/python-radexreader) - [pypi.org](https://pypi.org/project/radexreader/)\
6668
[debian python-radexreader.deb](https://tracker.debian.org/pkg/python3-radexreader)
6769
*([ITP](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973447),
6870
[RFS](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974217))*\
69-
[fedora python-radexreader.rpm](https://src.fedoraproject.org/rpms/python3-radexreader)
70-
*([RR](https://bugzilla.redhat.com/show_bug.cgi?id=1896742))*\
71-
[launchpad PPA](https://launchpad.net/~luigifab/+archive/ubuntu/packages)
71+
[fedora python-radexreader.rpm](https://src.fedoraproject.org/rpms/python3-radexreader)\
72+
[opensuse python-radexreader.rpm](https://software.opensuse.org/package/python-radexreader)\
73+
[ubuntu PPA](https://launchpad.net/~luigifab/+archive/ubuntu/packages)
7274

7375
This program is provided under the terms of the **GNU GPLv2+** license.\
7476
If you like, take some of your time to improve some translations, go to https://bit.ly/2HyCCEc.

debian/changelog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
python-radexreader (1.1.0-1) unstable; urgency=low
1+
python-radexreader (1.2.0-1) unstable; urgency=low
22

33
* Initial debian package release (Closes: #973447)
44

5-
-- Fabrice Creuzot <code@luigifab.fr> Sun, 04 Apr 2021 20:00:00 +0000
5+
-- Fabrice Creuzot <code@luigifab.fr> Wed, 05 May 2021 20:00:00 +0000

debian/control

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,29 @@ Priority: optional
44
Maintainer: Fabrice Creuzot <code@luigifab.fr>
55
Build-Depends: debhelper-compat (= 13), python3-all, dh-python, dh-exec
66
Rules-Requires-Root: no
7-
Standards-Version: 4.5.0
7+
Standards-Version: 4.5.1
88
Homepage: https://github.com/luigifab/python-radexreader
99
Vcs-Browser: https://github.com/luigifab/python-radexreader
1010
Vcs-Git: https://github.com/luigifab/python-radexreader.git
1111

1212
Package: python3-radexreader
1313
Architecture: all
14-
Depends: ${misc:Depends}, ${python3:Depends}, python3-usb, python3-serial
15-
Description: Reader for the RADEX RD1212 Geiger counter (Python module)
16-
The RadexReader is an user-space driver for the RADEX RD1212. It
17-
allow to read and clear stored data via USB.
14+
Depends: ${misc:Depends}, ${python3:Depends}, python3-serial, python3-usb
15+
Description: Reader for the RADEX RD1212 and ONE Geiger counters (Python module)
16+
The RadexReader is an user-space driver for the RADEX RD1212 and
17+
the RADEX ONE Geiger counters. It allow to read and clear stored
18+
data via USB.
1819
.
1920
To avoid Access denied (insufficient permissions), don't forget
2021
to unplug the device after installation.
2122

2223
Package: radexreader
2324
Architecture: all
2425
Depends: ${misc:Depends}, ${python3:Depends}, python3-radexreader
25-
Description: Reader for the RADEX RD1212 Geiger counter (CLI)
26-
The RadexReader is an user-space driver for the RADEX RD1212. It
27-
allow to read and clear stored data via USB.
26+
Description: Reader for the RADEX RD1212 and ONE Geiger counters (CLI)
27+
The RadexReader is an user-space driver for the RADEX RD1212 and
28+
the RADEX ONE Geiger counters. It allow to read and clear stored
29+
data via USB.
2830
.
2931
To avoid Access denied (insufficient permissions), don't forget
3032
to unplug the device after installation.

debian/deb.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
# debian: sudo apt install dpkg-dev devscripts dh-make dh-python dh-exec
33

44

5-
65
cd "$(dirname "$0")"
7-
version="1.1.0"
6+
version="1.2.0"
87

98

109
rm -rf builder/
@@ -32,7 +31,7 @@ fi
3231

3332

3433
# create packages for debian and ubuntu
35-
for serie in unstable hirsute groovy focal bionic xenial trusty precise; do
34+
for serie in unstable impish hirsute groovy focal bionic xenial trusty precise; do
3635

3736
if [ $serie = "unstable" ]; then
3837
# for ubuntu
@@ -100,7 +99,7 @@ for serie in unstable hirsute groovy focal bionic xenial trusty precise; do
10099
cd ..
101100
done
102101

103-
ls -dltrh $PWD/builder/*.deb $PWD/builder/*.changes
102+
ls -dltrh builder/*.deb builder/*.changes
104103
echo "==========================="
105104

106105
# cleanup

debian/metainfo.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
<id>python3-radexreader</id>
44
<name>python3-radexreader</name>
55
<metadata_license>GPL-2+</metadata_license>
6-
<summary>Reader for the RADEX RD1212 Geiger counter</summary>
6+
<summary>Reader for the RADEX RD1212 and ONE Geiger counters</summary>
77
<description>
88
<p>
9-
The RadexReader is an user-space driver for the RADEX RD1212.
9+
The RadexReader is an user-space driver for the RADEX RD1212 and the RADEX ONE Geiger counters.
1010
It allow to read and clear stored data via USB.
1111
</p>
1212
</description>
1313
<provides>
14+
<!-- RD1212v2 -->
1415
<modalias>usb:v03EBp5603d*</modalias>
16+
<!-- RD1212v1 -->
17+
<modalias>usb:v10C4pEA60d*</modalias>
18+
<!-- ONEv1 -->
19+
<modalias>usb:vABBApA011d*</modalias>
1520
</provides>
1621
</component>

debian/radexreader.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/dh-exec
2-
src/cmd.py => usr/bin/radexreader
2+
src/radexreader.py => usr/bin/radexreader

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
66
dh $@ --with python3
77

88
override_dh_update_autotools_config:
9-
sed -i 's/python3-radexreader /python3-radexreader-deb /g' src/cmd.py
9+
sed -i 's/python3-radexreader /python3-radexreader-deb /g' src/radexreader.py

debian/udev

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
SUBSYSTEM=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="5603", TAG+="uaccess"
1+
SUBSYSTEM=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="5603", TAG+="uaccess"
2+
SUBSYSTEM=="usb", ATTR{idVendor}=="10c4", ATTR{idProduct}=="ea60", TAG+="uaccess"
3+
SUBSYSTEM=="usb", ATTR{idVendor}=="abba", ATTR{idProduct}=="a011", TAG+="uaccess"

fedora/python-radexreader.spec

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,55 @@
1-
%global common_summary_en Reader for the RADEX RD1212 Geiger counter
2-
%global common_summary_fr Lecteur pour le compteur Geiger RADEX RD1212
1+
%global common_summary_en Reader for the RADEX RD1212 and ONE Geiger counters
2+
%global common_summary_fr Lecteur pour les compteurs Geiger RADEX RD1212 et ONE
33

44
%global common_description_en %{expand:
5-
The RadexReader is an user-space driver for the RADEX RD1212 Geiger counter.
6-
It allow to read and clear stored data via USB.
5+
The RadexReader is an user-space driver for the RADEX RD1212 and
6+
the RADEX ONE Geiger counters. It allow to read and clear stored
7+
data via USB.
78

89
To avoid Access denied (insufficient permissions), don't forget
910
to unplug the device after installation.}
1011

1112
%global common_description_fr %{expand:
12-
Le RadexReader est un pilote en espace utilisateur pour le compteur Geiger
13-
RADEX RD1212. Il permet de lire et d'effacer les données stockées via USB.
13+
Le RadexReader est un pilote en espace utilisateur pour les compteurs
14+
Geiger RADEX RD1212 et RADEX ONE. Il permet de lire et d'effacer les
15+
données stockées via USB.
1416

1517
Pour éviter un Access denied (insufficient permissions), n'oubliez pas
1618
de débrancher l'appareil après l'installation.}
1719

18-
Name: python-radexreader
19-
Version: 1.1.0
20-
Release: 1%{?dist}
21-
Summary: %{common_summary_en}
22-
Summary(fr): %{common_summary_fr}
23-
License: GPLv2+
24-
URL: https://github.com/luigifab/python-radexreader
25-
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
26-
BuildArch: noarch
20+
Name: python-radexreader
21+
Version: 1.2.0
22+
Release: 1%{?dist}
23+
Summary: %{common_summary_en}
24+
Summary(fr): %{common_summary_fr}
25+
License: GPLv2+
26+
URL: https://github.com/luigifab/python-radexreader
27+
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
2728

28-
BuildRequires: python3-devel
29+
BuildArch: noarch
2930
BuildRequires: hunspell-fr
30-
Requires: python3
31-
Requires: python3dist(pyusb)
32-
Requires: python3dist(pyserial)
3331

3432
%description %{common_description_en}
3533
%description -l fr %{common_description_fr}
3634

3735

3836
%package -n python3-radexreader
3937
%py_provides python3-radexreader
40-
Summary: %{common_summary_en}
41-
Summary(fr): %{common_summary_fr}
38+
Summary: %{common_summary_en}
39+
Summary(fr): %{common_summary_fr}
40+
41+
BuildRequires: python3-devel
42+
Requires: python3
43+
Requires: %{py3_dist pyserial}
44+
Requires: %{py3_dist pyusb}
45+
4246
%description -n python3-radexreader %{common_description_en}
4347
%description -n python3-radexreader -l fr %{common_description_fr}
4448

49+
4550
%prep
4651
%setup -q -n python-radexreader-%{version}
47-
sed -i 's/python3-radexreader /python3-radexreader-rpm /g' src/cmd.py
52+
sed -i 's/python3-radexreader /python3-radexreader-rpm /g' src/radexreader.py
4853
sed -i 's/\#\!\/usr\/bin\/python3/\#/g' src/radexreader/__init__.py
4954

5055
%build
@@ -57,7 +62,7 @@ cd src
5762
mkdir -p %{buildroot}%{_bindir}/
5863
mkdir -p %{buildroot}/lib/udev/rules.d/
5964
install -p -m 644 ../debian/udev %{buildroot}/lib/udev/rules.d/60-python3-radexreader.rules
60-
install -p -m 755 ../src/cmd.py %{buildroot}%{_bindir}/radexreader
65+
install -p -m 755 ../src/radexreader.py %{buildroot}%{_bindir}/radexreader
6166

6267
%files -n python3-radexreader
6368
%license LICENSE
@@ -69,5 +74,5 @@ install -p -m 755 ../src/cmd.py %{buildroot}%{_bindir}/radexreader
6974

7075

7176
%changelog
72-
* Sun Apr 04 2021 Fabrice Creuzot <code@luigifab.fr> - 1.1.0-1
73-
- Initial fedora package release (Closes: #1896742)
77+
* Wed May 05 2021 Fabrice Creuzot <code@luigifab.fr> - 1.2.0-1
78+
- Initial fedora package release (Closes: rhbz#1896742)

fedora/rpm.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/bin/bash
2-
# debian: sudo apt install dpkg-dev devscripts dh-make dh-python dh-exec rpm
3-
# fedora: sudo dnf install rpmdevtools rpm-sign python3-devel
2+
# fedora: sudo dnf install rpmdevtools rpm-sign python3-devel hunspell-fr
43
# fedora: configure: error: C compiler cannot create executables? remove and reinstall glibc-devel gcc
54

65
cd "$(dirname "$0")"
7-
version="1.1.0"
6+
version="1.2.0"
87

98

109
rm -rf builder/ ~/rpmbuild/
@@ -21,7 +20,7 @@ else
2120
rm -rf /tmp/${temp}/*/builder/ /tmp/${temp}/radexreader/__pycache__/
2221

2322
mv /tmp/${temp} builder/
24-
cp /usr/share/common-licenses/GPL-2 builder/${temp}/LICENSE
23+
cp /usr/share/licenses/linux-firmware/GPL-2 builder/${temp}/LICENSE
2524

2625
cd builder/
2726
tar czf ${temp}.tar.gz ${temp}
@@ -32,7 +31,7 @@ else
3231
fi
3332

3433
# create package (rpm sign https://access.redhat.com/articles/3359321)
35-
rpmbuild --nodeps -ba python-radexreader.spec
34+
rpmbuild -ba python-radexreader.spec
3635
rpm --addsign ~/rpmbuild/RPMS/*/*.rpm
3736
rpm --addsign ~/rpmbuild/SRPMS/*.rpm
3837
mv ~/rpmbuild/RPMS/*/*.rpm builder/
@@ -42,7 +41,7 @@ rpm --checksig builder/*.rpm
4241
echo "==========================="
4342
rpmlint python-radexreader.spec builder/*.rpm
4443
echo "==========================="
45-
ls -dltrh $PWD/builder/*.rpm
44+
ls -dltrh builder/*.rpm
4645
echo "==========================="
4746

4847
# cleanup

0 commit comments

Comments
 (0)