Author Topic: RTSP stream link to ImperiHome  (Read 14064 times)

Offline tomgru

  • Hero Member
  • *****
  • Posts: 1402
  • Karma: +18/-6
Re: RTSP stream link to ImperiHome
« Reply #30 on: September 28, 2015, 09:34:25 pm »
Ok guys here's a bit more info for you.

First make sure you imperihome device is on and you have the imperihome server enabled in your setting in imperihome.

Enter your device ip followed by the server port for that server like below

http://your_android_device_ip:8080

Webpage for the server should showup.

Got to camera show/hide then click "GET" then "Try it out" under the camera list to find out your list of camera ID's. your going to need this for the camera's your gonna use. This information will be in the device body section after the devID in "quotes".

Now you can make your http address and try it out. You can do this manually or use the "POST' button

http://YOUR_DEVICE_IP:8080/api/rest/camera/view?devid=YOUR_CAMERA_ID

Everyones's device ID will be different and it's not just the Name of the camera.

Here is what mine was.
http://192.168.1.106:8080/api/rest/camera/view?devid=IC_IC_468_IPC_1

OK.. I think I get this.  then, you could either use the lua code per above, or create a webpage dashboard widget on your tablet that points to this url?

wen I run the webpage for the server, there is no camera option. Assume this is because I currently run all my cameras through BI into Vera, then Imperihome?  (I never saw the same CPU hit as you, so haven't bothered changing it yet.)
« Last Edit: September 28, 2015, 09:51:52 pm by tomgru »

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5449
  • Karma: +145/-305
Re: RTSP stream link to ImperiHome
« Reply #31 on: September 28, 2015, 11:28:00 pm »
Ok guys here's a bit more info for you.

First make sure you imperihome device is on and you have the imperihome server enabled in your setting in imperihome.

Enter your device ip followed by the server port for that server like below

http://your_android_device_ip:8080

Webpage for the server should showup.

Got to camera show/hide then click "GET" then "Try it out" under the camera list to find out your list of camera ID's. your going to need this for the camera's your gonna use. This information will be in the device body section after the devID in "quotes".

Now you can make your http address and try it out. You can do this manually or use the "POST' button

http://YOUR_DEVICE_IP:8080/api/rest/camera/view?devid=YOUR_CAMERA_ID

Everyones's device ID will be different and it's not just the Name of the camera.

Here is what mine was.
http://192.168.1.106:8080/api/rest/camera/view?devid=IC_IC_468_IPC_1

OK.. I think I get this.  then, you could either use the lua code per above, or create a webpage dashboard widget on your tablet that points to this url?

wen I run the webpage for the server, there is no camera option. Assume this is because I currently run all my cameras through BI into Vera, then Imperihome?  (I never saw the same CPU hit as you, so haven't bothered changing it yet.)

I'm assuming you should still see the IP camera option in the menu, but you could be right. One of the instructions says after the imperihome update, make sure you do a restart to update the server. Maybe just force close imperihome then reopen. If thats a no go then yes If you have no "IP cameras" in imperihome then I guess this option wont work. Even if you choose not to remove the cameras from VERA you can still setup a test camera in imperihome with the ip camera URL directing to Blueiris and test just one camera that way. This will not effect anything in vera.

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5449
  • Karma: +145/-305
Re: RTSP stream link to ImperiHome
« Reply #32 on: September 28, 2015, 11:31:09 pm »
Some screen shots showing what I'm seeing

Offline dannieboiz

  • Sr. Member
  • ****
  • Posts: 380
  • Karma: +1/-2
Re: RTSP stream link to ImperiHome
« Reply #33 on: October 01, 2015, 01:09:54 am »
Does this also support duplex audio?

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5449
  • Karma: +145/-305
Re: RTSP stream link to ImperiHome
« Reply #34 on: October 01, 2015, 01:11:56 am »
Does this also support duplex audio?

I have no audio in Imperihome, either It doesn't have it or I don't know about it.

Offline tomgru

  • Hero Member
  • *****
  • Posts: 1402
  • Karma: +18/-6
Re: RTSP stream link to ImperiHome
« Reply #35 on: October 06, 2015, 06:35:57 pm »
Ok... i can now see the camera on the Imperihome Server Page, and when i try it out via the http call, it will automatically switch it at the tablet to the streaming view. 

What i can't figure out is how to automate this in the scene.  The way i currently have it, on the advanced tab of a scene activated by motion, i use the Imperihome plugin to "GotoDashPage" and then the dashboard page that has the camera.  This still doesn't go directly to the stream.

is the only way to do this now in the Luup tab and make the http call?  I tried this using the code above, but wanted it to last longer than 10 seconds... so i changed the code to 30000 - this did not work to switch back.  I clearly have no idea how to program in Lua.  :-)  I may use the code to switch to the stream on each tablet, and then used the advanced tab like i did before on a 30 second delay using the Imperihome plugin to switch the pages back.

PS.  As a side note, this does now seem to work through Blue Iris, at least on one of my tablets.  I may have an update that hasn't been installed on the other yet...
« Last Edit: October 06, 2015, 07:46:04 pm by tomgru »

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5449
  • Karma: +145/-305
Re: RTSP stream link to ImperiHome
« Reply #36 on: October 06, 2015, 08:03:58 pm »
Ok... i can now see the camera on the Imperihome Server Page, and when i try it out via the http call, it will automatically switch it at the tablet to the streaming view. 

What i can't figure out is how to automate this in the scene.  The way i currently have it, on the advanced tab of a scene activated by motion, i use the Imperihome plugin to "GotoDashPage" and then the dashboard page that has the camera.  This still doesn't go directly to the stream.

is the only way to do this now in the Luup tab and make the http call?  I tried this using the code above, but wanted it to last longer than 10 seconds... so i changed the code to 30000 - this did not work to switch back.  I clearly have no idea how to program in Lua.  :-)  I may use the code to switch to the stream on each tablet, and then used the advanced tab like i did before on a 30 second delay using the Imperihome plugin to switch the pages back.

