Set the url in the storjWidget.js to the url of your storjWidget-Exporter (e.g. let url = 192.168.188.63:3123).
Add the widget to your widgets-bar/homescreen.
The widget gets updated automatically by iOS. This happens every 4-7 minutes but may be different on your phone.
I am very happy to receive feedback or pull requests if you have ideas to improve it.
Scriptable is also available for Android. As I don’t have any Android device, it would be nice if someone could test if that is also working. Thanks
Update 2022-12-05:
The docker image is now built for multiple platforms, so on all platforms (also Raspberry Pi) mb17/storjwidget:latest can be used.
Improved performance: The exporter is now updating the statistics every 60 seconds and keeps the results in memory. Therefore the phone widget can get the data much quicker which reduces timeout-errors. Also the daily earnings are always up to date now, even if the phone if offline over night.
Thanks
On Windows nodes you can also access the node dashboard in your browser, right?
I think then the API should also be available at http://IP:PORT/api/sno and then the storjWidget-Exporter should also work. You only need python to execute the Flask server.
As I never had a windows node, I am not completely sure if that is correct. Maybe you can try to acces the api of your node or someone else can confirm that?
Unfortunately, the docker service don’t work as expected for me.
After running docker run… the service starts, only to restart automatically after 1 sec…
docker ps -a
=> shows ‘restarting’
docker logs --tail 1000 charming_liskov
=> shows a bunch of “standard_init_linux.go:211: exec user process caused “exec format error””
Any idea?
I’m working on a Rasp3. Storage Node is on the same Rasp, using docker.
ufw is disabled.
Storj Dashboard works.
I see that now. Looks like the Dockerfile refers to a non-existent requirements.txt. I’ve made a quick fork of the app to remove that line item in the Dockerfile. Delete your current clone of storjWidget-exporter and replace the git line with the following:
this looks amazing !
I’ll set it up as soon as I get back from holidays.
I have an android device and my node is arm based so I’ll give you some feedback on how it works.
I just found out that the daily earnings calculation seem to be showing a higher amount than my Grafana dashboard is showing. I will spend some time later this week to analyse that formula. I think I am doing something wrong there…
You. Are. My. Hero. !
Really, you just gave me the joy of the day. SSHd into my NAS from my workspace, installed in just a breeze, installed Scriptable (didn’t know this App before, will have a closer look at it for sure!), copied the script, changed URL, forwarded ports on router, works. This was literally a 3-minute job to get running! Very well done!
Daily earnings calculation is fixed now. It was showing too high amounts before. Now it stores the total monthly earnings at the beginning of the day and then over day calculates the difference ([actual api-reported total] - [stored total earnings]). For this change you need to create and mount a docker volume now. Explanations are in the readme.md.
There is a raspberry pi (arm) version now available on Dockerhub: