i cleaned the hamster pool today. :hamster:
you query the node for the blocks?
that’s the next thing i wanna do, link to te the last 5 blocks found
i was hoping the pool stats would have had a list of hashes, but it only has an int
oh well, effort
i’ll python that one
i am still with BASH. i am too old to learn something new.
https://pastebin.com/LVti3aX5 Pastebin: [Python] #!/usr/bin/env python3 import json import requests def main(): url = - Pastebin.com
there’s mine for the shares
i like justified columnar output
still gonna do spaces as thousand separators later for readability
me, too. that's why i did a rework of the pool page.
i just use a <pre> block
and embed tiny amounts of css
i use cat and bash for assembling the page
a footer.html and header.html
and a cronjob
if you look at the page source you see what i’m doing
still gotta figure out how to make the links more obvious
what was the link to your pool?
https://snowplough.kekku.li/ A Snowblossom mining pool which tries to do things slow, steady, stable and thorough.
at least nick from me how to do the open graph metadata blurb, chat programs like slack or discord expand that (like do twitter and facebook et al)
interesting approach
i just try to do as minimal as possible
and ’not horrible on mobile’
it’s a single file too
well, there are the n+1 types of favicons, but for the main payload
could still precompress it as well
with both gzip and brotli
but, effort
same here.
you would do well with a cute hamster photo in the metadata blurb
ah. i need a favicon, too.
just render an emoji :D
it is so annoying to find out what license the pics have. :cry:
how would you integrate a pic in the metadata?
just a link in the comments?
:hamster:
You can put that in the block remark
You'll have to convince me to whitelist it, since anywhere the explorer shows raw bytes from people it is either hex encode or safe string printing
@Fireduck no
ah. i thought meta data of the pool page.
can you open up the json rpc port so I can getstats directly :wink:
The new site broke my status scripts
oh okay. sorry.
i thought i was just using the links to your site.
you haven't done anything wrong at all
for my personal miners I have a script that grabs your page and then greps for my miners to get my stats
ah. now i understand.
@Fireduck that’s not a bad idea, i’ll make my cronjob flush that out onto the disk as well
dynamical, don’t trust you *that* much, but static file, sure
hah, sure
how can i open the rpc port?
i can also set up the old version of page to an alternate html if you want.
naw, Rotonen has the right idea. Take the getstatus rpc call you are doing and save that json to disk
and let people download that json file
oki.
oh there is a pool block thingy
`getfoundblocks`
yep
now with even more stats and links people might actually pick up on https://snowplough.kekku.li/ A Snowblossom mining pool which tries to do things slow, steady, stable and thorough.
i think linking to the blocks adds the amount of transparency convenience for the people whom are so inclined to probe
as in i do not currently have further demands for what the pool or node should tell me extra
apart from documentation on how the block list works, but i'll figure that out once i've had more than 5 blocks since it started recording those
if i got it wrong, i'll just slice the other way
for whomever may concern
pool stats https://pastebin.com/ZZqQDYUJ Pastebin: [Python] #!/usr/bin/env python3 import requests def main(): url = 'http://loca - Pastebin.com
pool blocks https://pastebin.com/y0qbte8W Pastebin: [Python] #!/usr/bin/env python3 import requests def main(): url = 'http://loca - Pastebin.com
you should add MH/s per miner, too. at least the MH/s for the last 60 minutes.
it has that
i parse the report.txt
``` date -u +'%Y-%m-%d %H:%M UTC' >> "$report_out" echo '' >> "$report_out" head -n1 "$report_in" | cut -d' ' -f 1,7 >> "$report_out" echo '' >> "$report_out" tail -n +2 "$report_in" | cut -d' ' -f 1,7 | LC_ALL=en_US.UTF-8 sort -r -h -k 2 | xargs printf '%45s %8s\n' >> "$report_out" ``` that's in bash
report.txt does the units for me so i do not have to bother
ah. i was misreading the stats. you have one miner right now. okay. i thought it was total.
no, there's only one miner currently
was funny how the numerical sort breaks on the decimal separator as @Fireduck blindly uses the us locale, so have to tell gnu sort to do the same
as in it's not using a locale aware number formatter
the C would work there as well, and probably be quicker, but meh, if i have a free jab at the us, i'll take it, even at a cost of wasted cpu time
@fydel but the blurb and mobile favicons are just the ``` <!DOCTYPE html> <html lang='en'> <head> <meta name="description" content="A Snowblossom mining pool which tries to do things slow, steady, stable and thorough."> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="theme-color" content="#ffffff"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/site.webmanifest"> <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> <title>SNOWPLOUGH</title> ``` jazz at the page beginning see http://ogp.me/ for the blurb and see something like https://realfavicongenerator.net/ for the mobile favicons The Open Graph protocol enables any web page to become a rich object in a social graph. The ultimate favicon generator. Design your icons platform per platform and make them look great, everywhere
and for the mobile friendliness, there's only like 3 .. 5 lines in there of html and css, which you can also probably easily pick up on
ah. thanks. i will give it a try tomorrow.
downtime hamster pool today 31.08 14:00 MESZ. 20-30 minutes. hetzner will add a SSD that they and i forgot that was missing. ;-)