jamesbarnett91 / tplink-energy-monitor

An energy monitoring dashboard for TP-Link smart plugs
GNU General Public License v3.0
467 stars 104 forks source link

works not on new Win 10 #82

Open vaschek opened 3 years ago

vaschek commented 3 years ago

I have a computer on which the app worked well in Win 7 but now I upgraded to Win 10 and it finds not any device. Strange is that it runs normally on a notebook with Win 10 and I can even conect from the computer to the tplink-energy-monitor running on the notebook. What in Win 10 on the computer is blocking the application? Vaclav

wkhan69 commented 3 years ago

FYI, I also tried running the windows executable (v 0.8), and it wasn't able to detect any of my devices online. However, I downloaded the linux version and ran it inside a Mint Linux VM (running on my windows 10 laptop), and that worked fine. I didn't have to turn off any firewalls or anti-virus protection on the windows side to get it to see my devices, but that can vary from setup to setup.

I then tried downloading the source code (v 0.8) and ran it from my windows powershell, and that did not work (I got many circular dependency errors).

SUCCESS: Finally, I downloaded the Xeroxxx branch of the source code (version 487c2e2 on 24 Sep 2020) (see here) and ran it inside a windows powershell, and that worked fine.

The main branch hasn't been updated since Jan 2019, so I'm not sure if that will get fixed/updated. For now, I recommend people look at the Xeroxxx branch if they have issues. (Also, I hear Xeroxxx is working on producing executables for download.)

Regards, Will

scutzi128 commented 2 years ago

Do you have details on how you ran it inside of a powershell?

wkhan69 commented 2 years ago

Hi, Here are my steps for installing and running the app in a windows PC, in powershell:

  1. Download and Install Node.js from here (click "yes" to automatically install necessary tools) This step can take a few minutes so do something else while it's getting setup
  2. Download the source code from the Xeroxxx branch from https://github.com/Xeroxxx/tplink-energy-monitor (or one of my posts if you want custom logging), and unzip the files in a known directory such as "c:\TP-Link\"
  3. Open a powershell in the main directory (as above)
  4. Type: npm install (this can also take a few min)
  5. Type: npm start "path" logger-config.json where "path" is the path to your logger-config.json (which is typically the main directory of the sourcecode you downloaded. eg: c:\TP-Link\logger-config.json)
  6. After a minute, if everything is working, it should start detecting devices on your network. (It will say "found device for..." in powershell)
  7. Open up a browser and go to the URL localhost:3000
  8. The main TPlink dashboard should appear.
  9. Click on one of the devices in the TPlink dashboard, and it should start showing data.
  10. If no data is coming, try turning off firewall and/or anti virus, but I found I never needed to shut anything off
wkhan69 commented 2 years ago

Note; I have updated step 5 above on 1/6/2022 to be more explicit and correct a typo with the logger-config.json filename