Webcam Streaming

154 views
Skip to first unread message

Steve2Q

unread,
Dec 24, 2019, 9:36:57 AM12/24/19
to weewx-user
Hello (and Happy Holidays to all!) I am trying to have the image from a streaming webcam added to my weewx page. I have it functioning over the wireless network in my home, but I cannot see it from the outside world. The following are the settings I am using:

In skin.conf I have:
[Extras]
    # Put any extra tags here that you want to be available in the templates
   
    # Here's an example.
    # This radar image will be available as $Extras.radar_img
    radar_img = http://radar.weather.gov/ridge/lite/N0R/AMX_loop.gif
    # This URL will be used as the image hyperlink:
    # radar_url = http://radar.weather.gov/ridge/radar.php?rid=amx&product=N0R&overlay=11101111&loop=yes
    radar_url = http://www.spaghettimodels.com/cities/westpalmbeach.htm
    # URL for Blitzortung.org; added 08/23/15
     [[lightning]]
         lightning_img = http://www.blitzortung.org/Images/image_b_us.png
    #    lightning_url = http://www.blitzortung.org/Webpages/index.php?lang=en&page_0=32
         lightning_url = http://www.blitzortung.org/live_lightning_maps.php?map=32
    # end of addition
     [[webcam]]
         hyperlink = http://xxx.xxx.x.xx:8081

In index.html.tmpl is:

 #if $Extras.has_key('radar_img')
        <div id="radar_img">
          <a href="$Extras.radar_url">
            <img src="$Extras.radar_img" alt="Radar" /></a>
          <p>Click image for expanded radar loop</p>
          <a href="$Extras.lightning.lightning_url">
            <img src="$Extras.lightning.lightning_img" alt="Lightning" /></a>
          <p>Click image for more Florida lightning info</p>
          <a href="$Extras.webcam.hyperlink">
            <img src="http://xxx.xxx.x.xx:8081" alt="Webcam" /></a> 
         </div>
        #end if

In my router, I added a port forwarding entry of xxx.xxx.x.xx:8081

Thanks for any guidance...

p q

unread,
Dec 24, 2019, 11:17:14 AM12/24/19
to weewx...@googlegroups.com
can you get to the webcam URL from outside the firewall?

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3b8e4f53-a722-4567-913b-452fa9a850b0%40googlegroups.com.


--
Peter Quinn
(415)794-2264

Steve Meltz

unread,
Dec 25, 2019, 5:07:33 PM12/25/19
to weewx...@googlegroups.com
Still no luck..I am continuing my research. 

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/oNqNUgwdIR0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAA1SM21415y_xeFCrxrsj%3DMEGUTFkTABoZO3bTQtJr9Dtr%3DdRg%40mail.gmail.com.

Xant

unread,
Dec 29, 2019, 11:34:35 PM12/29/19
to weewx-user

Steve

Peter Quinn response was correct, but you didnt answer.

Is your camera capable of streaming without specific client?
Can you access your camera, image, video outside your network?

Most people doesn't not understand that most consumer webcameras are not capable of direct streaming, but only higher end and more expensive cameras.

Please, verify my previous postings on this subject:



Always research the Forum, prior to a new posting as already answered in most cases (specially to some as generic as webcam streaming).

X

rich T

unread,
Dec 30, 2019, 12:12:34 AM12/30/19
to weewx-user
Steve

You never mentioned the webcam brand.  If we know what the brand it is, someone might be able to lead you in the proper direction.
Message has been deleted

Steve2Q

unread,
Dec 30, 2019, 9:09:45 AM12/30/19
to weewx-user
Xant, Peter, and Rich. I was out of town and could not answer. Thank you all for getting back to me. Here is what I have now;  4 RasberryPi cameras with a hub (so I can view all 4 cams simultaneously) all running MotionEyeOS. I can access each camera and the hub separately using WiFi or a wired connection in my home. To enable outside access, I port forwarded the hub to a NoIP address. I thought, incorrectly, that if a forwarded the single camera I could view the stream. That is where I am right now. If you need more specific info, let me know and thanks again.

Steve

Steve2Q

unread,
Jan 4, 2020, 3:21:34 PM1/4/20
to weewx-user
Hello again. I finally figured out the problem, and it was me! I had to read a bit more about port forwarding, etc. and found that I assigned the wrong address in index.html.tmpl  . Instead of the address of the camera, I should have put in the WAN address of the router. Now I have the camera on my Weewx webpage and can view it from outside. My only question is: have I created some sort of security hole?

Thanks, Steve

vince

unread,
Jan 4, 2020, 3:52:13 PM1/4/20
to weewx-user
On Saturday, January 4, 2020 at 12:21:34 PM UTC-8, Steve2Q wrote:
Hello again. I finally figured out the problem, and it was me! I had to read a bit more about port forwarding, etc. and found that I assigned the wrong address in index.html.tmpl  . Instead of the address of the camera, I should have put in the WAN address of the router. Now I have the camera on my Weewx webpage and can view it from outside. My only question is: have I created some sort of security hole?



Maybe...but that depends on what exactly you opene, what software you're running internally, and how open you have that software set up.

I run motion (not motioneyeos) on an old pi to shoot timelapse and periodic snapshots and my recollection is that it can be set up to permit password-less control of the configuration.  For example, I can use cron jobs to turn timelapse on/off ala:

To me motion.conf is pretty complicated.  It would be easy to make a mistake and enable outside web control if you set webcontrol_localhost=off and exposed your webcontrol_port to outside traffic.  Definitely don't do that :-)



 

Reply all
Reply to author
Forward
0 new messages