PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)

More
9 years 9 months ago - 9 years 9 months ago #576 by James_Gy
How to install PyRadmon on the Raspberry Pi.

In GUI (Desktop).
Download PyRadmon - http://pyradmon-reborn.sourceforge.net/files/PyRadmon/PyRadmon.tar.gz

Extract PyRadmon.py to your home folder.

Open LXTerminal or press ctrl+alt+F1 then ctrl+C to exit the GUI to the command line.

Update repository lists.
sudo apt-get update
Download required Python packages (these may already be installed)
sudo apt-get install python-dev
sudo apt-get install python-serial
Enable super user mode (enter your password, if required)
sudo su
Add user to dialout group (replace <yourusername> with your username, pi is default)
adduser <yourusername> dialout
Reboot
sudo reboot
Boot into the command line using the username you used before or if in the GUI open LXTerminal.
Change directory to your home folder
cd ~
Download pyaudio components
sudo apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev
sudo apt-get install git
sudo git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
Install pyaudio
cd pyaudio
sudo python setup.py install
Run PyRadmon for the 1st time to generate configuration file (config.txt)
cd ~
python ./PyRadmon.py
Find out what serial port your Geiger counter is attached to by running the dmesg command
dmesg | grep -i tty
remember this for editing PyRadmon's config.txt

Edit the config.txt file
sudo nano config.txt
The config.txt file will look like this
# Parameter names are not case-sensitive

# Parameter values are case-sensitive

user=test_user

password=test_password

# Port is usually /dev/ttyUSBx in Linux and COMx in Windows

serialport=/dev/ttyUSB0

speed=2400

# Protocols: demo, mygeiger, gmc, netio, audio

protocol=demo

# In case of audio, input the device number here, default is 0.

device=0
Change test_user to your radmon username and change test_password to your radmon password (Not the site password but the one you use for submitting readings)
Usually the serial port will be /dev/ttyUSB0 but change to whatever serial port your usb serial device is using.
Set the baud rate (speed=2400) suitable for your counter, e.g. 9600 for RH Electronics Arduino IDE kit.
I left the protocol as demo which seemed to work fine with my RH Electronics Arduino IDE Geiger counter,. Can anyone shed any light on this as I was unsure what to use here? EDIT: Apparently this should be changed to `mygeiger' as demo is a "...a pretend geiger counter with a pretend SBM 20...." Thanks Juzzie :)
Save the config.txt file by pressing ctrl+x then y to confirm then press enter when asked for the file name to save the file.

Finally run PyRadmon ( if in the GUI open LXTerminal)
python PyRadmon.py
Last edit: 9 years 9 months ago by James_Gy.
The following user(s) said Thank You: mw0uzo, Salamnder, poppykek, Citibroker

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

More
9 years 9 months ago #578 by Juzzie
protocol for your GC should be mygeiger. Demo protocol is....a pretend GC. It will not be data from your GC. - at least, this is my understanding.

Owner and operator of "southofhobart" monitoring stations.
The following user(s) said Thank You: James_Gy

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

More
9 years 9 months ago #579 by Juzzie
...a pretend geiger counter with a pretend SBM 20....(demo)

Owner and operator of "southofhobart" monitoring stations.

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

More
9 years 9 months ago #580 by James_Gy
Thanks for the info :) I'll look into that and update as necessary.

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

More
9 years 9 months ago #607 by mw0uzo
This guide can replace the one on the download page, I will make it sticky and edit the download page a bit later on :)

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

More
9 years 9 months ago #613 by ThibmoRozier
Ah, thanks for the guide. :)
You did great.
And indeed, demo is just a test function, gc should work with mygeiger.

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

Moderators: Gamma-Man
Time to create page: 0.220 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 56% Memory 21% Swap 70% CPU temp=53.0'C Uptime 72 Days