Skip to content

striker43/storjWidget-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StorjWidget-Exporter

0x187C8C43890fe4C91aFabbC62128D383A90548Dd

StorjWidget-Exporter starts a python Flask server which pulls information from storj node api for node, satellite and payout metrics and aggregates the data. The endpoint is returning the total ingress and egress over all nodes, the estimated daily earnings and the current months earnings, total space used and total space available, total number of queried nodes and online count of queried nodes.

The Exporter's endpoint will be available at http://localhost:3123/bandwidth

Tested with storj node version 1.67.3

Support

Feel free to raise issues if you find them and also raise a pull request if you'd like to contribute.

If you wish to support my work, please find my eth/storj wallet address below or scan the qr code:

0x80E88Ac925B259faedeD7d05c99BfA934952084a

0x187C8C43890fe4C91aFabbC62128D383A90548Dd

Usage

  • StorjWidget-Exporter can be installed as a docker container or run as a standalone script
  • Make sure you have -p 127.0.0.1:14002:14002 in your storagenode container docker run command to allow local connections to your node's api

Installation

Docker installation

Create docker volume where daily payout data will be stored
docker volume create --name storjWidgetVolume
Run latest build from DockerHub
docker run -d --restart always --privileged -p 3123:3123 -e NODES_LIST=192.168.188.59:14002,myNodesIp.com:14002 -v storjWidgetVolume:/var/www/storjWidgetVolume mb17/storjwidget 
As an environment parameter NODES_LIST you need to add a comma seperated list of your node's ip addresses together with their storj api ports.
OR build your own

Clone this repo and cd, then

docker volume create --name storjWidgetVolume
sudo docker build -t storjwidget .
docker run --privileged -p 3123:3123 -e NODES_LIST=192.168.188.59:14002,myNodesIp.com:14002 -v storjWidgetVolume:/var/www/storjWidgetVolume storjwidget 
Video instructions for Windows setup

If you want to run in on Windows without docker, check out https://www.youtube.com/watch?v=WoA7EU99E3E.

Next Steps:

When your storjWidget-Exporter is up and running and returning stats of your node(s) at http://localhost:3123/bandwidth, you can continue and set up your storjWidget.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published