Read-only mirror of https://github.com/MeteoSwiss/nrbdaq — MeteoSwiss. Issues & pull requests at the source.
  • HTML 66.7%
  • Jupyter Notebook 17.5%
  • Python 15.6%
  • Shell 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-09 09:26:04 +00:00
.vscode fix:miscellaneous concerning sftp transfer of fidas data 2025-05-12 09:40:43 +02:00
docs fix:remove irrelevant docs 2026-01-08 08:26:20 +00:00
logs add logs 2025-06-13 14:41:13 +00:00
nrbdaq fix(sftp.py):multiple bug fixes 2026-01-26 22:29:05 +01:00
results fix:clean ae31 zip files 2025-08-27 12:12:34 +00:00
.dockerignore fix(ae31.py): include line break when accumulating 2024-10-20 20:34:58 +02:00
.gitignore add logs 2025-06-13 14:41:13 +00:00
49i_get_all_lrec.py refactor(ae31.py, thermo.py, nrbdaq.py): 49i integrated 2024-08-29 15:03:32 +00:00
49i_get_lr00.py refactor(ae31.py, thermo.py, nrbdaq.py): 49i integrated 2024-08-29 15:03:32 +00:00
49i_send_cmd.py fix:IP addresses, utility tools 2025-12-12 15:37:50 +00:00
ae31.ipynb fix:IP addresses, utility tools 2025-12-12 15:37:50 +00:00
ae31_fix_files.ipynb fix:clean ae31 zip files 2025-08-27 12:12:34 +00:00
ae31_sniffer.py feat(ae31_sniffer.py):test communication 2025-08-29 15:18:01 +00:00
analysis.ipynb fix(nrbdaq.py):deactivate sftp pending bug fix 2024-11-06 18:13:32 +01:00
aurora3000.ipynb fix(aurora3000.ipynb): update testing notebook to print config 2025-12-19 12:48:42 +00:00
avo.ipynb fix(nrbdaq.yaml): update root, chore: cleanup data, folders 2024-08-21 09:25:20 +00:00
buc_sftp_smoke_test.py feat(buc_sftp_smoke_test.py) 2026-01-26 15:38:30 +00:00
cron fix(cron):bug fix 2026-01-21 16:00:43 +00:00
docker-compose.debug.yml fix(ae31.py): include line break when accumulating 2024-10-20 20:34:58 +02:00
docker-compose.yml fix(ae31.py): include line break when accumulating 2024-10-20 20:34:58 +02:00
Dockerfile fix(ae31.py): include line break when accumulating 2024-10-20 20:34:58 +02:00
fidas.ipynb fix:IP addresses, utility tools 2025-12-12 15:37:50 +00:00
fidas_frames.py chmod fidas_frames.py, ... 2025-08-28 17:16:35 +00:00
fidas_sniffer.py chmod fidas_frames.py, ... 2025-08-28 17:16:35 +00:00
find_49i.py feat(find_49i.py):network scan for 49i devices 2026-01-16 14:06:53 +00:00
frames.jsonl chmod fidas_frames.py, ... 2025-08-28 17:16:35 +00:00
hmp110.py fix(hmp110,vaisal,nrbdaq.yml):various config bugs 2025-12-12 16:03:26 +00:00
hmp110_ascii_scan.py fix:IP addresses, utility tools 2025-12-12 15:37:50 +00:00
install_requirements.sh ae31 v0.0 2024-07-06 09:49:04 +00:00
LICENSE Initial commit 2024-07-05 17:48:52 +02:00
mqtt_client.py feat(mqtt_client.py) 2024-09-28 15:21:11 +00:00
nrbdaq.py fix(nrbdaq.py):determine if instrument is in config before trying to invoke 2026-03-28 17:46:02 +00:00
nrbdaq.sh fix(nrbdaq.sh): comment out named pipe part 2024-09-05 16:07:46 +00:00
nrbdaq.yml fix(nrbdaq.yml):renew ssh key 2026-05-09 09:26:04 +00:00
pytest.ini fix(test_buc_sftp_transfer.py): setup integration test 2026-01-25 07:40:34 +00:00
README.md chore(README.md):update Fidas part 2025-12-13 13:12:45 +03:00
requirements.txt fix(bucdaq.sh):chmod +x bucdaq.sh; fix(requirements.txt):add python-dateutil package 2026-01-21 14:47:58 +00:00
serial_loopback.sh serial_loopback.sh bug fix 2024-07-07 10:38:49 +00:00
serial_scanner.sh bug fix 2024-07-06 13:23:46 +02:00
thermo_nrb.py fix(bomet.py):get and set config to ensure correct date and time 2025-04-30 20:07:42 +02:00

