.. _running: Running rsudp ################################################# After modifying the settings file to your liking, you are ready to start rsudp. .. role:: bash(code) :language: bash Starting rsudp on Unix ************************************************* Unix users may prefer to start with the easy-to-use start script available in the git repository: .. code-block:: bash bash unix-start-rsudp.sh Starting rsudp on Windows ************************************************* After modifying the settings file, Windows users can double click on the batch file named ``win-start-rsudp.bat`` to start. .. _running-manually: Starting manually on Windows or Unix ************************************************* .. |start_run_tutorial| raw:: html rsudp start/run tutorial video This start method is covered in our |start_run_tutorial|. 1. First, to activate the conda environment, type :bash:`conda activate rsudp`. If you can't do this, and you're on Unix, you may need to :ref:`source`. 2. Next, configure a datacast stream (formerly known as a UDP stream) to forward data to an open port on the computer where this program is running. By default this port is :code:`8888`. 3. The UNIX installer will create a settings file in :bash:`$HOME/.config/rsudp/rsudp_settings.json`. Change the settings in this file to control how the client operates. .. note:: Windows users will need to type :bash:`rs-client -d default` to dump the settings to a file the first time they run this program. .. note:: To dump the default settings to a different location of your choosing, type :bash:`rs-client -d /path/to/settings.json`. .. note:: As stated above, to rebuild and overwrite the default settings file in :bash:`$HOME/.config/rsudp/rsudp_settings.json`, type :bash:`rs-client -d default` 4. After modifying the settings file to your liking, type :bash:`rs-client` to use the settings file at :bash:`$HOME/.config/rsudp/rsudp_settings.json`, or :bash:`rs-client -s /path/to/settings.json` to run with a settings file other than the default one. .. note:: This library can only handle incoming data from one Shake per port. If for some reason more than one Shake is sending data to the port, the software will only process data coming from the IP of the first Shake it sees sending data. All data coming from any other Shake(s) will be ignored. .. _run-test: Running in demonstration/testing mode ************************************************* See more about this functionality in :ref:`test`. To start, open a Terminal or Anaconda Prompt window. 1. Activate the conda environment by typing :bash:`conda activate rsudp`. 2. Type :bash:`rs-test` and press enter. Test data will begin flowing through the program. Several features will be tested, including the earthquake detection functionality, the alarm sound, and the plot. Quitting ************************************************* You can force-stop rsudp in all operating systems by either closing the plot window (if open) or by pressing :kbd:`Ctrl`\ +\ :kbd:`C` with the terminal window in focus. `Back to top ↑ <#top>`_