WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: ANPweather on August 18, 2018, 08:05:00 PM

Title: trouble with webcam image
Post by: ANPweather on August 18, 2018, 08:05:00 PM
I'm putting together a webcam page http://www.azjerry.com/ANPW/wxwebcam.php (http://www.azjerry.com/ANPW/wxwebcam.php) but the actual camera image isn't showing on the page.

This is the link to the image which works fine.
  https://www.dropbox.com/s/9ory9bfjwxlcru7/arlosnapshot.jpg?dl=0 (https://www.dropbox.com/s/9ory9bfjwxlcru7/arlosnapshot.jpg?dl=0)

What am I missing?
Title: Re: trouble with webcam image
Post by: chappelledpc on August 20, 2018, 12:44:10 AM
I'm putting together a webcam page http://www.azjerry.com/ANPW/wxwebcam.php (http://www.azjerry.com/ANPW/wxwebcam.php) but the actual camera image isn't showing on the page.

This is the link to the image which works fine.
  https://www.dropbox.com/s/9ory9bfjwxlcru7/arlosnapshot.jpg?dl=0 (https://www.dropbox.com/s/9ory9bfjwxlcru7/arlosnapshot.jpg?dl=0)

What am I missing?

https://www.dropbox.com/s/9ory9bfjwxlcru7/arlosnapshot.jpg?dl=0 doesn't return just the .jpg image, it returns an html document that contains the image.   
Title: Re: trouble with webcam image
Post by: yamiacaveman on August 20, 2018, 12:13:02 PM
Both work for me. The link works fine and I see the same pic on your web site.
Title: Re: trouble with webcam image
Post by: ANPweather on August 20, 2018, 12:44:33 PM
chappelledpc
Of course! I was so happy that it actually displayed the picture that I missed it was in a web page.  #-o

yamiacaveman
Yes, I just figured out this morning how correct the link so that it displays just the picture without the surrounding web page.
Corrected link is https://www.dropbox.com/s/9ory9bfjwxlcru7/arlosnapshot.jpg?dl=raw=1 (https://www.dropbox.com/s/9ory9bfjwxlcru7/arlosnapshot.jpg?dl=raw=1)

Next step is to re-aim the camera.