Wiser with Webcam

Discussion in 'C-Bus Wiser 1 Controller' started by rupertclark, Mar 10, 2010.

  1. rupertclark

    rupertclark

    Joined:
    Feb 27, 2010
    Messages:
    9
    Likes Received:
    0
    Location:
    Hillingdon
    I am trying to setup a webcam (Axis 206) with the Wiser application so I can monitor my garage.
    My wiser is set up as option 2 (ie I still use my main router first, with the Wiser plugged into it through it's LAN port).
    I have (just about) got the facility working on the iphone (using the free wiser app) when I am at home, but it will not work when I am out of my Wifi coverage.
    I realise that I need to do some port forwarding and I know how to change the port from 80 to anything else on the webcam), but if I set the port forward on the router straight to the webcam then everyone on the internet will be able to see this (as you cannot have any authentication switched on for the wiser to work).
    Do I forward the port to the wiser or what?
    Also, the webcam cannot be viewed on the PC using the Wiser (even at home), but it works on the iphone, why??
    Thanks for any help
     
    rupertclark, Mar 10, 2010
    #1
  2. rupertclark

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    Ok, the first problem we should solve is why the Wiser UI on a PC at home can't see the IP camera. I assume you've entered a URL for your camera into your PICED project. This is the URL that the Wiser Adobe Flash UI and the Wiser iPhone UI both process to fetch the image. Now, as you can imagine, Adobe Flash's web access functionality is quite different than Apple's web access functionality so that may be the reason why it would work on the iPhone but not on the Adobe Flash UI. But we should be able to find a form of the URL that will work on both. I assume your IP camera URL is something like:
    http://192.168.2.209/image/jpeg.cgi
    If so that would work fine on both. I'm trying to think right now about what would _not_ work fine on both and coming up blank. Could you post what your URL looks like and that might help identify the cause? Thanks.
     
    kjayakumar, Mar 10, 2010
    #2
  3. rupertclark

    rupertclark

    Joined:
    Feb 27, 2010
    Messages:
    9
    Likes Received:
    0
    Location:
    Hillingdon
    Many thanks for your reply.
    The url is:
    http://192.168.17.27/axis-cgi/mjpg/video.cgi?resolution=320x240
    The wiser is on ip address 192.168.17.3, the cni is 192.168.17.4 and the router is 192.168.17.254
    I am using a port forward from external port 8080 to internal port 80 (pointing to the wiser) as I already have a server on port 80.
    I have also opened ports 8080, 8081, 10001, 8888, 8889, 8336, 8337 as another post (correctly) suggested this to get the wiser to work at all using the option 'B' externally.
    Let me know if you need any other info and thanks again.
     
    rupertclark, Mar 11, 2010
    #3
  4. rupertclark

    rupertclark

    Joined:
    Feb 27, 2010
    Messages:
    9
    Likes Received:
    0
    Location:
    Hillingdon
    rupertclark, Mar 11, 2010
    #4
  5. rupertclark

    rupertclark

    Joined:
    Feb 27, 2010
    Messages:
    9
    Likes Received:
    0
    Location:
    Hillingdon
    Anyone able to help?
     
    rupertclark, Mar 13, 2010
    #5
  6. rupertclark

    Colin Moderator

    Joined:
    Aug 3, 2004
    Messages:
    125
    Likes Received:
    24
    Location:
    Australia
    A URL for the Axis 206 that should work with Wiser is http://<IP address>:port/jpg/image.jpg

    Please try this in place of your current setting.

    Also for extensional access please remember to setup the port forwarding in PICED and you Edge Router (Refer to PICED Help)
     
    Colin, Mar 14, 2010
    #6
  7. rupertclark

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    This looks like a URL for a video feed, whereas the Wiser only supports retrieval of static images (this is explained in the Widget Help for the Web Camera Widget).

    Colin's suggestion should sort you out.

    Nick
     
    NickD, Mar 14, 2010
    #7
  8. rupertclark

    HSLee

    Joined:
    Dec 16, 2008
    Messages:
    30
    Likes Received:
    0
    Try to get the snapshot url and try
    My case different with you i able ti view via PC (local , remote) but unable to view via iphone even local.
     
    HSLee, Mar 17, 2010
    #8
  9. rupertclark

    rupertclark

    Joined:
    Feb 27, 2010
    Messages:
    9
    Likes Received:
    0
    Location:
    Hillingdon
    Thanks everyone, getting there. It mainly works locally now (media centre widget and iphone are fine), but still cannot access the webcam from outside.
    Please explain how it should be set up (by all means use ports as examples).
    I currently have as follows:
    Option B setup so wiser is on lan ports.
    Wiser works externally so port forwarding (and open ports) on my router is fine.
    Webcam is set to use port 8080 and that port is open to the router from outside (I assume it shouldn't point straight to the webcam)
    PICED set to use this port for wiser webcam widget
    Anything else I am missing?
     
    rupertclark, Mar 18, 2010
    #9
  10. rupertclark

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    Here are some quick notes:
    - since you are Wiser-as-a-LAN-device mode, traffic routing is thus dependent on both your actual router and the Wiser
    - lets say I have an IP camera, 192.168.2.100, wiser on 192.168.2.1 and the actual router on 192.168.2.50
    - The PICED project will need to be informed about the camera's internal URL and its external port, eg: 9090
    - you'll need to set the IP camera's gateway to point to the Wiser, 192.168.2.1
    - you'll need to ensure that the Wiser is setup to have its LAN gateway set to the actual router, 192.168.2.50
    - you'll need to setup a port forward of port 9090 on your actual router to go to Wiser. so the rule on the router, would look like: external port: 9090 internal ip: 192.168.2.1, internal port: 9090 . What this means is that when a user interface (Flash, iphone, etc) connects from the outside world, it will send a message to Wiser on its control port (8888, you'll need that to be port forwarded as well) asking Wiser to setup its own port forward to the camera. Wiser will do this. Then the traffic path will look like external ip->actual router external ip->actual router internal ip 192.168.2.50 fwd -> Wiser fwd -> camera and then the return path is the exact reverse.
    - There's a lot of settings to check so I recommend drawing all this out on paper, writing out what each devices gateway is, setting up all the relevant port forwards.

    The other alternative is of course to just expose the camera's directly to your actual router. So just port forward 9090 straight from your router to the camera IP and make sure the camera is set to gateway to your router. The penalty there is that your camera's will always be visible to the external world whereas in the Wiser-as-middle-man scenario, it will close the port forwards after the last UI has disconnected.
     
    kjayakumar, Mar 19, 2010
    #10
  11. rupertclark

    ven

    Joined:
    Mar 26, 2010
    Messages:
    35
    Likes Received:
    0
    Location:
    Cape Town
    web cam issue

    Hi All
    I have a simmilar problem as above,
    Using Axis M1011 IP cam. shows fine on live viewer, but not on Wiser. Have tried to change URL to snapshot as mentioned above but no luck. Any suggestions?
     
    ven, Apr 11, 2010
    #11
  12. rupertclark

    Colin Moderator

    Joined:
    Aug 3, 2004
    Messages:
    125
    Likes Received:
    24
    Location:
    Australia
    According to the manual for the Axis M1011 the URL for a still JPG (required by wiser) is http://<ip>/axis-cgi/jpg/image.cgi

    If you refer the Axis manual for your camera on page 32 yo will see the options for setting up anonymous user access, this will be required for wiser because it can not authenticate with a password.

    You may also want to have a fiddle with the security options for this camera as it may be possible to set it up so only wiser access to the camera is possible with the anonymous login if your at all concerned about the access to the camera.

    Note external access to the camera should be set up using wiser.
    If you running the wiser as the edge router this is already done as long as you define a port for each camera in the PICED project.

    If your running the Wiser as a LAN device (know as HG LAN operation) then set the Gateway address of the Camera as the IP address of your Wiser (not your edge router) then set up the ports used for external access (configured in PICED when you create the surveillance widget) in your edge router to be forward to the Wiser IP address. this will ensure that your cameras are not open to the web, unless you are viewing them through the wiser interface (which uses authenticated access).

    a Short Summary

    Surveillance Widget settings
    URL http://<ip>/axis-cgi/jpg/image.cgi
    Refresh Rate 2000
    Forwarded Port = (Anything but 80, 8080, 8888, 8889, 9000, 9001, 10001, 14000, 8336, 8337) I would recommend something higher than 1024

    Camera Settings
    Camera IP = (whatever you like as long as its static and in the same subnet
    Camera Gateway = Wiser IP address (if factory default this would be 192.168.2.1)
    Anonymous access enabled = Yes

    If Wiser is not Edge Router then in your edge router Forward the Ports Defined in Forwarded Port of the surveillance widget to the Wiser IP (Not the camera IP).

    Hope this helps
     
    Last edited by a moderator: Apr 14, 2010
    Colin, Apr 12, 2010
    #12
  13. rupertclark

    ven

    Joined:
    Mar 26, 2010
    Messages:
    35
    Likes Received:
    0
    Location:
    Cape Town
    feed back,

    Hi Collin.
    Just for intrest, i eventualy out of frustration copied the url in the help file to the piced project and magic every thing worked perfectly.

    Can't explain it and no going to even try...:confused:
     
    ven, May 10, 2010
    #13
  14. rupertclark

    Colin Moderator

    Joined:
    Aug 3, 2004
    Messages:
    125
    Likes Received:
    24
    Location:
    Australia
    Did you get your camera or Kitty cam :)
     
    Colin, May 11, 2010
    #14
  15. rupertclark

    Tim1212

    Joined:
    Oct 30, 2009
    Messages:
    27
    Likes Received:
    0
    Location:
    Hong Kong
    Thanks,

    i have tried but still can't works.
    Would you please to show me the detials of diagram for this solution?

    thanks again.
     
    Tim1212, Oct 25, 2010
    #15
  16. rupertclark

    Tim1212

    Joined:
    Oct 30, 2009
    Messages:
    27
    Likes Received:
    0
    Location:
    Hong Kong
    the details setting are shown, kindly please help to recommand.

    LAN IP is 192.168.1.x/24
    DDNS: myhost.com
    the wiser gateway as lan device(IP: 192.168.1.1, CNI: 192.168.1.2), IPCAM(IP: 192.168.1.20) and Router(IP: 192.168.1.254).

    --------------------------------------------------------------------------
    The IPCAM setting on Wiser Control's Surveillance.
    URL: http://192.168.1.20/SnapshotJPEG?Resolution=320x240&Quality=Clarity
    Port: 8011
    --------------------------------------------------------------------------

    --------------------------------------------------------------------------
    The Port Forwarding on Router.
    Name Source Port IP. Local Port
    WiserHttp 8080 192.168.1.1 80
    WiserEcho1 8888 192.168.1.1 8888
    WiserEcho2 8889 192.168.1.1 8889
    WiserCTCT1 8336 192.168.1.1 8336
    WiserCTCT2 8337 192.168.1.1 8337
    WiserCBUS 10001 192.168.1.1 10001
    IPCAM 8011 192.168.1.20 80
    --------------------------------------------------------------------------

    I can access to wiser control page(on browser and iphone) with 192.168.1.1 and myhost.com:8080 where's in local area and the ipcam image was shown. but when outside is unable to show the ipcam image.

    what is the mistake with our setting.

    thanks alot.
     
    Tim1212, Oct 25, 2010
    #16
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.