Navixy platform by default has certain limits when working with reports and alerts. You can build reports and set up notifications only for a certain number of devices, and in addition, build reports for no more than a certain period. These restrictions are imposed to prevent excessive load on the server, as generation of reports and notifications is a rather resource-intensive operation.
In various business cases, you may find that you need to change (usually increase) the limits mentioned above. For Navixy On-premise solution this can be done if your server performance is sufficient enough.
Number of devices in Reports
Maximum number of devices per report may vary depending on the platform version and the previously made settings.
To change the maximum number of devices, you need to edit Config.js file located at the path:
/var/www/pro-ui/Config.js
(Linux)C:\nginx\www\pro-ui\Config.js
(Windows)
In this file you need to find the reportsMaxTrackersCount block. In recent versions of the platform it looks like this:
reportsMaxTrackersCount:{
StayInPlaces: 100,
TripsAndEvents: 100,
Zone: 100,
DetailingOfTransmittedData: 1
},
In this block you can specify limits separately for each report type.
Sos
Fall
Detach
Safety
LocationRequest
VehicleReadings
DeviceOnOff
ExternalPower
LowBattery
DeviceStatus
Speeding
RoadRulesViolations
DeviceOnOffIdle
TaskReport
DrivingQuality
StatusReport
DriverChangesReport
FormFieldsValues
TripByState
TripByShifts
FuelConsumption
Checkin
DrivingQuality
StayInZones
StayInPlaces
TripsAndEvents
ZoneEvents
DetailingOfTransmittedData
FormFieldsValues
TaskReport
Event
TaskFullReport
However, in most cases it is not necessary to configure the limits separately, and it is enough to specify a general limit for all the reports. To do this, add the line maxTrackersPerReport: XXXXX
to the configuration after the above block. Example (limit of 1000 devices per report):
reportsMaxTrackersCount:{
StayInPlaces: 100,
TripsAndEvents: 100,
Zone: 100,
DetailingOfTransmittedData: 1
},
maxTrackersPerReport: 1000,
After these changes, the maximum number of devices per report will be increased to 1000.
Number of devices in Alerts
The maximum number of devices for alerts is also specified in the Config.js file:
/var/www/pro-ui/Config.js
(Linux)C:\nginx\www\pro-ui\Config.js
(Windows)
You need to find the line:
greenModeTrackersCount: 100,
The value in this line adjusts the number of devices you can select when setting up an alert.
Date range in Reports
By default, the maximum date range for most reports is 90 days. This value can also be increased, but you need to change a different configuration file to do this.
You need to find the api-server configuration. The file is located at the path:
/home/java/api-server/conf/config.properties
(Linux)C:\java\api-server\conf\config.properties
(Windows)
Open this file in a text editor and find the following line:
#reports
maxReportTimeSpan=90d
Change the 90d value to whatever you need. Note that the number of days must be followed by the letter d.