This is an old revision of the document!
First system will go in at Katherine soon. There are two raspberry pi PCs, one for the antenna and one for the maser room.
Access via VNC or SSH:
username is pi, password is as usual
Each DHT11 sensor requires 3.3 - 5V, ground and a digital input pin. Pinouts are shown below: Use any 5V and GND pin from the RPi.
Any of the RPi digital pins should be fine to use. That’s the ones labeled BCM here: Raspberry Pi pinouts
Edit the TempHumid.conf
file accordingly (see below), then either restart the software by typing CTRL-C in the start_THRecord xterm or by rebooting the Pi.
Software, config file etc are stored in ~pi/TempHumid
The file TempHumid.conf
describes which of the digital pins have sensors attached to them. e.g:
[pin03] gpio = 2 label = Hub sensor = 11 attached = True
The bin
directory contains the executables:
THRecord.py
: Reads sensors and writes values once per ~20s to a sqlite database in the data directory. Note database should grow at the rate of ~200 MB per year and the RPi has ~10 GB of free space on its microSD card.THServer.py
: Listens on port 60030 and returns the latest values on any query. Could be more sophisticated (different data depending on query), just ask . Example output: 2018-09-09 05:52:00.648388 0.0 0.0 46.0 0.0 0.0 49.0 0.0 48.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -273.0 -273.0 19.0 -273.0 -273.0 20.0 -273.0 19.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0 -273.0
where first two strings are date and time (in UT) then all humidities and then all temperatures. The order of values is in digital pin number order (the same as in TempHumid.conf)
client_test.py
: a test script to poll the server and get the most recent datastart_THRecord.sh
and start_THServer.sh
are started automatically after the RPi boots into a desktop session, so a reboot of the RPi should start these processes.