Notifications
Clear all

Can't get the webcam to work with Octoprint.  

Page 3 / 4
  RSS
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

You could try 8.8.8.8 (DNS of Google) instead of 1.1.1.1, or perhaps 9.9.9.9 (Quad9 DNS) . Perhaps your router is restricting your internet access?

Posted : 06/10/2023 6:02 pm
BillR94
(@billr94)
Eminent Member
Topic starter answered:
RE: Can't get the webcam to work with Octoprint.

The DNS part of it connects. The host name won't connect. I also tried the 8.8.8.8 and 2.2.2.2. they both connected, however the hostname still did not connect and in either case I could not connect to the repository. I read that if the time zone is off, that Pi wont work. I checked and I am in the correct time zone. I checked my wireless network setting and they are correct. I'm not sure what to check in the router as everything can connect to the internet EXCEPT the Pi. I can use Putty and connect using SSH to the Pi with no problem.

Is there a setting/configuration on the Pi zero other than wifi settings that allow the Pi to connect?

Posted : 06/10/2023 6:12 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

If your router is also your DNS server for your LAN you could try to enter the IP of your router instead of 1.1.1.1 and see if that works. Which DNS server is used by the computer you use for internet accesss? (Settings for Network somewhere, or ipconfig on command line for Windows) Best use the same DNS server on the Pi.

Posted : 06/10/2023 6:12 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

Check if "nslookup google.com" works, or "ping google.com" on the ssh console.

Posted : 06/10/2023 6:14 pm
BillR94
(@billr94)
Eminent Member
Topic starter answered:
RE: Can't get the webcam to work with Octoprint.

see attached

Posted : 06/10/2023 6:17 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

The timezone is not enough, the time must also be correct. Check with the command "date". Should be your local time. But I think that OctoPi has NTP service installed which should take care of that.  Did you set your country in the "wpa_supplicant" file? The standard is UK, I think, I had to uncomment DE for Germany when I put in my wifi credentials. Don't know if that (country info) is asked by the Pi Imager programm, which I did not use. Just one more thing to check ... 🙂

 

Posted : 06/10/2023 6:20 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

I used the address of my Pihole-Raspi which is my DNS server. Worked the first time. Slow cpu speed can't be the reason, the Zero 2 W runs circles around my old style Zero W. 🙂

Posted : 06/10/2023 6:22 pm
BillR94
(@billr94)
Eminent Member
Topic starter answered:
RE: Can't get the webcam to work with Octoprint.

 

Posted by: @walter-layher

Check if "nslookup google.com" works, or "ping google.com" on the ssh console.

I'm not sure I understand how and where to check this.

Posted : 06/10/2023 6:27 pm
BillR94
(@billr94)
Eminent Member
Topic starter answered:
RE: Can't get the webcam to work with Octoprint.

 

Posted by: @walter-layher

I used

the address of my Pihole-Raspi which is my DNS server. Worked the first time. Slow cpu speed can't be the reason, the Zero 2 W runs circles around my old style Zero W. 🙂

Agreed, this pi zero is much faster than my old one!

Posted : 06/10/2023 6:30 pm
BillR94
(@billr94)
Eminent Member
Topic starter answered:
RE: Can't get the webcam to work with Octoprint.

I attached a screen shot using SSH. As you can see, if I type in ping google or any other hostname, it fails but if I ping 1.1.1.1 is responds.

I checked the date and time again and it shows the date correctly and the correct time zone but the time is way off. Not sure if that is causing it.

I am at a loss now! I have no idea what to do now.

Posted : 06/10/2023 6:49 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

You said that you can log in via putty? There.

Posted : 06/10/2023 6:54 pm
Walter Layher
(@walter-layher)
Prominent Member
RE:

Use 8.8.8.8 as a DNS server address. Google's own should work for pinging. You can change the DNS server for the pi like that:

sudo nano /etc/resolv.conf

Then change 1.1.1.1 to 8.8.8.8

Posted : 06/10/2023 6:55 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

I have started my pi again now, so I can check. For the command nslookup you need to install the package bind9-dnsutils. This is helpful for DNS debugging.

sudo apt update
sudo apt dist-upgrade
sudo apt install bind9-dnsutils
Posted : 06/10/2023 7:08 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

There must be something wonky with the DNS of the router. I just checked I can ping 1.1.1.1 and plugins.octoprint.org from my pi.

Posted : 06/10/2023 7:17 pm
Hello
(@hello)
Noble Member
RE: Can't get the webcam to work with Octoprint.

Silly question I know but have you written a newimage onto the sd card via the pi imager make sure you set everything in the settings bottom right corner once you choose the package (other specific os,3d printing,octoprint) it's something like that

Please help me out by downloading a model it's free and easy but really helps me out https://www.printables.com/@Hello_474427/models

Posted : 06/10/2023 7:22 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

When I ping google.com and plugins.octoprint.org, the replies are via ipv6, 1.1.1.1 replies are via ipv4. Could that be a factor? Does your network (LAN) have ipv6?
Could be that those two would work via ipv4 if I disable ipv6, but that should not be necessary. What happens when you ping google com from the command line of your Windows computer?

Posted : 06/10/2023 7:26 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

No, I used dd on linux, that writes the raw image directly to the sdcard. Last time I tried to use the imager app it acted funny with the version of gnome at the time, I don't know. dd has always worked for me. I then mounted the boot partition and changed the 3 lines in the file wpa_supplicant file before I put the card into the Pi for the first time.

dd if=/home/walter/Downloads/octopi-1.0.0-1.9.2-20230720144556.img of=/dev/sdo bs=4M status=progress
Posted : 06/10/2023 7:31 pm
Hello
(@hello)
Noble Member
RE: Can't get the webcam to work with Octoprint.

 

Posted by: @walter-layher

No, I used dd on linux, that writes the raw image directly to the sdcard. Last time I tried to use the imager app it acted funny with the version of gnome at the time, I don't know. dd has always worked for me. I then mounted the boot partition and changed the 3 lines in the file wpa_supplicant file before I put the card into the Pi for the first time.

dd if=/home/walter/Downloads/octopi-1.0.0-1.9.2-20230720144556.img of=/dev/sdo bs=4M status=progress

Yeah but that could cause it

Please help me out by downloading a model it's free and easy but really helps me out https://www.printables.com/@Hello_474427/models

Posted : 06/10/2023 7:47 pm
Walter Layher
(@walter-layher)
Prominent Member
RE: Can't get the webcam to work with Octoprint.

Cause what? That it works? 🙂
Don't think so. The imager works okay, I think. I am just not sure it works with every pi distribution. But they recommend it on OctoPrint, so it should not do something bad. The network setup of the pi happened via DHCP, not via any values that I entered. I just entered SSID, password and changed the country. I did no other changes to the pristine image and it worked. The error must be something in your LAN or wifi setup that does not assign a valid DNS server.
But you can try to change the DNS to 8.8.8.8 like I suggested earlier. I will try that now on mine that uses the default DNS for my home network and report back what happenes with 8.8.8.8 as DNS server on the pi.

Posted : 06/10/2023 7:57 pm
BillR94
(@billr94)
Eminent Member
Topic starter answered:
RE: Can't get the webcam to work with Octoprint.

 

Posted by: @hello

Silly question I know but have you written a newimage onto the sd card via the pi imager make sure you set everything in the settings bottom right corner once you choose the package (other specific os,3d printing,octoprint) it's something like that

 

Yes, I used the imager. I only added wifi user and password and set time zone. The instructions said that no other changes are needed.

 

Posted : 06/10/2023 7:59 pm
Page 3 / 4
Share: