Skip to content

A bash script to access your Storj Stats using the dashboard API.

License

Notifications You must be signed in to change notification settings

WilhelmRoscher/storj_stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

BROKEN and unmaintained

The Script is currently non functional. Because the new storj web dashboard provides all the information this script aimed to provide and more, i will not continue working on it.

storj_stats

A bash script to access your Storj Stats using the dashboard API.

Usage

The Script is called using storj_stats.sh <stat>. It can show you the following stats:

stat unit
egress byte
ingress byte
disk byte
upToDate 0/1

If you want additional stats like egress today, the script is very easily extensible. Alternatively, you could contact me ;)

How it works

For egress and ingress the script first reads out the available satellites from the dashboard api. It then collects the traffic for each satellite. The result of this is an array with the traffic for each day, which is then being added up.

The disk and upToDate stats are being read out from the api directly. upToDate returns a true or false, which the script converts into 1 or 0.

Prerequisites

  • The dashboard api has to be accessible at 127.0.0.1:14002. (Add the -p 14002:14002 argument to your docker run command. Additional help)
  • jq

About

A bash script to access your Storj Stats using the dashboard API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages