abudden / OctoPrint-USBRelayControl

Plugin for OctoPrint for controlling HID-based USB relays
GNU Affero General Public License v3.0
11 stars 2 forks source link

Cannot Connect #10

Open Coolbobjoe opened 10 months ago

Coolbobjoe commented 10 months ago

Added address on dev and still cannot get buttons to show up. Any support?

abudden commented 10 months ago

Have you added the hidapi package and udev rules as per the README?

Coolbobjoe commented 10 months ago

I did not see the mention about the hidapi package, can you point me in the right direction?

Sincerely,

Connor Schwieso President- Twin Cities Marine Aquarium Society TCMAS.ORG

On Thu, Nov 23, 2023, 10:18 AM A. S. Budden @.***> wrote:

Have you added the hidapi package and udev rules as per the README?

— Reply to this email directly, view it on GitHub https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1824682064, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV66Z5LFQTEYPZI3YIAB3E3YF5ZLVAVCNFSM6AAAAAA7X7IO3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGY4DEMBWGQ . You are receiving this because you authored the thread.Message ID: @.***>

abudden commented 10 months ago

https://github.com/abudden/OctoPrint-USBRelayControl#setup

Coolbobjoe commented 10 months ago

I guess I did not see any errors so had not done that, should I delete the plugin and start from scratch?

Sincerely,

Connor Schwieso President- Twin Cities Marine Aquarium Society TCMAS.ORG

On Thu, Nov 23, 2023, 12:56 PM A. S. Budden @.***> wrote:

https://github.com/abudden/OctoPrint-USBRelayControl#setup

— Reply to this email directly, view it on GitHub https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1824824502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV66Z5LCMJZVDG3HYFXTUCDYF6L7FAVCNFSM6AAAAAA7X7IO3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUHAZDINJQGI . You are receiving this because you authored the thread.Message ID: @.***>

Coolbobjoe commented 10 months ago

Do you want to continue? [Y/n] y Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf udev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev1 armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev-dev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev1_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev-dev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? @.***:~ $

On Thu, Nov 23, 2023 at 1:12 PM Connor Schwieso @.***> wrote:

I guess I did not see any errors so had not done that, should I delete the plugin and start from scratch?

Sincerely,

Connor Schwieso President- Twin Cities Marine Aquarium Society TCMAS.ORG

On Thu, Nov 23, 2023, 12:56 PM A. S. Budden @.***> wrote:

https://github.com/abudden/OctoPrint-USBRelayControl#setup

— Reply to this email directly, view it on GitHub https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1824824502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV66Z5LCMJZVDG3HYFXTUCDYF6L7FAVCNFSM6AAAAAA7X7IO3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUHAZDINJQGI . You are receiving this because you authored the thread.Message ID: @.***>

abudden commented 10 months ago

That looks like your raspberry pi is either struggling to connect to the internet, or it has an out of date apt repository.

Have you tried what it suggested (apt-get update)?

Coolbobjoe commented 10 months ago

Strange, I had never had connection issues before but I did get an error when looking for a new plugin earlier. I will try again in the morning to see if I can't move forward with the issue. Really love the simplicity of using the USB for relays. I already have way too many wires at gpio for my own good. One question about using the plugin, as I have not been able to play with it myself: is there anything for automating the controlling the relays? Say switching off the lights and tuning on the chamber cooling fan when prints finished?

Sincerely,

Connor Schwieso President- Twin Cities Marine Aquarium Society TCMAS.ORG

On Fri, Nov 24, 2023, 12:50 PM A. S. Budden @.***> wrote:

That looks like your raspberry pi is either struggling to connect to the internet, or it has an out of date apt repository.

Have you tried what it suggested (apt-get update)?

— Reply to this email directly, view it on GitHub https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1825995990, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV66Z5MGJHEZ56EVCWQYU2TYGDT7ZAVCNFSM6AAAAAA7X7IO3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVHE4TKOJZGA . You are receiving this because you authored the thread.Message ID: @.***>

abudden commented 10 months ago

It might be down to needing apt-get update or it might be down to network issues. I can't really say which.

Regarding automating it, there's nothing built in I'm afraid. I just use it to turn a light on when I want to look at the camera feed. It probably wouldn't be that hard to get it to integrate with some other plugin like PSUControl, but I haven't got the time or inclination to look into that I'm afraid.

