Bubba8291 / homebridge-sharkiq

A Homebridge plugin to connect your Shark Vacuum to homebridge.
Apache License 2.0
10 stars 1 forks source link

Shark Config settings no longer has a place to put in username and password #18

Open thatpaulallen opened 3 months ago

thatpaulallen commented 3 months ago

IMG_0016

Describe The Bug: There is no longer a field to input username and password. Now I get an error in the log that says “ API Error: Unauthorized SharkIQ will not continue. If the issue persists, open an issue”

To Reproduce: I downgraded to the last stable and release and everything worked. I upgraded to the RC again, and it was broken. (My login info still appears in the JSON editor…

IMG_0018

Environment:

Bubba8291 commented 2 months ago

@thatpaulallen @reddog1987 @sabresoftware2021 The username and password option is back in the beta release.

Thank you @donavanbecker for helping setup the beta tags.

If you'd like to test the beta release, you can switch to the beta tag in the homebridge ui, or run npm install -g homebridge-sharkiq@beta in the shell.

reddog1987 commented 2 months ago

won't install from UI...

Screenshot 2024-09-12 at 09 01 38
reddog1987 commented 2 months ago

I am on ...

Screenshot 2024-09-12 at 09 03 56
Bubba8291 commented 2 months ago

won't install from UI...

Screenshot 2024-09-12 at 09 01 38

Copy and run the chmod command in that screenshot

reddog1987 commented 2 months ago

Sorry missed that, installed beta appears ok I am only using auth code, Not account user/pass

On Sep 12, 2024, at 09:32, Bubba8291 @.***> wrote:

won't install from UI...

Screenshot.2024-09-12.at.09.01.38.png (view on web) https://github.com/user-attachments/assets/3f3a1485-87a4-4b93-802a-009b2958ad16 Copy and run the chmod command in that screenshot

— Reply to this email directly, view it on GitHub https://github.com/Bubba8291/homebridge-sharkiq/issues/18#issuecomment-2346471511, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5AZUELRYTWXH2DHWWF4DV3ZWGQWZAVCNFSM6AAAAABMX6LBYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBWGQ3TCNJRGE. You are receiving this because you were mentioned.

Bubba8291 commented 2 months ago

You only have to use one for the plugin to work. Glad to hear it's working!

reddog1987 commented 2 months ago

Added account info also all good so far :)

On Sep 12, 2024, at 09:44, Bubba8291 @.***> wrote:

You only have to use one for the plugin to work. Glad to hear it's working!

— Reply to this email directly, view it on GitHub https://github.com/Bubba8291/homebridge-sharkiq/issues/18#issuecomment-2346502115, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5AZUEPHWFAQTPJWCDRCAWLZWGSDJAVCNFSM6AAAAABMX6LBYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBWGUYDEMJRGU. You are receiving this because you were mentioned.

hillaker commented 2 months ago

@Bubba8291, I'm trying out the Beta release with a username and password, and am receiving the following error. Happy to try to troubleshoot it however would be helpful. I'm running it on an arm64 machine with node v20.17.0

image

I can also try OAuth instead-- I removed the Oauth config file when I installed the beta.

Bubba8291 commented 2 months ago

@Bubba8291, I'm trying out the Beta release with a username and password, and am receiving the following error. Happy to try to troubleshoot it however would be helpful. I'm running it on an arm64 machine with node v20.17.0

image

I can also try OAuth instead-- I removed the Oauth config file when I installed the beta.

Just wanna double check. You're using a headless homebridge server (no config UI)?

hillaker commented 2 months ago

@Bubba8291, I have the config UI and have used it to fill in just the username and password field: image

However, the server itself is headless (it has XFCE installed) but I do not have a monitor attached.

Bubba8291 commented 2 months ago

@hillaker google-chrome does not have a build for all linux distros that have arm64. Puppeteer switched from chromium to google-chrome in v20.0.0.

Will look for potential workarounds. What distro are you on?

hillaker commented 2 months ago

@Bubba8291, I'm using Kali Linux, which should align just fine with Debian. I'm also happy to re-configure to an oauth file if I'm too far from a standard build and it would make your life too difficult.

reddog1987 commented 2 months ago

all still good, no errors with v3.1.0-beta.0

reddog1987 commented 2 months ago

No longer getting the message below, maybe a result from updating to xos to Sequoia 15.0, may be processing updates in background.

now getting this message... [9/19/2024, 6:48:38 AM] [homebridge-sharkiq] This plugin slows down Homebridge. The read handler for the characteristic 'Rotation Speed' was slow to respond! See https://homebridge.io/w/JtMGR for more info. [9/19/2024, 6:48:38 AM] [homebridge-sharkiq] This plugin slows down Homebridge. The read handler for the characteristic 'Contact Sensor State' was slow to respond! See https://homebridge.io/w/JtMGR for more info. [9/19/2024, 6:48:38 AM] [homebridge-sharkiq] This plugin slows down Homebridge. The read handler for the characteristic 'On' was slow to respond! See https://homebridge.io/w/JtMGR for more info.

Bubba8291 commented 2 months ago

v1.3.1 has been published!

I will leave this open for now in case any issues arise.

Bubba8291 commented 2 months ago

@hillaker I have been a bit busy lately. So for now, I added something that requires linux-arm64 users to use the manual OAuth login.

reddog1987 commented 2 months ago

all good, no issues found :)

On Sep 29, 2024, at 13:35, Bubba8291 @.***> wrote:

v1.3.1 has been published!

I will leave this open for now in case any issues arise.

— Reply to this email directly, view it on GitHub https://github.com/Bubba8291/homebridge-sharkiq/issues/18#issuecomment-2381455827, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5AZUEKU2SCYY6DCCBAFB73ZZBB6LAVCNFSM6AAAAABMX6LBYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGQ2TKOBSG4. You are receiving this because you were mentioned.

thatpaulallen commented 2 months ago

v1.3.1 has been published!

I will leave this open for now in case any issues arise.

I’m getting an error when I try to update or if I try to uninstall…

USER: pi DIR: /var/lib/homebridge CMD: npm install --save homebridge-sharkiq@1.3.1 [?25l (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ idealTree: sill (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠹ idealTree: sill (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠸ idealTree: sill (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠸ idealTree: sill (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠸ idealTree: sill (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠸ idealTree: sill (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠸ idealTree: sill (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠸ idealTree: sill (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ idealTree:homebr (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ idealTree:homebr (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ idealTree:homebr (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ idealTree:homebr (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ idealTree:homebr (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ idealTree:homebr (#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠋ idealTree: timin

[?25h npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /var/lib/homebridge/node_modules/homebridge-sharkiq npm ERR! dest /var/lib/homebridge/node_modules/.homebridge-sharkiq-KkntEr3W npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/var/lib/homebridge/node_modules/homebridge-sharkiq' -> '/var/lib/homebridge/node_modules/.homebridge-sharkiq-KkntEr3W' npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-09-30T00_50_31_599Z-debug-0.log

Error: Operation failed with code 217.

You can download this log file for future reference.

See https://github.com/homebridge/homebridge-config-ui-x/wiki/Troubleshooting for help.

Bubba8291 commented 2 months ago

@thatpaulallen run rm -rf /var/lib/homebridge/node_modules/.homebridge-sharkiq-KkntEr3W