Skip to content

Handy scripts using Fastvue Reporter's APIs to achieve functionality not available out of the box

Notifications You must be signed in to change notification settings

Fastvue/reporter-handy-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

reporter-handy-scripts

The /scripts folder contains some handy scripts that use Fastvue Reporter's APIs to achieve functionality not available out of the box.

The PowerShell scripts can be secheduled using Windows Task Scheduler to run at desired times. Just make sure the user the task runs as is an Administrator for the Fastvue Reporter website.

CreateAndEmailReport.ps1

This script generates a report for a specified time range in the day, filtered by a list of users and sends an email with the private link to the report, as well as PDF and CSV attachments.

Example: Generate a report on a class of students, as soon as the class finishes. Use this script to generate a report between 11:00am and 11:45 am, for a specific list of users and schedule it on week days at 11:46am.

Here's a video on how to use it.

AddStaffNamesToKeywordGroup.ps1

This script queries Active Directory for a list of staff names and adds them to a keyword group. This is useful for schools that want to know when students are searching for staff online to find their social media profiles.

Edit the "User-Defined Variables" section to enter your AD server and optionally specify a LDAP query or list of Security Groups to search. You can change the AD attribute use as the keywords (displayName is used by default), as well as the name of the Keyword Group to import them into.

CloseOpenIndexes.js

This script closes all open indexes (dates) in Fastvue Reporter's Elasticsearch database, excluding today’s and yesterday’s indexes. Closing indexes frees up memory resources, and Fastvue Reporter will automatically reopen these indexes when needed (e.g., when running reports on older dates).

Instructions:

  1. Update the baseURL variable to match your Fastvue Reporter URL.
  2. In Chrome, go to your Fastvue Reporter's web interface, and navigate to Settings > Diagnostics > Database.
    • If the database status is "Bad" or "Unknown," restart the Fastvue Reporter service in services.msc
    • Wait for the status to show either "Connected", "Waiting for index recovery", "Preparing Elasticsearch" or 'Operational"
  3. Open Chrome DevTools:
    • Press F12 or Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).
  4. Go to the Console tab, paste the script, and press Enter. */

About

Handy scripts using Fastvue Reporter's APIs to achieve functionality not available out of the box

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published