-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from Resgrid/develop
Develop
- Loading branch information
Showing
25 changed files
with
280 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
sidebar_position: 21 | ||
--- | ||
|
||
# Department Wide Types | ||
|
||
Under the Department Menu in the Types menu option allows you set a number a department wide and module specific types or selection options. | ||
|
||
## Call Types | ||
|
||
By default there are no Call Types defined. A call type allows you organize calls into a category for example, "Structure Fire" or "Motor Vehicle Accident". | ||
|
||
![Call Types List](/img/apps/configuration/types/CallTypes.png) | ||
|
||
Call Types are assignable on Call Creation and are also used in other systems to interact with calls. For example a Protocol or Call Template may utilize the Call Type to set data or perform an operation. | ||
|
||
![Call Types List](/img/apps/configuration/types/NewCallType.png) | ||
|
||
You cannot delete a Call Type once it's been used. If you wish to delete the Call Type you need to delete or update any systems where you used it, for example Protocols, Call Templates, Command Definitions, etc. Once those have been deleted or updated to another type you can then delete the Call Type. | ||
|
||
:::tip Call Types in Calls | ||
Call Type names are used in the Call when stored in the Database, thus changes or deletion of the call type won't impact previously entered calls. | ||
::: | ||
|
||
## Call Priorities | ||
|
||
By default there are 4 Call Priorities defined in Resgrid; Low, Medium, High and Emergency all with default sounds and options. | ||
|
||
![Call Priorities List](/img/apps/configuration/types/CallPriorities.png) | ||
|
||
Once you create one new Call Priority the default ones will be deactivated and you will only have the option to select the Call Priorities you define. To return to the system defaults you will need to delete all your custom call Priorities. | ||
|
||
![New Call Priority](/img/apps/configuration/types/NewCallPriority.png) | ||
|
||
| Name | Description | | ||
| -------------------- | ------------------------------------------------------------ | | ||
| Priority Name | Name of the Call Priority that is selectable/shown | | ||
| Priority Color | Color of the Priority also the Color of Text in Report | | ||
| Sort Order | Lower means first on the lists, default (0) is order created | | ||
| Is Default | Can only be ONE, is the default Priority for automation | | ||
| Dispatch Personnel | Automation, does this priority dispatch Personnel directly | | ||
| Dispatch Units | Automation, does this priority dispatch Units directly | | ||
| Alert Sound | For Push Notifications and the UI, the sound for new calls | | ||
|
||
:::tip Dispatch Personnel and Units | ||
The Dispatch Personnel and Dispatch Units check boxes mean that Calls with this Priority can dispatch those entities (Persons or Units) when used in an automation. For example say you have a "Low" Call Priority and you don't want to wake up Personnel expect those currently staffing a Unit, you would only check the "Dispatch Units" checkbox and when any automation runs to automatically determine who to dispatch it won't automatically select personnel (that meet the automation criteria). For | ||
manually entered in calls the "Dispatch Personnel" and "Dispatch Units" options don't come into play as the person entering the call can select whomever to dispatch. | ||
::: | ||
|
||
## Unit Types | ||
|
||
There are no default Unit Types in the Resgrid system. Unit Types allow you to assign some common aspect between your Units in Resgrid, for example their Map Icon and what Custom Statuses buttons they should be using. | ||
|
||
![Unit Types List](/img/apps/configuration/types/UnitTypes.png) | ||
|
||
When you create Custom Statuses (Actions) for Units, you need to assign that status to a Unit Type and then that Unit Type to a Unit (when you add or update a Unit in the Units Module) for the actions to be visible for a particular unit in the Resgrid Unit or Web Application. | ||
|
||
![Add Unit Type](/img/apps/configuration/types/NewUnitType.png) | ||
|
||
## Certification Types | ||
|
||
Certifications allow you're users to add in Certifications and their information in their own profile. With the Certification Types you can add the certifications you want users to add and maintain in your Resgrid Department. | ||
|
||
![Certifications Types List](/img/apps/configuration/types/CertificationTypes.png) | ||
|
||
Adding a new Certification Type requires you just specific the name of the Certification. | ||
|
||
![Add Certification Type](/img/apps/configuration/types/NewCertificationType.png) | ||
|
||
## Document Categories | ||
|
||
Document Categories (Types) allow you to organize documents together. For example all of your Standard Operating Procedures and all of your Pre-Plan documents could be in different categories to make it easier to find the one your are looking for. | ||
|
||
![Document Types List](/img/apps/configuration/types/DocumentCategories.png) | ||
|
||
Adding a new Document Category is as easy as adding the name of the Category you want to assign Documents to. | ||
|
||
![Add Document Type](/img/apps/configuration/types/NewDocumentCategory.png) | ||
|
||
The Category text name is saved with the Document, changes to these Document Categories will only impact newly created documents. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
--- | ||
sidebar_position: 3 | ||
--- | ||
|
||
# Offline Laptop | ||
|
||
In this guide we will get Resgrid up in running via Docker Compose for local (single user) use on a Windows computer. | ||
|
||
## Use Case | ||
|
||
This setup is intended to get Resgrid up and running on a single-user environment, like a laptop that will not be connected to or have internet access. No external users (i.e. from another machine or mobile device) will be connecting to this installation. For example you are coordinate rescue and recovery efforts for a hurricane from a location on your laptop, you are communicate with your field teams only via a radio as there is no power or cell phone data/WiFi Internet. | ||
|
||
## System Requirements | ||
|
||
1.) Windows 10 or Windows 11 Laptop with WSL2 (Windows Subsystem for Linux) | ||
2.) Docker Desktop with WSL2 Enabled | ||
3.) Enough HDD Space to handle Mapping Data (if you want a large region like North America you'll need 30+ GB) | ||
4.) 4 or more Core Processor | ||
5.) 16GB or more of RAM | ||
|
||
## Setup Notice | ||
|
||
There is no redundancy, backup or fail-over in this setup. Everything runs on the local computer and is not intended to be accessed by anyone off of the local computer. If the local computer gets damaged this could result in loss of data. It's recommend that you have a USB drive that you can backup the database to (ideally the whole resgrid directory) periodically during the operation. | ||
|
||
## Prerequisites & Dependencies | ||
|
||
1. Update Windows | ||
2. Install WSL2 and Ubuntu 22.04 <https://documentation.ubuntu.com/wsl/en/latest/guides/install-ubuntu-wsl2/> | ||
3. Open up your Ubuntu 22.04 instance and finalize the setup (set password). | ||
4. Install Docker <https://docs.docker.com/desktop/wsl/> and enable WSL2 backend. | ||
|
||
## Docker Compose Setup | ||
|
||
1. Open Notepad as Administrator and open C:\Windows\System32\drivers\etc\hosts file. | ||
|
||
2. Add the following lines to the hosts file and save. | ||
``` | ||
127.0.0.1 rg.mylocal | ||
127.0.0.1 rgapi.mylocal | ||
127.0.0.1 rgevents.mylocal | ||
127.0.0.1 rgtile.mylocal | ||
``` | ||
|
||
If you get a permissions error you didn't open up Notepad as Administrator, also don't use any RichText editor (Wordpad, Word, etc). | ||
|
||
3. Navigate to Geofabrik <https://download.geofabrik.de/> and download the .osm.pbf file the region you will be operating in. | ||
|
||
It is not recommend to try and pull an entire Sub Region (i.e. North America) as that will take quite a long time to import into the database. Instead it's recommended to import and additional Sub (Sub) Region, like a US State (i.e. Florida) or a Special Sub Region if they are available (i.e. US South). | ||
|
||
4. Using the Windows File Explorer move the osm.pbf file into Linux (left side bar) Ubuntu-22.04, home and your username folder. This will put it in your home directory. | ||
|
||
5. Start your Ubuntu-22.04 WSL2 Instance so the command prompt is visible. | ||
|
||
6. Clone the setup scripts for the Laptop compose: | ||
|
||
```bash | ||
git clone https://github.com/Resgrid/resgrid-setup.git -b laptop resgrid | ||
``` | ||
|
||
You should now have a folder called resgrid in your current directory. | ||
|
||
7. Open the resgrid directory: | ||
|
||
```bash | ||
cd resgrid | ||
``` | ||
|
||
8. Import the osm.pbf you downloaded and placed in your home directory into the tile server. Change /home/yourname/yourregion.osm.pbf in the command below to the correct home directory name (yourname) and the name of the region file you downloaded (yourregion). | ||
|
||
```bash | ||
docker run \ | ||
-v /home/yourname/yourregion.osm.pbf:/data/region.osm.pbf \ | ||
-v osm-data:/docker-data/osm/ \ | ||
overv/openstreetmap-tile-server \ | ||
import | ||
``` | ||
|
||
If the container exits without errors, then your data has been successfully imported and you are now ready to run the tile server. If you selected a very large region, like North America this process can take days. | ||
|
||
|
||
## Run the Docker Compose | ||
|
||
Once you have setup the environment variables you can now run the docker compose file in the resgrid directory: | ||
|
||
```bash | ||
docker compose up | ||
``` | ||
|
||
That will run the interactive version of the containers, Ctrl+C will stop the containers. | ||
|
||
If you want to run the containers in the background, use the -d option: | ||
|
||
```bash | ||
docker compose up -d | ||
``` | ||
|
||
The Resgrid system will take about 5 minutes to start up fully, this is due to the startup order of the containers. The last container to startup will be the web container, once that one is ready, you can now access the system. | ||
|
||
|
||
## Initial Web Login | ||
|
||
Open up your web browser and navigate to **https://rg.mylocal**, **https://rgapi.mylocal**, **https://rgevents.mylocal** and **https://rgtile.mylocal**. You will need to accept the self-signed cert for each url and add exceptions in the browsers. You can follow this guide <https://it.nmu.edu/docs/adding-security-exception-your-browser> to add those exceptions. | ||
|
||
Once you have completed the steps above you will be able to log into the web applications user interface. Open up a web browser and navigate to **https://rg.mylocal**, you will then be prompted by the login screen. Your default administrator credentials are **admin/changeme1234**. Once you log into the system it’s recommended that you change your admin password from the Edit Profile page by clicking on the Administrator name in the upper left hand corner. | ||
|
||
## Updating | ||
|
||
To update Resgrid you'll need to stop the system, clear the current containers and restart. | ||
|
||
Stop all running containers. | ||
|
||
```bash | ||
docker compose down | ||
``` | ||
|
||
Remove all cached images (to ensure we get new ones). | ||
|
||
```bash | ||
docker rmi -f $(docker images -aq) | ||
``` | ||
|
||
Restart the containers and they will pull new containers. | ||
|
||
```bash | ||
docker compose up -d | ||
``` | ||
|
||
## What's Next? | ||
|
||
This Quick Start gets the system running via local host, but not externally or within your network. You will need to create DNS entries in your internal or external DNS server to point to the server that is running the containers. It's also recommend you change some default values in the resgrid.env file to ensure proper security. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.