PS.  As a side note, this does now seem to work through Blue Iris, at least on one of my tablets.  I may have an update that hasn't been installed on the other yet...

The plugin has not been updated so yes you need to use a LUA code as far as I know.

I'm using this in a scene:

Code: [Select]
local status, result = luup.inet.wget("http://192.168.1.106:8080/api/rest/camera/view?devid=IC_IC_468_IPC_1", 5)
luup.sleep(20000)
local status, result = luup.inet.wget("http://192.168.1.106:8080/api/rest/dashboard/gotopage?pageIdx=1", 5)

To return back to a certian page you need make sure you adjust the last part of the code to know which page to return back to. In my case it is page #1.

The sleep time can be adjusted like you have done.

Offline aztihg

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: RTSP stream link to ImperiHome
« Reply #37 on: November 01, 2015, 11:33:45 pm »
Ok... i can now see the camera on the Imperihome Server Page, and when i try it out via the http call, it will automatically switch it at the tablet to the streaming view. 

What i can't figure out is how to automate this in the scene.  The way i currently have it, on the advanced tab of a scene activated by motion, i use the Imperihome plugin to "GotoDashPage" and then the dashboard page that has the camera.  This still doesn't go directly to the stream.

is the only way to do this now in the Luup tab and make the http call?  I tried this using the code above, but wanted it to last longer than 10 seconds... so i changed the code to 30000 - this did not work to switch back.  I clearly have no idea how to program in Lua.  :-)  I may use the code to switch to the stream on each tablet, and then used the advanced tab like i did before on a 30 second delay using the Imperihome plugin to switch the pages back.

PS.  As a side note, this does now seem to work through Blue Iris, at least on one of my tablets.  I may have an update that hasn't been installed on the other yet...

Hi tomgru. What did you do to see the cams call? I only see the speech, dashboard and Imperihome calls. I do not have BI or the cams integrated in vera. Thanks. aztihg

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5449
  • Karma: +145/-305