Coolbobjoe commented 10 months ago

Wondering if I am having networking issues...

Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf udev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev1 armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev-dev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev1_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev-dev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

On Sat, Nov 25, 2023 at 12:20 PM A. S. Budden @.***> wrote:

It might be down to needing apt-get update or it might be down to network issues. I can't really say which.

Regarding automating it, there's nothing built in I'm afraid. I just use it to turn a light on when I want to look at the camera feed. It probably wouldn't be that hard to get it to integrate with some other plugin like PSUControl, but I haven't got the time or inclination to look into that I'm afraid.

— Reply to this email directly, view it on GitHub https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1826391801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV66Z5IE4QRMR36TDPOHFOLYGIZGZAVCNFSM6AAAAAA7X7IO3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGM4TCOBQGE . You are receiving this because you authored the thread.Message ID: @.***>

Coolbobjoe commented 10 months ago

Just ran an ethernet across my home to my printer and still cannot get it to find those servers... Any ideas?

On Sat, Nov 25, 2023 at 2:03 PM Connor Schwieso @.***> wrote:

Wondering if I am having networking issues...

Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf udev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev1 armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev-dev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev1_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev-dev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

On Sat, Nov 25, 2023 at 12:20 PM A. S. Budden @.***> wrote:

It might be down to needing apt-get update or it might be down to network issues. I can't really say which.

Regarding automating it, there's nothing built in I'm afraid. I just use it to turn a light on when I want to look at the camera feed. It probably wouldn't be that hard to get it to integrate with some other plugin like PSUControl, but I haven't got the time or inclination to look into that I'm afraid.

— Reply to this email directly, view it on GitHub https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1826391801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV66Z5IE4QRMR36TDPOHFOLYGIZGZAVCNFSM6AAAAAA7X7IO3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGM4TCOBQGE . You are receiving this because you authored the thread.Message ID: @.***>

abudden commented 10 months ago

Run this from a terminal:

 wget  http://raspbian.raspberrypi.org/raspbian

If that says something like:

2023-11-26 13:43:41 (53.2 MB/s) - ‘raspbian’ saved [1302/1302]

Then it isn't a network issue. The filenames don't exist on the server (e.g. at this link: http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb). Are you sure you've tried running apt-get update (or sudo apt-get update if needed) as I said in this post and this post?

Usually if you get file not found errors with apt, it's because it's looking for an old version of the software which is no longer available on the server. Running apt-get update updates the local database so that it looks for the current versions.

Coolbobjoe commented 10 months ago

Alright, I went from the ground up this time round, and still I get nothing back from the server! I have tried multiple combinations to no avail. If you can see an order of operations being wrong, please let me know. Otherwise, the link looks very much broken.

