Welcome, Guest
Username: Password: Remember me

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

PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian) 2 years 6 months ago #576

  • James_Gy
  • James_Gy's Avatar
  • OFFLINE
  • New Member
  • Posts: 16
  • Thank you received: 5
  • Karma: 2
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: 2 years 6 months ago by James_Gy.
The administrator has disabled public write access.
The following user(s) said Thank You: mw0uzo, Salamnder, poppykek, Citibroker

PyRadmon install and set up on Raspberry Pi 2 years 6 months ago #578

  • Juzzie
  • Juzzie's Avatar
  • OFFLINE
  • Premium Member
  • Posts: 139
  • Thank you received: 20
  • Karma: 6
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 administrator has disabled public write access.
The following user(s) said Thank You: James_Gy

PyRadmon install and set up on Raspberry Pi 2 years 6 months ago #579

  • Juzzie
  • Juzzie's Avatar
  • OFFLINE
  • Premium Member
  • Posts: 139
  • Thank you received: 20
  • Karma: 6
...a pretend geiger counter with a pretend SBM 20....(demo)
Owner and operator of "southofhobart" monitoring stations.
The administrator has disabled public write access.

PyRadmon install and set up on Raspberry Pi 2 years 6 months ago #580

  • James_Gy
  • James_Gy's Avatar
  • OFFLINE
  • New Member
  • Posts: 16
  • Thank you received: 5
  • Karma: 2
Thanks for the info :) I'll look into that and update as necessary.
The administrator has disabled public write access.

PyRadmon install and set up on Raspberry Pi 2 years 6 months ago #607

  • mw0uzo
  • mw0uzo's Avatar
  • OFFLINE
  • Moderator
  • Posts: 875
  • Thank you received: 179
  • Karma: 23
This guide can replace the one on the download page, I will make it sticky and edit the download page a bit later on :)
The administrator has disabled public write access.

PyRadmon install and set up on Raspberry Pi 2 years 6 months ago #613

  • ThibmoRozier
  • ThibmoRozier's Avatar
  • OFFLINE
  • Elite Member
  • Posts: 182
  • Thank you received: 29
  • Karma: 9
Ah, thanks for the guide. :)
You did great.
And indeed, demo is just a test function, gc should work with mygeiger.
The administrator has disabled public write access.
Time to create page: 0.088 seconds
Powered by Kunena Forum