20:17:58
shortwavesurfer2009:
My take on a p2pool ui. Fork away
20:17:58
shortwavesurfer2009:
https://github.com/shortwavesurfer2009/p2pool-ui
20:18:11
shortwavesurfer2009:
I made it primarily for mobile use.
20:22:32
DataHoarder:
how often do you run that?
20:26:46
DataHoarder:
my rec as usual is to run one api call to backfill missing data
20:26:57
DataHoarder:
then use events api listed on https://nano.p2pool.observer/api
20:27:05
DataHoarder:
which is a websocket stream of side blocks / found blocks etc.
20:27:28
DataHoarder:
then just gather your shares/payouts that way in a streaming way
20:38:55
shortwavesurfer2009:
I cron run it every 5 mins > <DataHoarder> how often do you run that?
20:39:12
DataHoarder:
you could cache the daily pulls tbh
20:39:42
DataHoarder:
specially if this is not just your script and others want to use it as well
20:40:19
shortwavesurfer2009:
I have what I want out of it and don't really intend to continue development, so anybody is welcome to fork it and make modifications.
20:40:31
DataHoarder:
if possible add some identifying user agent (for the repo for example)
20:40:48
DataHoarder:
otherwise if these get out of hand the best I can do is block the entire IP
20:40:56
shortwavesurfer2009:
I just uploaded it so that it doesn't get lost if my computer crashes or something.
20:40:59
DataHoarder:
cool
20:41:02
DataHoarder:
sometimes end scripts break
20:41:41
DataHoarder:
give it -H "User-Agent: p2pool-ui (+https://github.com/shortwavesurfer2009/p2pool-ui)" for example to each curl call
20:42:13
DataHoarder:
that way only the broken automation (say a user runs this every 50ms) can be targeted in temporary blocks
20:42:28
DataHoarder:
and not everything
20:43:15
shortwavesurfer2009:
DataHoarder: As I said, I really don't intend to continue development on it, but if you would like to submit a pull request for doing that, I will add it in.
20:43:57
DataHoarder:
I don't intend to submit a PR, but if users end up blocked, they might ask on the tool
20:44:19
DataHoarder:
(I say this as the one that would need to eat the costs of operation/setting the blocks on p2pool.observer)
20:44:43
shortwavesurfer2009:
DataHoarder: At some point I'll get around to adding a readme and point that out.
20:44:43
shortwavesurfer2009:
I have it set to run every five minutes on Crawn, but somebody else might run it faster than that.
20:45:11
DataHoarder:
yeah. 5 minutes is fine. I think all you have to do is add -H "User-Agent: p2pool-ui (+https://github.com/shortwavesurfer2009/p2pool-ui)" on each curl call there
20:45:38
DataHoarder:
I like jq outputting html :')
20:46:18
shortwavesurfer2009:
DataHoarder: Just for my local one, or the one that's submitted to Git?
20:46:32
DataHoarder:
git one if that's what you run/others might find
20:46:48
DataHoarder:
there aren't many so people end up stumbling upon them
20:47:27
shortwavesurfer2009:
DataHoarder: K. Yeah, I run that code as submitted, so I will add that to git.
20:48:08
DataHoarder:
amazing, thanks
20:55:11
DataHoarder:
feel free to share in #p2pool-log / #p2pool-mini other people might find it useful :)
20:57:49
shortwavesurfer2009:
DataHoarder: Okay, have a look now. It should be updated.
20:58:06
DataHoarder:
👍
21:03:54
shortwavesurfer2009:
The main reason for it is because observer does not work well on mobile. And so I just coded up something bare-bones basic to work better.
21:05:43
shortwavesurfer2009:
I can clearly see, for example, that it's showing shares from more than 24 hours ago. But I don't really feel like dealing with it. And so it's fine the way it is. LOL.
21:28:23
DataHoarder:
hahaha
21:28:42
DataHoarder:
I have a bootstrap UI (like https://blocks.p2pool.observer/ ) with semi-responsive UI in the works
21:29:44
DataHoarder:
from last year, but web hasn't updated that much, still relevant. afaik the proofs page were what was left https://git.gammaspectra.live/P2Pool/observer/src/branch/bootstrap-ui
21:30:47
DataHoarder:
it's where I have my css-only dropdown menus from for blocks explorer as well (for small/large nav bar)
21:31:32
DataHoarder:
after cleaning up that should be the p2pool explorer at some point :)