Announcement

Collapse
No announcement yet.

Porting HS3->HS4

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

    Porting HS3->HS4

    I apologize if its obvious and I missed it, but I was expecting the documentation to have a section on porting from HS3 to HS4. It appears the focus is just on new plugin development, for those with existing plugins to port, is there any overview of the steps required?

    #2
    Yes, JL is working on that doc. He may be reaching out to you also as I sent him the HSCF changes you made and he may have some questions as he was looking at it also (for other reasons).

    Originally posted by bsobel View Post
    I apologize if its obvious and I missed it, but I was expecting the documentation to have a section on porting from HS3 to HS4. It appears the focus is just on new plugin development, for those with existing plugins to port, is there any overview of the steps required?
    website | buy now | support | youtube

    Comment


      #3
      Sounds good. Thanks!

      Comment


        #4
        Originally posted by rjh View Post
        Yes, JL is working on that doc. He may be reaching out to you also as I sent him the HSCF changes you made and he may have some questions as he was looking at it also (for other reasons).
        Any update?

        Comment


          #5
          Did something ever get posted on HS3–>HS4 plugin conversion?

          I would like to see what it would take to do it and if it is worth it because I really do not see a benefit especially since there will be an upgrade fee
          Cheers,
          Bob
          Web site | Help Desk | Feature Requests | Message Board

          Comment


            #6
            There are some hints at https://docs.homeseer.com/display/HSPI/Using+the+SDK but not really a guide. I published quite a bit in the Alpha forum (which is now this forum) for techniques I found to make it easier. There are also other pioneers that contributed much to this forum.

            I do agree with you that at this time there is little motivation and much work, especially in the UI area.

            Comment


              #7
              A bit here https://docs.homeseer.com/display/HS...+API+Reference

              Comment


                #8
                Thanks
                Cheers,
                Bob
                Web site | Help Desk | Feature Requests | Message Board

                Comment


                  #9
                  So I started converting one of my HS3 plugins to HS4... what a pain in the ***!
                  I really hope I can use the generated web pages as is somehow because I do not feel like rewriting all of the web pages in the plugin

                  Anyone know if you can use the HS3 API in the HS4 plugin to still use the older web page calls (which are in the HS3 API). I am talking about these

                  GenPage
                  BuildPage
                  PagePut

                  as well as these

                  callback.RegisterLink
                  callback.RegisterConfigLink

                  There is no way I am going to rewrite all web pages in the plugin
                  Cheers,
                  Bob
                  Web site | Help Desk | Feature Requests | Message Board

                  Comment


                    #10
                    Code:
                    IHSApplication _hs3;
                    private static IScsServiceClient<IHSApplication> _client3;
                    private const int HomeSeerPort = 10400;
                    
                    IHSApplication GetHS3()
                    {
                      if (_hs3 == null)
                      {
                        try
                        {
                          _client3 = ScsServiceClientBuilder.CreateClient<IHSApplication>(
                                                                      new ScsTcpEndPoint(IpAddress, HomeSeerPort), this);
                          _client3.Connect();
                          _hs3 = _client3.ServiceProxy;
                        }
                        catch (Exception ex)
                        {
                          Console.WriteLine($"GetHS3: {ex}");
                        }
                      }
                    
                      return _hs3;
                    }

                    Comment


                      #11
                      Thanks - will try it out
                      Cheers,
                      Bob
                      Web site | Help Desk | Feature Requests | Message Board

                      Comment

                      Working...
                      X