Announcement

Collapse
No announcement yet.

VS2010 Express, tenScripting 1.4.4

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

  • rhodesep
    replied
    Well I am just editing the squeezebox script manually.

    http://board.homeseer.com/showthread.php?t=149241

    Leave a comment:


  • tenholde
    replied
    I've received a support request from another user of tenScripting that received the same 'not serializable' error in referenceing the BLRADAR plugin from tenScripting.

    He contacted the author, who promptly supplied a revised plugin that WAS marked serializable per the HomeSeer standard, and all is well with referencing BLRADAR from tenScripting.

    This might be the solution for Squeezebox.

    tenholde

    Leave a comment:


  • tenholde
    replied
    HomeSeer uses .net remoting (with some help from a third party package) to access HS objects outside of the HS environment, including across your network. The speaker.exe app makes use of this capability, as does tenScripting.

    tenScripting must instantiate a local copy of the HomeSeer objects that you use when debugging remotely. tenScripting creates such an object and makes it available to you as the variable hs. You then create many other objects in your script via method calls using the hs object. This includes you creating a local copy of the object from a plugin such as Squeezebox.

    For .net to make a local copy of an object and all of its properties available, it must be able to send all of this data back and forth across the network. In order to send all kinds of object data (images, binary, text, etc) it must convert all of this data to a serial format (xml, etc) that it can send across the network. This is called serializing the object. .net will check an object to make sure that it can be serialized before it attempts to instantiate it remotely. In order for this to succeed, the object must be marked as serializable by the developer. The HS SDK specifies that all plugins must be marked as serializable.

    I've oversimplified this explanation as I am far from an expert on this stuff.

    There may not be a problem at all with the squeezebox plugin -- it's just something to check out.

    tenholde

    Leave a comment:


  • rhodesep
    replied
    The scripts will runs on HomeSeer Machine. I don't know what "serializable" means. I will post there and see what comes up. Thanks

    Leave a comment:


  • tenholde
    replied
    I'm wondering if it is an issue with the Squeezebox plugin. You might want to post in that forum -- specifically see if the author has marked the plugin dll as serializable.

    tenholde

    Leave a comment:


  • rhodesep
    replied
    Works OK with UltraMon Plugin

    I added small script to HomeSeer.vb Class File that used plugin UltraMon. Added Reference to HSPI_ULTRAMON.DLL. Script runs without error.
    Attached Files

    Leave a comment:


  • tenholde
    replied
    I am at a loss to understand what might be happening. Could you try accessing one or more other plugins via tenScripting to try and rule out something specific with the Squeezebox plugin (the message seems to indicate that it is not marked as serializable, which is a requirement for HS plugins).

    tenholde

    Leave a comment:


  • rhodesep
    replied
    I moved a copy of the file.

    Leave a comment:


  • tenholde
    replied
    Originally posted by rhodesep View Post
    I did physically move the script to \bin\debug. Removed the old reference. Created a new reference to the newly added file. Results were the same.
    I assume you mean you moved the plugin dll to \bin\debug ?

    tenholder

    Leave a comment:


  • rhodesep
    replied
    I did physically move the script to \bin\debug. Removed the old reference. Created a new reference to the newly added file. Results were the same.

    Leave a comment:


  • rhodesep
    replied
    Yes, as a matter of fact this is one of the examples included and loaded with the plug-in.

    Leave a comment:


  • tenholde
    replied
    Does your script run okay from the HS script directory?

    Tenholde

    Leave a comment:


  • rhodesep
    replied
    I did not physically copy any of the reference files. They show up in \bin\debug with a network link. Homeseer.dll and schedule.dll are that way also. I will try to copy it over and let you know.

    Attached another screen shot.
    Attached Files

    Leave a comment:


  • tenholde
    replied
    that seems like the correct file. Did you copy it to your project directory and build the reference to this local copy?

    tenholde

    Leave a comment:


  • rhodesep
    replied
    I have referenced what I think is the right plug-in. The file name is HSPI_SQUEEZEBOX.DLL.

    I am using HSPRO and Win7 X64.

    Leave a comment:

Working...
X