User Tools

Site Tools


operations:temphumidmonitor

This wiki is not maintained! Do not use this when setting up AuScope experiments!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
operations:temphumidmonitor [2018/09/09 23:42]
Jim Lovell [Network config]
operations:temphumidmonitor [2019/03/25 21:20] (current)
Jim Lovell
Line 1: Line 1:
-====== ​Temperature and Humidity monitoring ​at AuScope sites ======+====== ​Monitoring ​at AuScope sites ======
  
-First system will go in at Katherine soon. There are two raspberry pi PCs, one for the antenna and one for the maser room.+Raspberry Pi PCs are being installed at the sites for monitoring temperature and humidity in the antenna and (in Katherine) any vibrations on the maser.
  
-===== Access: =====+First system is in at Katherine which has two raspberry pi PCs, one for the antenna and one for the maser room. The other sites will have PCs in the antenna.
  
-Access via VNC or SSH:+===== Hardware and Software setup =====
  
-username is pi, password is as usual +  * [[operations:temphumidmonitor_hardware|Hardware setup and configuration]] 
- +  * [[operations:temphumidmonitor_software|Software ​setup and configuration]
- +  * [[operations:​temphumidmonitor_rpisetup|Raspberry ​Pi access, setup and configuration]]
-===== Hardware setup ===== +
- +
-Each DHT11 sensor requires 3.3 - 5V, ground and a digital input pin. Pinouts are shown below: +
-{{ :​undefined:​dht11pins2.png?​direct&​100 | DHT11 pins}} +
-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: [[https://​pinout.xyz/​pinout/​|Raspberry Pi pinouts]] +
- +
-{{ :operations:dpi_at_raspberry_pi_gpio_pinout.png?​direct&​100 ​RPi pinout diagram}} +
- +
-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 ​===== +
-Software, config file etc are stored in ''​~pi/​TempHumid''​ +
- +
-==== Configuration:​ ==== +
-The file ''​TempHumid.conf''​ describes which of the digital pins have sensors attached to them. e.g: +
- +
-<​code>​ +
-[pin03] +
- gpio = 2 +
- label = Hub +
- sensor = 11 +
- attached = True +
-</​code>​ +
- +
-  * gpio is the corresponding GPIO pin. Do not change this one! +
-  * label is a description of the sensor, e.g. it’s location +
-  * sensor is the sensor type. 11 = DHT11, 22 = DHT22 +
-  * attached = True or False and indicates if the sensor is plugged in or not (or if you want to record it or not). The software will ignore this pin if set to False +
- +
-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: <​code>​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</​code>​ 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 data +
-  * ''​start_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. They are called from ''​~/​.config/​lxsession/​LXDE-pi/​autostart''​. Edit this file if you want to change what happens when the desktop starts. +
- +
-==== Network config ==== +
-For masertempke the IP address should be 131.217.61.28. +
-For antennatempke the IP address should be 131.217.61.29. +
- +
-Edit ''/​etc/​dhcpcd.conf'':​ +
- +
-<​code>​ +
-interface eth0 +
-static ip_address=131.217.61.28/​26 +
-# /26 = netmask of 255.255.255.192 +
-static routers=131.217.61.1 +
-static domain_name_servers=131.217.0.19 +
-</​code>​ +
- +
-The hostname should be correct but can be set via the Preferences/​Raspberry Pi configuration GUI on the desktop. +
- +
-Reboot. +
- +
-==== Packages installed ==== +
- +
-[[operations:​temphumidmonitorrpi|Configuring ​Raspberry ​Pis for Temperature ​and Humidity monitoring]]+
  
  
/home/www/auscope/opswiki/data/attic/operations/temphumidmonitor.1536536571.txt.gz · Last modified: 2018/09/09 23:42 by Jim Lovell