Skip to content

Commit

Permalink
Merge pull request #263 from Qrome/3.03
Browse files Browse the repository at this point in the history
Fixed graph data for pi-hole
  • Loading branch information
Qrome authored Jan 31, 2023
2 parents 0df78b1 + 6b2147c commit 0ba2291
Show file tree
Hide file tree
Showing 6 changed files with 40,135 additions and 2 deletions.
Binary file modified marquee.ino.d1_mini_3.03.bin
Binary file not shown.
Binary file modified marquee.ino.d1_mini_wide_3.03.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion marquee/PiHoleClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void PiHoleClient::getGraphData(String server, int port, String apiKey) {
int c = stream->readBytes(buff, ((size > sizeof(buff)) ? sizeof(buff) : size));
for(int i=0;i<c;i++) {
if (track && countBracket >= 3) {
if (buff[i] == ',' || buff[i] == '}') {
if (buff[i] == ',' || buff[i] == '}' && blockedCount < 144) {
blocked[blockedCount] = result.toInt();
if (blocked[blockedCount] > blockedHigh) {
blockedHigh = blocked[blockedCount];
Expand Down
2 changes: 1 addition & 1 deletion marquee/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ String NEWS_SOURCE = "reuters"; // https://newsapi.org/sources to get full list
// DIN -> D7 (MOSI)
const int pinCS = D6; // Attach CS to this pin, DIN to MOSI and CLK to SCK (cf http://arduino.cc/en/Reference/SPI )
int displayIntensity = 1; //(This can be set from 0 - 15)
const int numberOfHorizontalDisplays = 8; // default 4 for standard 4 x 1 display Max size of 16
const int numberOfHorizontalDisplays = 4; // default 4 for standard 4 x 1 display Max size of 16
const int numberOfVerticalDisplays = 1; // default 1 for a single row height
/* set ledRotation for LED Display panels (3 is default)
0: no rotation
Expand Down
Binary file not shown.
Loading

0 comments on commit 0ba2291

Please sign in to comment.