storjWidget for iOS / Android

Hi @HGPlays, no, on iOS.

But the docker Info project should work on Windows, too (?). So you could view the stats in a browser and it should be possible to load them (it’s JSON) and create a simple local web view for it as well.

Okay. im not sure how - i want the widget (large one) to work on my iphone with the windows GUI node. and i just cant get it working

@HGPlays Sorry I agave up because life got into the way but I am planning to return back to this project over summer. Just beginning UNI and lots of thing have to get done but my time is becoming freer by the day so soon I will be trying again

Sorry I cannot be of any help

1 Like

okay man - no problem

I got it running on Windows :slight_smile:

Here is what I did:

  1. Clone GitHub - striker43/storjWidget-exporter
  2. I was using Python 3.8.10 (via Anaconda). Run pip install flask requests
  3. Adjust the following lines in app.py:

persistencePath = ‘/var/www/storjWidgetVolume/payoutData.txt’persistencePath = ‘C:/user/storj/storjWidget/payoutData.txt’
Choose a path where you want the python flask server to persist it’s data

nodes = os.environ.get(‘NODES_LIST’, ‘’).split(’,’)nodes = [‘192.168.188.12:14002’, ‘localhost:14003’]
Just put a list of your nodes ip-addresses as the “nodes” variable. They will be scraped by the tool then

  1. cd into the cloned directory and run the following command to start the server:
    python -m flask run --port 3123 --host=0.0.0.0

  2. Open your browser and open localhost:3123/bandwidth. If you see json-data, your server is working. Then you can continue to setup the Widget on your phone.

Please let me know if it works or not.

@striker43 Could you pls help in adding the following value as a data point in the JSON (modifying the app.py)?

Estimated Payout (At the end of the month if the load keeps the same for the rest of the month.)

Honestly I am currently working on a real iOS and Android App to monitor nodes. This will include this metric and a lot more :wink:
That‘s why I don’t want to spend more time on the widget right now. But please feel free to add it in the git-repo and create a pull request :slightly_smiling_face:

4 Likes

@striker43 sounds promising. You could add a widget feature there, too ^^

If you need a alpha or beta user, pls let me know.

1 Like

Hey @striker43 Thank you alot
I keep getting this problem:
File “C:\Users\Andreas\Desktop\Widget_ENV\Widget\app.py”, line 14
nodes = [localhost:14002]
^
SyntaxError: invalid syntax

Do you know why?

Try to put quotes around each entry inside the array:

nodes = [‘localhost:14002’]

@striker43 Okay i added quotes and it fixed an error
A new problem has come - its seems the server is runnning - but going to “localhost:3123” gives an “not found” error.
Screenshots:

Oh sorry, please try localhost:3123/bandwidth

But it does seems that “http://localhost:3123/bandwidth” is giving me some text

1 Like

@striker43 Amazing! I wish i can be as clever as you one day :smiley:
I will get the script running on my iphone now :smiley:

1 Like

Cool, then I think it works :+1:

Cool, I’m glad to hear that :slight_smile:

Let me know if the widget also works

@striker43 Currently the scrptable app tries to load the widget for a looong time - and the returns with error “exception occurred”
What IP do i exacly need to put into the url =?
Thats the “Running on http://192.168.87.155:3123/”?
So: url = http://192.168.87.155:3123
OR: url = http://192.168.87.155:3123/bandwith?

Did you try

let url = „ http://192.168.87.155:3123/bandwidth“

?

And - is it normal that i cant accses “http://192.168.87.155:3123/bandwith” it on any other computer than the one my node is one?
@striker43

let url = „192.168.87.155:3123“ returns “URL not supported”