@.:~ $ sudo apt-get install python3-dev libusb-1.0-0-dev libudev-dev [sudo] password for pi: Reading package lists... Done Building dependency tree Reading state information... Done python3-dev is already the newest version (3.7.3-1). The following additional packages will be installed: libudev1 libusb-1.0-doc udev The following NEW packages will be installed: libudev-dev libusb-1.0-0-dev libusb-1.0-doc The following packages will be upgraded: libudev1 udev 2 upgraded, 3 newly installed, 0 to remove and 182 not upgraded. Need to get 1,503 kB/1,750 kB of archives. After this operation, 1,932 kB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf udev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev1 armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev-dev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev1_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev-dev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? @.:~ $ apt-get update Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied) @.:~ $ sudo apt-get update Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB] Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Reading package lists... Done E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. E: Repository 'http://archive.raspberrypi.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. @.:~ $ sudo apt-get install python3-dev libusb-1.0-0-dev libudev-dev Reading package lists... Done Building dependency tree Reading state information... Done python3-dev is already the newest version (3.7.3-1). The following additional packages will be installed: libudev1 libusb-1.0-doc udev The following NEW packages will be installed: libudev-dev libusb-1.0-0-dev libusb-1.0-doc The following packages will be upgraded: libudev1 udev 2 upgraded, 3 newly installed, 0 to remove and 182 not upgraded. Need to get 1,503 kB/1,750 kB of archives. After this operation, 1,932 kB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf udev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev1 armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev-dev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev1_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev-dev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? @.:~ $ sudo apt-get update Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB] Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Reading package lists... Done E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. E: Repository 'http://archive.raspberrypi.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. @.:~ $ sudo apt-get install python3-dev libusb-1.0-0-dev libudev-dev Reading package lists... Done Building dependency tree Reading state information... Done python3-dev is already the newest version (3.7.3-1). The following additional packages will be installed: libudev1 libusb-1.0-doc udev The following NEW packages will be installed: libudev-dev libusb-1.0-0-dev libusb-1.0-doc The following packages will be upgraded: libudev1 udev 2 upgraded, 3 newly installed, 0 to remove and 182 not upgraded. Need to get 1,503 kB/1,750 kB of archives. After this operation, 1,932 kB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf udev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev1 armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf libudev-dev armhf 241-7~deb10u8+rpi1 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev1_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/libudev-dev_241-7~deb10u8+rpi1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? @.***:~ $ wget http://raspbian.raspberrypi.org/raspbian --2023-11-30 11:27:14-- http://raspbian.raspberrypi.org/raspbian Resolving raspbian.raspberrypi.org (raspbian.raspberrypi.org)... 93.93.128.193, 2a00:1098:0:80:1000:75:0:3 Connecting to raspbian.raspberrypi.org (raspbian.raspberrypi.org)|93.93.128.193|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://raspbian.raspberrypi.org/raspbian/ [following] --2023-11-30 11:27:22-- http://raspbian.raspberrypi.org/raspbian/ Connecting to raspbian.raspberrypi.org (raspbian.raspberrypi.org)|93.93.128.193|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1302 (1.3K) [text/html] Saving to: ‘raspbian’

raspbian 100%[=====================================================>] 1.27K --.-KB/s in 0s

2023-11-30 11:27:22 (29.5 MB/s) - ‘raspbian’ saved [1302/1302]

@.***:~ $

On Sun, Nov 26, 2023 at 7:47 AM A. S. Budden @.***> wrote:

Run this from a terminal:

wget http://raspbian.raspberrypi.org/raspbian

If that says something like:

2023-11-26 13:43:41 (53.2 MB/s) - ‘raspbian’ saved [1302/1302]

Then it isn't a network issue. The filenames don't exist on the server (e.g. at this link: http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb). Are you sure you've tried running apt-get update (or sudo apt-get update if needed) as I said in this post https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1825995990 and this post https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1826391801 ?

Usually if you get file not found errors with apt, it's because it's looking for an old version of the software which is no longer available on the server. Running apt-get update updates the local database so that it looks for the current versions.

— Reply to this email directly, view it on GitHub https://github.com/abudden/OctoPrint-USBRelayControl/issues/10#issuecomment-1826789151, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV66Z5ISE27PTVIYSV74AWDYGNB65AVCNFSM6AAAAAA7X7IO3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWG44DSMJVGE . You are receiving this because you authored the thread.Message ID: @.***>

abudden commented 10 months ago

That's extremely odd. I'm not sure what to suggest to be honest. It can obviously connect to the server (given the raspbian saved thing at the end). The links are definitely not valid.

For example, it's trying to download http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev_241-7~deb10u8+rpi1_armhf.deb, but looking at the contents of the parent folder: http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/ the closest thing to that filename is one with deb10u9 instead of deb10u8: http://raspbian.raspberrypi.org/raspbian/pool/main/s/systemd/udev-udeb_241-7~deb10u9+rpi1_armhf.udeb

I have absolutely no idea why your raspberry pi is trying to download a non-existent file (after doing sudo apt-get update). The only thing I can think is it's something to do with the message you got when you ran sudo apt-get update:

E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease'
changed its 'Suite' value from 'oldstable' to 'oldoldstable'
N: This must be accepted explicitly before updates for this repository can
be applied. See apt-secure(8) manpage for details.
E: Repository 'http://archive.raspberrypi.org/debian buster InRelease'
changed its 'Suite' value from 'oldstable' to 'oldoldstable'
N: This must be accepted explicitly before updates for this repository can
be applied. See apt-secure(8) manpage for details.

I might be completely wrong about the relevance. I'd suggest you ask the raspbian developers about this as it's not really something I can do anything about.