Giter Club home page Giter Club logo

Comments (7)

iDerp avatar iDerp commented on June 20, 2024

The server for the app had been down but I had some time and put it back up on the new server. The program should be running fine now. I did have to update the domain so the client app and the lametric app need to be updated on the client end. If you have any more issues, please let me know.

from pi-hole-for-lametric.

zerocrashhh avatar zerocrashhh commented on June 20, 2024

Hi, thanks for such a quick reply.
I deleted the Lametric Pi Hole Status app and installed it again, and on the VM removed the folder cloned it again from github, set the config.json file again, run npm i and node index.js again.

Unfortunately getting the same error:

mil@piholetvs471:~/Pi-Hole-for-LaMetric$ node index.js
Starting Pi-Hole for LaMetric v2.0.2...
Pi-Hole Connection @ 192.168.88.250 Successful!
Pi-Hole Auth Valid!
Connected to "My LaMetric" @ 192.168.88.54 running OS v2.0.17 & Pi-Hole Status v5! (SA1704XXXXXXXXX)
Connection to LaMetric @ 0.0.0.0 Failed. LaMetric does not seem to linked to this IP.
Up to date.
⠙ Connecting to LaMetric @ 192.168.88.54...(node:20404) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined
at snek.get.set.then.LaMetricDeviceInfo2 (/home/milan1201/Pi-Hole-for-LaMetric/index.js:75:112)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:20404) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20404) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Let me know what you want me to test and make it work.

from pi-hole-for-lametric.

iDerp avatar iDerp commented on June 20, 2024

Right after line 67, add this line on a new line

console.log(PiHoleTopItemsData.body)

Then let me know the output

from pi-hole-for-lametric.

malmentm avatar malmentm commented on June 20, 2024

Will there be a server free version?

from pi-hole-for-lametric.

iDerp avatar iDerp commented on June 20, 2024

Eventually yes, the current issue you have seems to be LaMetric related though.

from pi-hole-for-lametric.

zerocrashhh avatar zerocrashhh commented on June 20, 2024

Still no go, will try again in a few days/weeks if it is Lametric related.

Cheers

1201@piholetvs471:~/Pi-Hole-for-LaMetric$ node index.js
Starting Pi-Hole for LaMetric v2.0.2...
Pi-Hole Connection @ 192.168.88.250 Successful!
Pi-Hole Auth Valid!
Connected to "My LaMetric" @ 192.168.88.54 running OS v2.0.17 & Pi-Hole Status v5! (SA170XXXXXXXXXX)
Connection to LaMetric @ 0.0.0.0 Failed. LaMetric does not seem to linked to this IP.
Up to date.
⠙ Connecting to LaMetric @ 192.168.88.54...{ top_queries:
{ 'speedtest.sbb.rs': 5504,
'speedtest.beotel.net': 4254,
'speedtest.telenor.rs': 1932,
'speedtest.mts.rs': 1154,
'www.speedtest.net': 768,
'speedtest.vektor.net': 642,
'speedtest.vipmobile.rs': 254,
'1.0.0.1.in-addr.arpa': 26,
'1.1.1.1.in-addr.arpa': 26,
'api.snapcraft.io': 16 },
top_ads: [] }
(node:6553) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined
at snek.get.set.then.LaMetricDeviceInfo2 (/home/milan1201/Pi-Hole-for-LaMetric/index.js:76:112)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:6553) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6553) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
⠧ Sending update for "My LaMetric" @ 192.168.88.54 to the server...^C

from pi-hole-for-lametric.

iDerp avatar iDerp commented on June 20, 2024

Sorry, I meant PiHole related. It seems that there may have been a change to PiHole since I made this. This should be a simple fix for now. What I will do is temporarily remove the Last Blocked Query value until I can mess around with PiHole myself. Until I can, I pushed out a new client update that should fix it. No need to do an update for the app on the LaMetric for this one.

from pi-hole-for-lametric.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.