Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 2.25 KB

README.md

File metadata and controls

56 lines (33 loc) · 2.25 KB

dcli examples

This folder contains scripts and examples that demonstrate using the data from the dcli apps.

If you have examples you would like to share you can:

  • Submit them via the issues page
  • Submit them via a pull request
  • Share a link to a page or repository with the example

Please provide a summary including any requirements (such as OS or shell environment), and make sure to comment your script.

All examples hosted in this project are released under an MIT license.

Examples

session

Bash script (tested on OS X and Linux) that tracks and displays Crucible activity stats per play session.

To use, just start the script when you start playing, and it will update your aggregate stats for your session in realtime.

The script pulls member-id, platform and manifest-path from environment variables (see script for var names). You can also just directly edit the script and add them.

Uses dclitime and dcliah.

status_notification

Mac OS X Bash and Windows Powershell scripts script which monitors a player's Destiny 2 status, and sends a notification with info on the new status when it changes.

This is particularly useful on Windows when playing Crucible, as it will display a notification as you load into the map, telling you which map you are loading into.

mail_report

Bash script that uses dcliah to generate and send an email report of weekly Crucible stats. Can be scheduled as part of a crontab job to automate sending.

Requires that a sendmail client is configured on system (although that should be easy to change in the scripts). Requires a newer version of Bash, so you may need to upgrade if running on OS X. Read script for configuration info.

Snippets

Query the activity database for most kills in a single game

$ sqlite3 '/home/mesh/.local/share/dcli/dcli.sqlite3' 'select max(kills) as kills from character_activity_stats'

Outputs:

33.0