3 Apple Silicon M1 tips
Mark Jessop edytuje tę stronę 2021-12-01 19:25:04 +10:30

Installing using Homebrew on M1

(Still need to check all this is right) Dependencies via brew:

  • brew install coreutils python@3.9 librtlsdr

I highly recommend making a venv to run auto_rx within, e.g:

$ cd radiosonde_auto_rx/auto_rx/
$ python3 -v venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt

You should then be able to build the demods with ./build.sh

Other notes:

  • On OSX 10.12 Monterey, port 5000 appears to be in use already! You will need to adjust the web_port setting in station.cfg.

Old Info (Deprecated)

  • Install Python 3 (this guide used Python 3.9.1 using the installer from python.org)
  • In finder go to Applications/Utilities and duplicate Terminal.app and name it something like Rosetta Terminal.
  • Right click on the duplicated terminal, and Get Info. Tick the box that says "Open with Rosetta"
  • Install homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Install rtl-sdr brew install rtl-sdr
  • Install timeout brew install coreutils
  • pip3 install numpy setuptools crcmod requests python-dateutil flask flask-socketio==4.3.2
  • cd radiosonde_auto_rx/auto_rx
  • ./build.sh
  • cp station.cfg.example station.cfg
  • python3 auto_rx.py