Newbie question


#1

Hi

I am a long time user of WebcamXP or Webcam7 and have just recently switched over to netcam studion.
One of the things I have used Webcam7 is to easily embed a webcam stream into my home automation software
(homeseer, HSTouch) by simply referencing by example

http://127.0.0.1:8080/cam_2.jpg

In netcam studio I am able to get a stream in a browser by using http://127.0.0.1:8100/#source/2 but when I try to embed that in my home automation software it doesn’t seem to work.

are the two streaming methods the same between webcam7 and netcam studio? if so shouldn’t this work?

Or is there another way to get this streaming to work in the HSTouch software?

Thanks, any help is appreciated.


#2

Hi! If you open the Windows client and go to Settings -> Generate HTML you have a code generator that will generate the correct code for embedding.
-Henrik


#3

As Henrik suggested, use the wizard for generating HTML (follow the instructions of the manual for doing so since you first have to create an account etc…)

Once this has been done, you’ll have a token that allows retrieving image (authentication token) and using this you can pull still or mjpeg images using
http://127.0.0.1/Jpeg/0?authToken=xxxxxxxxxxxxx

If you don’t have a valid token then it won’t work so either you need each time to login to retrieve a dynamic / temporary one or use the procedure above to have a static / permanent token which in your case is probably what you want.


#4

Thank you both for your replies.

The problem is that I have created an account and generated a permanent token, but the url request doesn’t seem to work in my home automation software.

when I just use a browser and type in http://127.0.0.1:8100/Jpeg/0?auth token=xxxxxxxxxxxxxxxxxx I get a login page (which does work when I type in my credentials) , but if I do not login I get

Status: 401 - Unauthorized

Source: 192.168.1.218

User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Headers:
Accept: text/html, application/xhtml+xml, image/jxr, /
Accept-Language: en-US,en;q=0.5
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate
Host: 192.168.1.218:8100
DNT: 1
Connection: Keep-Alive

Request: http://jschw113503:8100/Jpeg/0?auth%20token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

User Info: Anonymous [None] Not Authenticated

Timestamp: 2016/02/21 07:22:14.287

I thought with the permanent token I wouldn’t have to login each time. The login page will not work with the home automation software.


#5

When you use the wizard you can set Stream Type to Jpeg och Mjpeg. From your URL above I see that you use Jpeg. If you can use MJpeg instead I suggest you use that since is easier. The URL will then be for cam 0 http://127.0.0.1:8100/Mjpeg/0?authToken=5d5b7fca-418c-4xxxxxxxxx
I have tested that on different computers in my network by changing IP and it works without login. If you check in the wizard the URLs are quite different using Jpeg or MJpeg.


#6

please refer to the user manual and to the examples we give here. Nowhere it states auth%20token as you’re using but authToken as a single word!


#7

Thanks again for your replies.

Using the wizard, I am able to view the stream in a browser. Unfortunately when putting that same URL into my HSTouch software
it does not bring up the image.
Apparantly the HSTouch software is not compatible with Netcam Studio.

Thanks anyways.


#8

I am just elaborating here. Is a problem with Jpeg and Mjpeg? Can you go back to webcamxp and see if you can get an URL for the Mjpeg stream and embed that inte HSTouch?


#9

No , it works fine with the url from WebcamXp ( either jpeg or mjpeg) it just doesn’t work when I use Netcam studio and use the url with the authorization token.


#10

Hi, sorry for the basic question, but I’m really lost. I downloaded the NetCam Studio and the VLC server, but I don’t see any of these settings mentioned in this thread. All I see is my web cam in the NetCamCenter, but I don’t see any setttings toolbar or where the generate html is located… Is there another piece I need to download?


#11

Hi. Open Netcam Studio: go to Settings and to the menu you have Generate HTML to the right.