.. _3di_instruments_and_downloads: Install and update manual ========================= .. note:: Are you running into problems when downloading or updating the software? Please consult the :ref:`problem solving` section. If the error and/or solution is not mentioned, please contact our :ref:`servicedesk` .. _MI_installation: Installing the Rana Desktop Client ---------------------------------- To install the Rana Desktop Client, download and execute the `Rana Desktop Client Installer 3.40.7 installer `_ .. _setting_up_models_and_simulations: 3Di Models and Simulations settings (first use) ----------------------------------------------- When you start the 3Di Modeller Interface for the first time, you need to set two configuration settings: * :ref:`personal_api_key` to be able to use the online functionalities of 3Di. The QGIS Password Manager stores this Personal API Key securely (encrypted). * Working directory to store schematisations and simulation results. It is strongly recommended to use a directory on your local drive, not a shared drive. .. note:: If you have never used the QGIS Password Manager before, you will be asked to set a master password for the QGIS Password Manager. Fill in a password and make sure you remember it. Check the box 'Store/update the master password in your Password Manager' so that you do not have to fill in the master password every time you start up QGIS. #) Open the 3Di Modeller Interface #) Click on the 3Di Models and Simulations icon (|modelsSimulations|). You should now see the 3Di Models and Simulations Settings dialog. #) The *Base API URL* default is https://api.3di.live. Change this if you want to connect to one of our other calculation centers. E.g., for Taiwan, the base API URL is https://api.3di.tw/ #) Click *Browse* and set a local working directory. #) Click *Obtain...* to obtain your :ref:`personal_api_key`. You will be redirected to the management page where you can `create a new Personal API Key `_. #) Create a new Personal API Key by pressing the *+ NEW ITEM* button in the upper right corner. #) Fill in a name for the new Personal API Key. Click on 'Submit' to the right. #) You now have your own Personal API Key. Copy it. #) Return to the 3Di Modeller Interface. #) Click *Set…* and paste your Personal API Key. Then click *Save*. #) You are now logged in and your name should appear next to User. You can now easily **log out** by clicking on the cross. #) And **log in** by clicking on the arrow. You can now use all online 3Di functionalities of the 3Di Modeller Interface. When logging in is required, the Personal API Key will be read from the QGIS Password manager and be used for logging in. .. note:: You can install the Modeller Interface for all users if you run the installer as administrator. .. |modelsSimulations| image:: /image/pictogram_modelsandsimulations.png :scale: 90% .. _updating_plugin_schem_editor: Updating the Rana Desktop Client -------------------------------- The Rana Desktop Client consists of two parts: QGIS and Rana plugins. Each of these components has to be updated in a different way. The Rana Desktop Client is based on the long-term release (LTR) version of QGIS. The LTR is updated **annually**, in March. It is recommended to re-install the :ref:`Rana Desktop Client` every year at the end of March. .. note: Updating the Rana Desktop Client will **not** update any plugins. QGIS plugins are installed in the *User Profile* folder, which is not removed when updating QGIS. The :ref:`mi_3di_plugins` can be updated in the following way: #) Start the Rana Desktop Client #) If any schematisation is loaded, remove them before proceeding #) In the main menu click *Plugins* > *Manage and Install plugins* #) At the left side, click *Installed* #) Plugins that can be updated are shown in **bold** .. note:: If you update, always update *all* Rana plugins that have updates available at the same time. #) Click the plugin name. At the bottom right, click *Upgrade plugin* #) If you are asked to install or update the Nelen & Schuurmans Dependency Loader, please do so. #) Updating the Nelen & Schuurmans Dependency Loader requires a restart of the Rana Desktop Client. Do this when prompted, and also when you get a Python error during installation. Advanced: separate installation of QGIS and Rana plugins ------------------------------------------------------- You can also install QGIS separately with the appropriate plugins. This is not recommended. Do this only if you have specific reasons for it, and you know what you are doing. Do the following: * QGIS Standalone Installer (Long term release). `Get QGIS `_ . After the installation of QGIS, set the interface language and locale to American English. This makes it easier to understand the instructions in this documentation. Some locales do not support scientific notations of numbers, these are required for very small numbers (e.g. 1e-09). * Go to Settings > Options > General * Tick the box 'Override System Locale' * For User Interface Translation, choose 'American English' * For Locale, choose 'English United Kingdom (en_GB)' * Restart QGIS .. note: The Rana plugins are tested for the version of QGIS that is installed with the Rana Desktop Client installer (usually the latest Long Term Release version of QGIS). If they also work for older or newer versions of QGIS, congrats, it is your lucky day :). * Add the Rana plugin repository * In the main menu click *Plugins* > *Manage and Install plugins* > *Settings* * In the section *Plugin repositories*, click *Add* * As details, fill in '3Di' as *Name*, and 'https://plugins.3di.live/plugins.xml' as *URL* * Install the Rana plugins: in the tab *All*, install the :ref:`mi_3di_plugins`. Restart QGIS when prompted. * Enable project's embedded Python code: Make sure that this is set to *Always* in Settings > Options > General > Project files. .. note: On Linux/OSX: install the following system dependencies: `python3-h5py python3-scipy python3-pyqt5.qtwebsockets` Information for system administrators -------------------------------------- General information ^^^^^^^^^^^^^^^^^^^^ All applications make use of https traffic over port 443 with public signed SSL/TLS certificates. If certificate errors show, please check any security software. One way of testing this is by visiting https://api.3di.live/v3.0/ in a browser and check the certificate. If it is issued by R3, this is the certificate configured by us. Any other name will point towards the security software in use. .. _setup_modeller_interface: Rana Desktop Client ^^^^^^^^^^^^^^^^^^^ The Rana Desktop Client is a customized version of QGIS, shipped with several pre-installed plugins and settings, see :ref:`mi_technical_setup`. Its :ref:`mi_3di_plugins` are maintained by Nelen & Schuurmans. QGIS itself and the other pre-installed plugins are not made / maintained by Nelen & Schuurmans. Install instructions for the Rana Desktop Client can be found in :ref:`MI_installation`. Because the Rana Desktop Client is a customized QGIS, we refer to the QGIS documentation when you run into any issues that are not specifically related to the Rana plugins: * QGIS User Manual: https://docs.qgis.org/latest/en/docs/user_manual/ * Installation section in QGIS User Manual: https://docs.qgis.org/latest/en/docs/user_manual/introduction/getting_started.html#installing-qgis **URLs accessed by Rana Desktop Client** Make sure the Rana Desktop Client is allowed to communicate with following URLs: * Hydrodynamic calculation core API: https://hcc-api.ranawaterintelligence.com/ (each time a simulation is started from the Rana Desktop Client)