This has been moved to inigoflores/pisces-p100-tools
A description of the issue tha affects the P100 can be found in briffy/PiscesQoLDashboard#19
codigo_postal | municipio_id | nombre_entidad_singular | |
---|---|---|---|
00005 | 17079 | GIRONA | |
00043 | 43110 | POBLA DE MASSALUCA (LA) | |
00045 | 45165 | GAMONAL | |
00298 | 50209 | PINSEQUE | |
00548 | 05047 | CANDELEDA | |
01171 | 01058 | GOIAIN | |
01655 | 10067 | PUEBLA DE ARGEME | |
01755 | 28005 | ALCALA DE HENARES | |
02013 | 02059 | PEÑASCOSA |
2021-12-19 00:39:20.499 7 [info] <0.1664.0>@miner_onion_server:decrypt:370 could not decrypt packet received via radio: treating as a witness | |
2021-12-19 00:39:20.499 7 [info] <0.19143.2>@miner_onion_server:send_witness:188 sending witness at RSSI: -118, Frequency: 868.3, SNR: -12.5 | |
2021-12-19 00:39:21.383 7 [info] <0.19143.2>@libp2p_transport_relay:connect_to:71 init relay transport with ["/p2p/112KFuDzLJVs5pNR858DAqnxdHYVoNTd87NEGaPVTCJxjaCMkuEs/p2p-circuit/p2p/1126dZdgunc3nGzQby66HKMawEnrDs51wYXzRqSyxFUwHeD | |
Nv64M","/p2p/112KFuDzLJVs5pNR858DAqnxdHYVoNTd87NEGaPVTCJxjaCMkuEs","/p2p/1126dZdgunc3nGzQby66HKMawEnrDs51wYXzRqSyxFUwHeDNv64M"] | |
2021-12-19 00:39:22.724 7 [warning] <0.19143.2>@miner_onion_server:send_witness:243 failed to dial challenger "/p2p/1126dZdgunc3nGzQby66HKMawEnrDs51wYXzRqSyxFUwHeDNv64M": [{"/p2p/112KFuDzLJVs5pNR858DAqnxdHYVoNTd87NEGaPVTCJxjaCMkuEs | |
/p2p-circuit/p2p/1126dZdgunc3nGzQby66HKMawEnrDs51wYXzRqSyxFUwHeDNv64M",not_found}] | |
2021-12-19 00:39:52.727 7 [info] <0.19143.2>@miner_onion_server: |
#!/bin/bash | |
grep -E 'miner_onion_server:decrypt:{[0-9]+,[0-9]+} sending witness at RSSI' /home/pi/hnt/miner/log/console.log* | \ | |
awk '{print $10,$14}' | sort -nr | uniq -c | \ | |
awk '{printf "RSSI: %s SNR: %s Noise: %s, Count: %s\n", $2, $3, ($2 - $3), $1}' |
#!/bin/bash | |
grep -hE 'miner_onion_server:decrypt:{[0-9]+,[0-9]+} sending witness at RSSI' /home/pi/hnt/miner/log/console.log* |\ | |
awk '{print $1,$2,$10,$14}' | \ | |
sort -n | awk '{printf "%s %s | RSSI: %s SNR: %s Noise: %s\n", $1, $2, $3, $4, ($3-$4)}' |
#!/bin/bash | |
sudo sed -i "/# By default this script does nothing./a\\\n# Fix Pisces 1Gb Ethernet problem\n/sbin/ethtool -s eth0 advertise 0x0f &\n\n" /etc/rc.local |
This has been moved to inigoflores/pisces-p100-tools
A description of the issue tha affects the P100 can be found in briffy/PiscesQoLDashboard#19
#!/bin/bash | |
echo "Checking the logs...\r\n" | |
total=$(grep -hE 'miner_onion_server:decrypt:{[0-9]+,[0-9]+} sending witness at RSSI' /home/pi/hnt/miner/log/console.log* |wc -l) | |
lost=$(cat /home/pi/hnt/miner/log/console.log* |grep "max retry" |wc -l) | |
delivered=$(grep -hE 'successfully sent witness to challenger' /home/pi/hnt/miner/log/console.log* | wc -l) | |
percentage=$(echo "print(round($lost/$total*100,2))" | python3) | |
echo "Witnesses\r"; | |
echo "---------------------------------------"; | |
echo "Total received = $total\r"; |