www.homeseer.com    
 

Go Back   HomeSeer Message Board > Camera Plug-ins > Camera Discussion > HomeSeer NetCam Plug-in

HomeSeer NetCam Plug-in The NetCam plugin provides access to network based cameras.

Reply
 
Thread Tools Display Modes
  #1  
Old April 4th, 2016, 08:19 AM
fvhemert fvhemert is offline
Seer Deluxe
 
Join Date: Jun 2008
Location: The Netherlands
Posts: 242
Script to e-mail NetCam pictures

Migrating from HS2 to HS3.

I used to have a script in HS2 that sends a picture from the front door camera to a predefined e-mail addres when somebody rings the doorbel.

When trying to use the script in HS3 it fails on pi = hs.Plugin("Netcam")with

Running script C:\Program Files (x86)\HomeSeer HS3\scripts\E_mail pictures.vb :Exception has been thrown by the target of an invocation.Public member 'Plugin' on type 'hsapplication' not found

I believe this is caused because HS3 deals with plugins in a different way.

Is a new sample script available to send NetCam pictures?
Reply With Quote
  #2  
Old April 4th, 2016, 09:48 AM
mhn mhn is offline
Seer Master
 
Join Date: Nov 2010
Location: Denmark
Posts: 533
I just use events for that?

Regards
Morten
Reply With Quote
  #3  
Old April 4th, 2016, 10:55 AM
fvhemert fvhemert is offline
Seer Deluxe
 
Join Date: Jun 2008
Location: The Netherlands
Posts: 242
Taking the pictures, no problem but how do i send the 3rd picture out of 5 using an event?
Reply With Quote
  #4  
Old April 4th, 2016, 01:06 PM
mhn mhn is offline
Seer Master
 
Join Date: Nov 2010
Location: Denmark
Posts: 533
I just send CurrentImage.jpg. Works fine with two cams. But in theory I can get in trouble. :-)
Reply With Quote
  #5  
Old April 5th, 2016, 02:49 AM
fvhemert fvhemert is offline
Seer Deluxe
 
Join Date: Jun 2008
Location: The Netherlands
Posts: 242
Yes, current image works but I liked the flexibility of choosing which foto to send out of a range of 5.

Still trying to understand how to modify the script below to get it to work in

HS3
Code:
Sub Main(Optional ByVal pParms As String = "")
	
	Dim pi As Object
	dim time
	time = timevalue(now)

	pi = hs.Plugin("Netcam")

	Dim files As Collection = pi.getimages("XXXXXX")

	If files.Count >= 2 Then
		Dim latestImage As Integer = 2
		Dim strFileName As String = files(latestImage).Replace("_thmb","")
		hs.WriteLog("Info", "File to send: " & strFileName)
		hs.SendEmail("X@X.X", "X@X.X", "Deurbel "&time, "Voordeur", strFileName)
		hs.SetDeviceString ("Z99", strFileName, True)
	End If


End Sub
I believe the answer can be found at https://homeseer.com/support/homeseer..._functions.htm but I have no idea how to apply this to the NetCam plug in.

Last edited by fvhemert; April 5th, 2016 at 03:57 AM.
Reply With Quote
  #6  
Old June 30th, 2016, 04:08 AM
charlesmbell charlesmbell is offline
Seer
 
Join Date: Mar 2003
Location: Pittsburgh, PA USA
Posts: 66
Quote:
Originally Posted by fvhemert View Post
Yes, current image works but I liked the flexibility of choosing which foto to send out of a range of 5.

Still trying to understand how to modify the script below to get it to work in .
Did you ever find a way to ge this to work in HS3. I also just upgraded and used to email 3rd out of 5 type setup like you on HS2. But cannot figure it out on HS3.

UPDATE:
sort of a workaround, but I basically just captured the correct amount of pics then used the latest.jpg. I cannot do more than one event at a time, but as long as I don't have multiple triggers, it works ok.

Last edited by charlesmbell; July 1st, 2016 at 04:21 PM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Netcam-mailing pictures WfromL HS3 Plug-In Development 6 June 12th, 2016 11:47 PM
Jun00 Mail Script ~Ghost~ HomeSeer General Discussion Area 2 June 3rd, 2015 09:18 PM
NetCam PlugIn - No Pictures lzhenry HS3 / HS3PRO Discussion 0 February 16th, 2015 10:39 PM
e mail script afmiller Jon00's plugins and scripts 1 December 11th, 2011 09:52 AM
how to show pictures from netcam plugin. ralphie Designer 1 July 24th, 2011 02:26 PM


All times are GMT -4. The time now is 04:07 AM.


Copyright HomeSeer Technologies, LLC