nrbdaq

DAQ for Nairobi GAW station. Intended for deployment on a Raspberry Pi (>=4).

RPI setup

OS

source: https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html

  1. Download RPI imager from https://www.raspberrypi.com/software/ and install OS.
  2. Click Edit Settings from the pop-up.
  3. Fill in all the fields on the General tab: hostname, username / password, wireless LAN (if you plan to use wifi, and locale settings.
  4. On the Services tab, toggle enable SSH to on and select "Use password authentication." Then click Save.
  5. Click Yes to apply OS customization settings.
  6. Pop SD card into the Pi and power it up. It should connect to the LAN using wifi. To verify, we need to open an SSH connection. For ease of use, we will also use Raspberry Connect.

Raspberry Connect

  1. Open a terminal
  2. $ ssh
  3. $ sudo apt update
  4. $ sudo apt install --upgrade ...

setup crontab for automatic execution like so ...

$ crontab -e

  1. add the code shown in file 'cron'
  2. make executable $ sudo chmod +x /home/gaw/git/nrbdaq/nrbdaq.sh

Alternatively, set up a systemd service

  1. copy file 'nrbdaq.service' to /etc/systemd/system/nrbdaq.service
  2. make executable $ sudo chmod 744 /home/gaw/git/nrbdaq/nrbdaq.sh $ sudo chmod 664 /etc/systemd/system/nrbdaq.service
  3. enable service $ sudo systemctl daemon-reload $ sudo systemctl enable nrbdaq.service

linux goodies

read journal

$ sudo journalctl -p err --since "2024-08-27" --until "2024-08-29" show all journal entries of level ERROR in specified period

$ systemctl status cron.service show status of cron

$ ps [aux] show active processes [a: displays information about other users' processes as well as your own. u: displays the processes belonging to the specified usernames. x: includes processes that do not have a controlling terminal.]

list active instances of nrbdaq.py or bucdaq.py

$ pgrep -f -a "nrbdaq.py" $ pgrep -f -a "bucdaq.py"

kill a process by id

$ kill

list USB / serial ports

$ dmesg | grep tty $ lsusb

How-to operate Get red-y MFCs

  1. Install cable PPDM-U driver from /resources
  2. Install get red-y MFC software
  3. Plug in USB cable, check COM port used in device manager
  4. Start get red-y software, select port, search for device, stop search once found

Setup

2024-10-22/jkl

  • Aurora3000

    • flow controlled by get red-y MFC set to 4 lnpm
    • dark count found to be 450-500
    • Wavelength 1 Shtr Count ca 1.1M
    • Wavelength 2 Shtr Count ca 1.6M
    • Wavelength 3 Shtr Count ca 1.7M
  • AE31 flow controlled by get red-y set to 3 lnpm

  • Fidas

    • The Fidas is connected to the DAQ via LAN cable and uses UPD for data transfer. This needs to be configured in the Fidas "Expert User". Presumably due to a bug in the Fidas s/w, it is cumbersome to set the IP address persistently. Follow these exact steps, and then you should succeed:
    1. Open the current promo.ini file, and set the IP to the IP of the DAQ machine (!). Save the file.
    2. Enter the "Expert User" > Interfaces. Switch to UDP mode, then set the IP to the IP to the IP of the DAQ machine (!). Leave the entry field with and by navigating to some other field.
    3. Power off the Fidas using the power switch in the back (!), not using the "shutdown" button in the software.
    4. Switch it back on to verify in the "Expert User" > Interfaces that the IP setting haa persisted.