Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install #10

Open
Chabbert59 opened this issue Oct 15, 2021 · 11 comments
Open

How to install #10

Chabbert59 opened this issue Oct 15, 2021 · 11 comments
Labels
enhancement New feature or request

Comments

@Chabbert59
Copy link

Hi, i tried 3 times to install this plug but still doesn't work...

Can someone explain step by step how to install this please ?

Thanks a lot.

@Chabbert59 Chabbert59 added the enhancement New feature or request label Oct 15, 2021
@batreseau
Copy link

Hello,

Can you give us more informations about your problem ?

Currently there is an issue during install process regarding PyP100 library.
You can use following workaround:

Download PyP100 0.0.10 archive from internet. For ex:
https://files.pythonhosted.org/packages/d2/cb/58b3913adfb7515bf04721f8c31f210925d74cd191d723d24ec785521e3e/PyP100-0.0.10.tar.gz
Put downloaded file on your desktop
Create a text file named "HISTORY.md" on your desktop . Be carefull to use .md as extension.
Open PyP100-0.0.10.tar.gz with 7zip and navigate to following path:
Desktop\PyP100-0.0.10.tar.gz\PyP100-0.0.10.tar\PyP100-0.0.10
Drop HISTORY.md file on 7zip view and confirm adding file to archive.
Connect to your Pi system via ssh and upload the updated tar.gz to pi home directory
Install PyP100 library manually with following command:
/home/pi/oprint/bin/python3 -m pip install /home/pi/PyP100-0.0.10.tar.gz
Finally, install Tapo plugin via Octprint GUI .
Hope it will help ;)

@cryptedwcoder
Copy link

Hi,
I had the same problem and with the help of the cp2004 from octoprint discord server he managed to solve the problem with these steps:

- SSH to your octopi
- source ~/oprint/bin/activate
- pip install one
- python -m pip install --upgrade pip
- pip install pycryptodome==3.9.8 pkcs7==0.1.2
- pip install PyP100 --no-deps
- pip install https://github.com/Tyfy/OctoPrint-TapoSmartplug/archive/master.zip
- sudo reboot pi

The library has a dependency conflict with OctoPrint, so it counts back until it finds one that works. So this should work.

@Chabbert59
Copy link
Author

Hello i tried again.

No errors with all of your steps but still doesn't work on Octoprint UI.

In this screenshot, i wan't to be sure that login and password are the same as i use on the application TAPO on Android ???
Capture

Thanks for explanation.

@cryptedwcoder
Copy link

cryptedwcoder commented Dec 22, 2021

Are you sure that IP is correct? I use it on android too usually the IP of tapo is something like 192.168.1.x. Try to use the app called NetworkScanner to determine the IP of the tapo plug more correctly. That would be a better starting point. Later make sure that you use your mail address as your username and for your password don't use symbols, uppercase letters for example catcat1. I know this is very vulnerable but unfortunately many users reported this issue. Also, don't forget to reset your tapo plug after your password change because some users also reported that their password didn't change after the password reset till they reset their plug. Currently, the library that was created for the tapo plug seems to be crap so we need to adjust our settings like this.

@Chabbert59
Copy link
Author

Hi cryptedwcoder , yes i'm very sure for IP with my hotspot phone it's 192.168.43.X and at home it's 192.168.1.X .

i'll try different password tomorrow ! i'ill answer to this post if it works.

Thanks for answering so fast ;)

@Chabbert59
Copy link
Author

FINALLY it works !!!!!!!!
Capture

I've reseted the plug and change password !!

Thanks a lot Crypted

@cryptedwcoder
Copy link

You're welcome.

@cryptedwcoder
Copy link

cryptedwcoder commented Dec 23, 2021

Meanwhile if one day the lightning icon starts to spin without stopping (at least it happened to me after a while), if you re-upload it with the zip file I added the link to, the problem goes away.

https://github.com/a0s/OctoPrint-TapoSmartplug/archive/refs/heads/master.zip

@Sebastan12
Copy link

Sebastan12 commented Dec 30, 2021

Hi, I had the same problem and with the help of the cp2004 from octoprint discord server he managed to solve the problem with these steps:

- SSH to your octopi
- source ~/oprint/bin/activate
- pip install one
- python -m pip install --upgrade pip
- pip install pycryptodome==3.9.8 pkcs7==0.1.2
- pip install PyP100 --no-deps
- pip install https://github.com/Tyfy/OctoPrint-TapoSmartplug/archive/master.zip
- sudo reboot pi

The library has a dependency conflict with OctoPrint, so it counts back until it finds one that works. So this should work.

Hey @cryptedwcoder just goign thorugh this
- pip install PyP100 --no-deps is where i got a little bit stuck.
i just get this error.
Error

I would love pointers / help on this on how to fix this ^-^

@cryptedwcoder
Copy link

Can you please try to install it using this Zip File.

https://github.com/a0s/OctoPrint-TapoSmartplug/archive/refs/heads/master.zip

If it doesn't work I will try something else.

@flasher69
Copy link

Can you please try to install it using this Zip File.

https://github.com/a0s/OctoPrint-TapoSmartplug/archive/refs/heads/master.zip

If it doesn't work I will try something else.

Nop, the installation doesn't work for me either
log.txt
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants