Announcement

Collapse
No announcement yet.

Need help getting started

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help getting started

    Hi:
    I'm demoing (trial) Homeseer, and very interested in the Kinect plugin.
    installed the plug in and it went fine.
    I set up 2 kinect events and neither worked (one was to take a kinect pic every 20 sec, the other was to play an audio file when kinect voice recognition was triggered by "Jarvis lights" (Jarvis was set as the trigger phrase in Kinect confir)

    The log shows the following error messages - any ideas? thx
    11:36:38 AM Event Event Trigger "Kinect Test" May-30 11:36:18 AM Kinect ERROR Object reference not set to an instance of an object. May-30 11:36:18 AM Event Event Kinect Test, Action of Kinect Action could not be carried out because its configuration is not complete. May-30 11:36:18 AM Event Event Trigger "Kinect Test" May-30 11:35:58 AM Warning In ProcessEventItem, Cannot process event Test, there are no actions. May-30 11:34:27 AM Kinect ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_KINECT.SnapshotServer.Start(KinectSensor kinectSensor) May-30 11:20:53 AM Warning Device ?Unknown ?Unknown New Device Not all voice recognition commands for this device will be active. May-30 11:20:53 AM Warning Device ?Unknown ?Unknown New Device name/location variations form duplicate voice recognition phrases with another device.

  • #2
    could you set the log level to trace from the Kinect config page, and post your logs when you start the plug-in and when you try to run your events.

    For the event that takes a pic, it looks like the Kinect action is not configured properly. If you can't figure out what's wrong could you post a screenshot of your event.
    Thanks

    Comment


    • #3
      Sure:
      here's the log after disabling, enabling the kinect plug in
      May-30 12:29:13 PM Plug-In Finished initializing plug-in Kinect
      May-30 12:29:13 PM Kinect DEBUG End Init
      May-30 12:29:13 PM Kinect DEBUG Web Pages Registered
      May-30 12:29:13 PM Kinect DEBUG Visual Recognition Initialized
      May-30 12:29:13 PM Kinect DEBUG Writing image file Kinect/zones/zones1.jpg
      May-30 12:29:13 PM Kinect DEBUG Deleting image file Kinect/zones/zones0.jpg
      May-30 12:29:13 PM Kinect DEBUG Drawing Zones File
      May-30 12:29:13 PM Kinect DEBUG Voice Recognition Initialized
      May-30 12:29:13 PM Kinect DEBUG USB\VID_0409&PID_005A\7&27D9664A&0&4 status=DeviceNotSupported
      May-30 12:29:13 PM Kinect INFO Kinect version 3.0.0.44
      May-30 12:29:13 PM Kinect DEBUG Logger Initialized
      May-30 12:29:12 PM Info Plugin Kinect has connected. IP:127.0.0.1:57535
      May-30 12:29:12 PM Plug-In Interface Kinect is running as a trial, 23 days remaining.
      May-30 12:29:08 PM Info Plugin Kinect with instance: has disconnected
      May-30 12:29:07 PM Kinect DEBUG Stopping Speech Recognition
      May-30 12:29:07 PM Plug-In Shutting down Plug-In: Kinect

      And here's the log after running the event:
      May-30 12:31:04 PM Kinect DEBUG at HSPI_KINECT.KinectApp.TakePicture(String filePath, ColorImageFormat format)
      May-30 12:31:04 PM Kinect ERROR Object reference not set to an instance of an object.
      May-30 12:31:04 PM Event Event Trigger "Kinect Test"
      May-30 12:30:44 PM Kinect DEBUG at HSPI_KINECT.KinectApp.TakePicture(String filePath, ColorImageFormat format)
      May-30 12:30:44 PM Kinect ERROR Object reference not set to an instance of an object.
      May-30 12:30:44 PM Event Event Trigger "Kinect Test"

      Here's a screen shot of the event:
      attached
      Attached Files

      Comment


      • #4
        The log says: "DeviceNotSupported"
        What kind of Kinect sensor is it? v1 (for Xbox 360) or v2 (for Xbox One) ? The v2 is not supported yet.

        Comment


        • #5
          V1

          Comment


          • #6
            Which drivers have you installed? Runtime or SDK?
            If you have a kinect for Xbox 360 you need to install the SDK: http://board.homeseer.com/showthread.php?t=162315

            Comment


            • #7
              Thanks, getting really close - I just installed the SDK, and now HS shows something in the field showing that I have a kinect. However the event still doesn't work, and gives the following message:

              May-30 4:08:50 PM Kinect DEBUG at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at HSPI_KINECT.ImageExtensions.SaveJpeg(Image img, String filePath, Int64 quality) at HSPI_KINECT.KinectApp.TakePicture(String filePath, ColorImageFormat format) May-30 4:08:50 PM Kinect ERROR A generic error occurred in GDI+. May-30 4:08:50 PM Event Event Trigger "Kinect Test" May-30 4:08:42 PM Kinect DEBUG Speech Recognition Started May-30 4:08:42 PM Kinect DEBUG Rule (Devices) set [the] [Unknown] [Unknown] X10 lights to On May-30 4:08:42 PM Kinect DEBUG Rule (Devices) set [the] [basement] X10 lights to Off May-30 4:08:42 PM Kinect DEBUG Building Grammars May-30 4:08:41 PM Plug-In Finished initializing plug-in Kinect May-30 4:08:41 PM Kinect DEBUG End Init May-30 4:08:41 PM Kinect INFO Kinect initialized May-30 4:08:41 PM Kinect DEBUG Snapshot server started: http://*:8078/kinectsnapshot/ May-30 4:08:41 PM Kinect DEBUG Starting Speech Recognition May-30 4:08:40 PM Kinect DEBUG Web Pages Registered May-30 4:08:40 PM Kinect DEBUG Visual Recognition Initialized May-30 4:08:40 PM Kinect DEBUG Writing image file Kinect/zones/zones1.jpg May-30 4:08:40 PM Kinect DEBUG Deleting image file Kinect/zones/zones0.jpg May-30 4:08:40 PM Kinect DEBUG Drawing Zones File May-30 4:08:40 PM Kinect DEBUG Voice Recognition Initialized May-30 4:08:40 PM Kinect DEBUG USB\VID_0409&PID_005A\7&27D9664A&0&4 status=Connected May-30 4:08:40 PM Kinect INFO Kinect version 3.0.0.44 May-30 4:08:40 PM Kinect DEBUG Logger Initialized May-30 4:08:39 PM Info Plugin Kinect has connected. IP:127.0.0.1:63805 May-30 4:08:39 PM Plug-In Interface Kinect is running as a trial, 23 days remaining. May-30 4:08:35 PM Info Plugin Kinect with instance: has disconnected May-30 4:08:35 PM Kinect DEBUG Stopping Speech Recognition

              Comment


              • #8
                this error usually means the plug-in can't write the jpg file to the path you provided.
                You need to make sure the path exists on the machine where the Kinect plug-in is running.

                Comment


                • #9
                  Yep, I double checked that the path exists and nothing is in there, and that the drive has plenty of free space. (D:\kinect)
                  BTw - the kinect voice works - I set an event and was able to trigger it with a voice command !
                  Also on the kinect confic | camera page it has 3 addresses listed under "snapshot URL":
                  http://192.168.1.6:8078/kinectsnapshot/
                  http://10.40.1.4:8078/kinectsnapshot/
                  http://25.163.26.24:8078/kinectsnapshot/

                  when I click them a picture taken from my kinect comes up

                  Comment


                  • #10
                    in the "Take Picture" action you need to provide the full path of the jpg file, including its name, something like: D:\kinect\test.jpg

                    Comment


                    • #11
                      Bingo! thx
                      anyway to have it store more than 1 pic? - e.g. I have it set to take a pict every x seconds

                      Comment


                      • #12
                        Originally posted by cgott42 View Post
                        Bingo! thx
                        anyway to have it store more than 1 pic? - e.g. I have it set to take a pict every x seconds
                        not right now but it is something I want to add, i.e add an option to add a timestamp suffix to the file

                        Comment


                        • #13
                          thanks!

                          Comment


                          • #14
                            in version 3.0.0.45 available here, I have added a "Add timestamp suffix" option to the "Take Picture" action:

                            For example the following action will produce files like kinect_20160607154813.jpg:

                            Click image for larger version

Name:	timestampsuffix.png
Views:	1
Size:	7.6 KB
ID:	1185018

                            Comment


                            • #15
                              Awesome - thanks!

                              Comment

                              Working...
                              X