Re: RTSP stream link to ImperiHome
« Reply #38 on: November 02, 2015, 01:42:37 am »
Ok... i can now see the camera on the Imperihome Server Page, and when i try it out via the http call, it will automatically switch it at the tablet to the streaming view. 

What i can't figure out is how to automate this in the scene.  The way i currently have it, on the advanced tab of a scene activated by motion, i use the Imperihome plugin to "GotoDashPage" and then the dashboard page that has the camera.  This still doesn't go directly to the stream.

is the only way to do this now in the Luup tab and make the http call?  I tried this using the code above, but wanted it to last longer than 10 seconds... so i changed the code to 30000 - this did not work to switch back.  I clearly have no idea how to program in Lua.  :-)  I may use the code to switch to the stream on each tablet, and then used the advanced tab like i did before on a 30 second delay using the Imperihome plugin to switch the pages back.

PS.  As a side note, this does now seem to work through Blue Iris, at least on one of my tablets.  I may have an update that hasn't been installed on the other yet...

Hi tomgru. What did you do to see the cams call? I only see the speech, dashboard and Imperihome calls. I do not have BI or the cams integrated in vera. Thanks. aztihg

You don't need cameras in VERA or Blueiris. You just need a scene that runs the code above to send it to your imperihome app.

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1981
  • Karma: +60/-193
Re: RTSP stream link to ImperiHome
« Reply #39 on: November 02, 2015, 05:44:19 pm »
You don't need cameras in VERA or Blueiris. You just need a scene that runs the code above to send it to your imperihome app.

I just put all my cams into Vera using the Blue Iris plugin... was super easy and seems like the easiest way to get it into IH?

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5449
  • Karma: +145/-305
Re: RTSP stream link to ImperiHome
« Reply #40 on: November 02, 2015, 07:32:46 pm »
You don't need cameras in VERA or Blueiris. You just need a scene that runs the code above to send it to your imperihome app.

I just put all my cams into Vera using the Blue Iris plugin... was super easy and seems like the easiest way to get it into IH?

Imperihome will stream directly to an IP camera.

So settings, Add new system, IP camera.

I stream from BI using the following:

IPaddress:Port/mjpg/CAM_SHORT_NAME/Video.mjpg

IPaddress:Port/image/CAM_SHORT_NAME?q=50&s=100

Offline aztihg

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: RTSP stream link to ImperiHome
« Reply #41 on: November 02, 2015, 11:41:30 pm »
Thank you guys. I used integlikewhoa's suggestion to add it as a system in Imperihome and works like a charms. When I addedd a tile with a web address the image was zoomed in badly.

Offline dannieboiz

  • Sr. Member
  • ****
  • Posts: 380
  • Karma: +1/-2
Re: RTSP stream link to ImperiHome
« Reply #42 on: November 18, 2015, 09:20:19 pm »
I added my BI cameras as devices to imperihome. Tried restarting Imperihome but I'm still not seeing camera showing up in the api.  Tried restarting the tablet and everything

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5449
  • Karma: +145/-305
Re: RTSP stream link to ImperiHome
« Reply #43 on: November 18, 2015, 09:43:37 pm »
I added my BI cameras as devices to imperihome. Tried restarting Imperihome but I'm still not seeing camera showing up in the api.  Tried restarting the tablet and everything

Did you add user and password for BI when you setup the device.

And

in blueiris options, webserver, do you have "secure only" NOT checked?

Or maybe be more specific by what you mean by "Showing up in the API"...... Do you mean the device is know where to be found? It will put it in a room called "IP Cams"
« Last Edit: November 18, 2015, 09:47:23 pm by integlikewhoa »

Offline dannieboiz

  • Sr. Member
  • ****
  • Posts: 380
  • Karma: +1/-2
Re: RTSP stream link to ImperiHome
« Reply #44 on: November 19, 2015, 12:03:02 am »
Yes, i don't need a password to access my camera locally on BI

When I go to

http://tablet IP:8080/api/rest/help/

I can control the tablet and all but not seeing camera to  get the camera ID