Skip to content

Commit 6b2147c

Browse files
committed
Fixed graph data for pi-hole
1 parent ad9c35e commit 6b2147c

File tree

6 files changed

+40135
-2
lines changed

6 files changed

+40135
-2
lines changed

marquee.ino.d1_mini_3.03.bin

-16 Bytes
Binary file not shown.

marquee.ino.d1_mini_wide_3.03.bin

0 Bytes
Binary file not shown.

marquee/PiHoleClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void PiHoleClient::getGraphData(String server, int port, String apiKey) {
196196
int c = stream->readBytes(buff, ((size > sizeof(buff)) ? sizeof(buff) : size));
197197
for(int i=0;i<c;i++) {
198198
if (track && countBracket >= 3) {
199-
if (buff[i] == ',' || buff[i] == '}') {
199+
if (buff[i] == ',' || buff[i] == '}' && blockedCount < 144) {
200200
blocked[blockedCount] = result.toInt();
201201
if (blocked[blockedCount] > blockedHigh) {
202202
blockedHigh = blocked[blockedCount];

marquee/Settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ String NEWS_SOURCE = "reuters"; // https://newsapi.org/sources to get full list
8484
// DIN -> D7 (MOSI)
8585
const int pinCS = D6; // Attach CS to this pin, DIN to MOSI and CLK to SCK (cf http://arduino.cc/en/Reference/SPI )
8686
int displayIntensity = 1; //(This can be set from 0 - 15)
87-
const int numberOfHorizontalDisplays = 8; // default 4 for standard 4 x 1 display Max size of 16
87+
const int numberOfHorizontalDisplays = 4; // default 4 for standard 4 x 1 display Max size of 16
8888
const int numberOfVerticalDisplays = 1; // default 1 for a single row height
8989
/* set ledRotation for LED Display panels (3 is default)
9090
0: no rotation
7.05 MB
Binary file not shown.

0 commit comments

Comments
 (0)