mihai-dinculescu / tapo

Unofficial Tapo API Client. Works with TP-Link Tapo smart devices. Tested with light bulbs (L510, L520, L530, L610, L630), light strips (L900, L920, L930), plugs (P100, P105, P110, P115, P300), hubs (H100), switches (S200B) and sensors (KE100, T100, T110, T300, T310, T315).
MIT License
352 stars 36 forks source link

Build error #70

Closed merbanan closed 1 year ago

merbanan commented 1 year ago

I get: error: package time v0.3.19 cannot be built because it requires rustc 1.62.0 or newer, while the currently active rustc version is 1.61.0

Is it possible to depend on an earlier time package version ? Building on Ubuntu 22.04.2 LTS fails.

mihai-dinculescu commented 1 year ago

Is there a reason why you cannot upgrade your rust compiler? I've had no problem installing 1.67 on Ubuntu 20.04.5 LTS.

merbanan commented 1 year ago

Well my rust skills are limited. Anyways curl https://sh.rustup.rs -sSf | sh source "$HOME/.cargo/env" gave me an updated environment.

merbanan commented 1 year ago

Now I just need to find the device on the network.

mihai-dinculescu commented 1 year ago

I'm glad that upgrading the rust version has solved the problem. Because of the non-breaking nature of the rust releases, there's rarely a justification to support old versions. The general consensus is that, in most cases, people should try and use a recent version due to the benefits they bring.

The Tapo mobile app has a "Device Info" section that shows the IP of each device. Of course, if you want it to be resilient (e.g. the IP not to change on router/device restarts), you will need to make the IP static in your router configuration.