2018-08-30 20:04:41
i cleaned the hamster pool today. :hamster:
fydel
2018-08-30 20:20:32
you query the node for the blocks?
Rotonen
2018-08-30 20:21:26
that’s the next thing i wanna do, link to te the last 5 blocks found
Rotonen
2018-08-30 20:23:29
yes
fydel
2018-08-30 20:25:14
i was hoping the pool stats would have had a list of hashes, but it only has an int
Rotonen
2018-08-30 20:25:39
oh well, effort
Rotonen
2018-08-30 20:25:57
i’ll python that one
Rotonen
2018-08-30 20:26:00
i am still with BASH. i am too old to learn something new.
fydel
2018-08-30 20:26:17
https://pastebin.com/LVti3aX5 Pastebin: [Python] #!/usr/bin/env python3 import json import requests def main(): url = - Pastebin.com
Rotonen
2018-08-30 20:26:28
there’s mine for the shares
Rotonen
2018-08-30 20:26:42
i like justified columnar output
Rotonen
2018-08-30 20:27:13
still gonna do spaces as thousand separators later for readability
Rotonen
2018-08-30 20:27:51
me, too. that's why i did a rework of the pool page.
fydel
2018-08-30 20:28:31
i just use a <pre> block
Rotonen
2018-08-30 20:28:48
and embed tiny amounts of css
Rotonen
2018-08-30 20:29:15
i use cat and bash for assembling the page
Rotonen
2018-08-30 20:29:28
a footer.html and header.html
Rotonen
2018-08-30 20:29:35
and a cronjob
Rotonen
2018-08-30 20:30:50
if you look at the page source you see what i’m doing
Rotonen
2018-08-30 20:31:08
still gotta figure out how to make the links more obvious
Rotonen
2018-08-30 20:31:58
what was the link to your pool?
fydel
2018-08-30 20:32:15
https://snowplough.kekku.li/ A Snowblossom mining pool which tries to do things slow, steady, stable and thorough.
Rotonen
2018-08-30 20:33:28
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)
Rotonen
2018-08-30 20:35:01
interesting approach
fydel
2018-08-30 20:35:30
i just try to do as minimal as possible
Rotonen
2018-08-30 20:35:45
and ’not horrible on mobile’
Rotonen
2018-08-30 20:36:22
it’s a single file too
Rotonen
2018-08-30 20:36:49
well, there are the n+1 types of favicons, but for the main payload
Rotonen
2018-08-30 20:37:36
could still precompress it as well
Rotonen
2018-08-30 20:37:50
with both gzip and brotli
Rotonen
2018-08-30 20:37:55
but, effort
Rotonen
2018-08-30 20:38:35
same here.
fydel
2018-08-30 20:39:04
you would do well with a cute hamster photo in the metadata blurb
Rotonen
2018-08-30 20:39:08
ah. i need a favicon, too.
fydel
2018-08-30 20:39:23
just render an emoji :D
Rotonen
2018-08-30 20:55:24
it is so annoying to find out what license the pics have. :cry:
fydel
2018-08-30 21:04:41
how would you integrate a pic in the metadata?
fydel
2018-08-30 21:04:50
just a link in the comments?
fydel
2018-08-30 21:08:23
:hamster:
Fireduck
2018-08-30 21:09:04
You can put that in the block remark
Fireduck
2018-08-30 21:09:33
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
2018-08-30 21:10:00
https://github.com/snowblossomcoin/snowblossom/blob/master/lib/src/HexUtil.java#L35 ```
public static String getSafeString(String in)
```
Fireduck
2018-08-30 21:15:47
@Fireduck no
Rotonen
2018-08-30 21:16:13
ah. i thought meta data of the pool page.
fydel
2018-08-30 21:18:31
can you open up the json rpc port so I can getstats directly :wink:
Fireduck
2018-08-30 21:19:58
The new site broke my status scripts
Fireduck
2018-08-30 21:21:31
oh okay. sorry.
fydel
2018-08-30 21:21:45
i thought i was just using the links to your site.
fydel
2018-08-30 21:22:09
you haven't done anything wrong at all
Fireduck
2018-08-30 21:22:32
for my personal miners I have a script that grabs your page and then greps for my miners to get my stats
Fireduck
2018-08-30 21:24:25
ah. now i understand.
fydel
2018-08-30 21:26:29
@Fireduck that’s not a bad idea, i’ll make my cronjob flush that out onto the disk as well
Rotonen
2018-08-30 21:27:10
dynamical, don’t trust you *that* much, but static file, sure
Rotonen
2018-08-30 21:27:20
hah, sure
Fireduck
2018-08-30 21:27:36
how can i open the rpc port?
fydel
2018-08-30 21:29:01
i can also set up the old version of page to an alternate html if you want.
fydel
2018-08-30 21:30:24
naw, Rotonen has the right idea. Take the getstatus rpc call you are doing and save that json to disk
Fireduck
2018-08-30 21:30:30
and let people download that json file
Fireduck
2018-08-30 21:31:34
oki.
fydel
2018-08-30 21:58:15
oh there is a pool block thingy
Rotonen
2018-08-30 21:58:28
`getfoundblocks`
Rotonen
2018-08-30 22:03:34
yep
Fireduck
2018-08-30 22:12:31
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.
Rotonen
2018-08-30 22:13:31
i think linking to the blocks adds the amount of transparency convenience for the people whom are so inclined to probe
Rotonen
2018-08-30 22:13:58
as in i do not currently have further demands for what the pool or node should tell me extra
Rotonen
2018-08-30 22:14:40
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
Rotonen
2018-08-30 22:14:53
if i got it wrong, i'll just slice the other way
Rotonen
2018-08-30 22:15:59
for whomever may concern
Rotonen
2018-08-30 22:16:02
pool stats https://pastebin.com/ZZqQDYUJ Pastebin: [Python] #!/usr/bin/env python3 import requests def main(): url = 'http://loca - Pastebin.com
Rotonen
2018-08-30 22:16:35
pool blocks https://pastebin.com/y0qbte8W Pastebin: [Python] #!/usr/bin/env python3 import requests def main(): url = 'http://loca - Pastebin.com
Rotonen
2018-08-30 22:19:48
you should add MH/s per miner, too. at least the MH/s for the last 60 minutes.
fydel
2018-08-30 22:22:20
it has that
Rotonen
2018-08-30 22:22:32
i parse the report.txt
Rotonen
2018-08-30 22:22:59
```
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
Rotonen
2018-08-30 22:23:30
report.txt does the units for me so i do not have to bother
Rotonen
2018-08-30 22:24:47
ah. i was misreading the stats. you have one miner right now. okay. i thought it was total.
fydel
2018-08-30 22:25:00
no, there's only one miner currently
Rotonen
2018-08-30 22:25:23
yep
fydel
2018-08-30 22:25:58
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
Rotonen
2018-08-30 22:26:14
as in it's not using a locale aware number formatter
Rotonen
2018-08-30 22:27:04
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
Rotonen
2018-08-30 22:39:14
@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
Rotonen
2018-08-30 22:40:16
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
Rotonen
2018-08-30 22:41:00
ah. thanks. i will give it a try tomorrow.
fydel
2018-08-30 23:36:47
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. ;-)
fydel