Fix Extractor
This commit is contained in:
parent
09182ab7b4
commit
11720bcf3d
@ -148,7 +148,7 @@ def extractor(prev, flaunch, url):
|
||||
i += 1
|
||||
i += 1
|
||||
while True:
|
||||
if data[i] == "# HELP blocky_request_duration_ms Request duration distribution":
|
||||
if data[i] == "# HELP blocky_request_duration_seconds Request duration distribution":
|
||||
break
|
||||
else:
|
||||
count += int(re.sub('blocky_query_total{.*?} ', '', data[i]))
|
||||
@ -295,8 +295,8 @@ def cliout(data, code):
|
||||
print(f"[{codes}] [{time}] {data}")
|
||||
|
||||
def main():
|
||||
cliout("Blocky Graph Monitor for OLED v0.9b", 0)
|
||||
cliout("Nikopol 2024", 0)
|
||||
cliout("Blocky Graph Monitor for OLED v0.91b", 0)
|
||||
cliout("Nikopol 2025", 0)
|
||||
cliout("Init...", 0)
|
||||
|
||||
# vars spagetti
|
||||
|
@ -1,6 +1,6 @@
|
||||
# BlockyGrapher v0.9b
|
||||
# BlockyGrapher v0.91b
|
||||
![Example setup using this software](./images/displaydemo.jpg)
|
||||
Physical display query grapher for Blocky DNS Server.
|
||||
Physical display query grapher for Blocky DNS Server (v0.25).
|
||||
|
||||
I2C SSD1306 Displays with resolution 128x64 and 128x32 are supported.
|
||||
Note that this software in beta, and akward bugs may occur.
|
||||
@ -60,8 +60,9 @@ extraargs=net.ifnames=0
|
||||
docker_optimizations=off
|
||||
overlay_path=allwinner
|
||||
overlay_prefix=sun50i-h616
|
||||
# We need to insert hardware I2C name in overlays. In case of Orange PI Zero 3 this is i2c3.
|
||||
overlays=i2c3
|
||||
# We need to insert hardware I2C name in overlays. In case of Orange PI Zero 3 this is i2c3-ph.
|
||||
# You can find overlays in /boot/dtb/allwinner/overlay/ or similar folder.
|
||||
overlays=i2c3-ph
|
||||
user_overlays=
|
||||
```
|
||||
Save and reboot.
|
||||
|
Loading…
Reference in New Issue
Block a user