Announcement

Collapse
No announcement yet.

Plug-in support on Linux (Plug-in authors please read!)

Collapse
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by Pete View Post
    For X windows or whatever GUI there is a suit of tools out there along with a little web server that you can test your stuff with. It was part of the development package. I think if you go into the Raspberry Pi GUI via a VNC X windows setup you might still see it there.

    Testing the mcsSprinklers on Linux a couple of years ago; I used it.
    Pete, I don't follow...do you have any specific package or tool names that i should check out? what did you use with mcsSprinklers?

    i have hs3 and my plugin running on linux/mono, but i would like to be able to 'run in debug mode' my plugin from vs10 and remotely debug the plugin while it runs on linux.

    I read i can drop my code into a linux/mono IDE and run it but I'm afraid that setup won't work for me. I have one source for hs3 that runs on windows and linux. i need to keep my code in VS10.
    Mark

    HS3 Pro 3.0.0.435
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
    Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

    Comment


    • #32
      Sorry to dredge up an old thread but I'm trying to port some plugins to Linux too. How do you handle the "/" vs "\" issue in files like the install.txt file and the app.config files? Will Windows accept forwardslashes "/" in those files?
      Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

      Comment


      • #33
        I think in the app.config file all I did when I was testing (and I think I did get it to work) was to specify multiple paths, like \Bin\Pluginname, /Bin/Pluginname etc covering the possibilities.
        My Plugins:

        Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
        Yeelight 3P | Nanoleaf 3P

        Comment


        • #34
          I used a function to test the OS Then return the correct slash
          Mark

          HS3 Pro 3.0.0.435
          Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
          Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
          Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

          Comment


          • #35
            Yup, but those functions don't work in the installer.txt file
            Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

            Comment


            • #36
              Originally posted by beerygaz View Post
              Yup, but those functions don't work in the installer.txt file
              Oh yah. I'll check my install txt later but I don't think I did any special other than making sure paths names had the correct case to support Linux. I don't recall slashes being a problem.
              Mark

              HS3 Pro 3.0.0.435
              Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
              Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
              Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

              Comment


              • #37
                Originally posted by beerygaz View Post
                Sorry to dredge up an old thread but I'm trying to port some plugins to Linux too. How do you handle the "/" vs "\" issue in files like the install.txt file and the app.config files? Will Windows accept forwardslashes "/" in those files?
                For what it's worth, I just downloaded one of Blades plugins onto the PI and it works fine, even when all of the slashes are of the Windows variety. I never modified our install.txt file to address Linux and it worked as well, so I'm assuming HS is automagically addressing that issue internally.

                Z

                Comment


                • #38
                  So far here recently been testing Spud's plugins for use in Linux and Windows or both and they work fine.

                  Earlier also tested Blade's plugins. I do not think they have done anything special relating to their plugins as they are identical for Windows or Linux.

                  Currently also using WeatherXML in Linux. It does work but there are still a few wintel gotcha's in the base.

                  Over the last few months though have shut off HS3 for Windows and have gone to just running Homeseer 3 Pro on Ubuntu with a Wintel server VB.

                  I can run Spud's Kinect / Alexa windows plugins on the Wintel Server VB talking to the main mothership HS3 running in Linux. I do the same today for MS SAPI speaker running on the Wintel VB and it's been fine now for many months.

                  Recently tested my Quatech boxes (3 of them), Lantronix, Digi USB Anywhere boxes using Wintel software on the Wintel VB running on Ubuntu and it sees the devices just fine adding a bit more to the Ubuntu Homeseer 3 mothership this way. (use Digi Edgeport Serial devices, Digi USB hubs here too and these are working fine in both Linux and Wintel (and both together now).

                  I have been running Michael's mcsSprinklers in Mono now for about 3 years on a Dockstar Debian. It works independently from HS3 but can be managed / monitored by HS3; just never did do this.

                  I have seen a different version of the Z-Wave plugin for Wintel versus Linux. Ideally though it would be nice to run the Z-Wave plugin on an RPi2 talking to a Wintel box running HS3. This does work if it is Linux to Linux.

                  Recently noticed that the 1-Wire stuff is now part of the base of Ubuntu and is much easier to configure these days. I am testing right now with one Zee-2 running in the attic (with Z-Wave). The devices are in a text file updated every minute. I could read the text file from the RPi2 to the main mothership for a remote 1-Wire device hub of sorts (RPi2 - Zee-2).
                  Last edited by Pete; October 25th, 2015, 09:39 AM.
                  - Pete

                  Auto mator
                  Homeseer 3 Pro - 3.0.0.500 (Linux) - Ubuntu 18.04 64 bit Intel CPU - Mono 5.18
                  Homeseer Zee2 (Lite) - 3.0.0.531 (Linux) - ARMBian Ubuntu 18.04 64 bit Arm CPU - Mono 5.20

                  X10, UPB, Zigbee, ZWave and Wifi MQTT automation.

                  Comment


                  • #39
                    Originally posted by Pete View Post
                    Over the last few months though have shut off HS3 for Windows and have gone to just running Homeseer 3 Pro on Ubuntu with a Wintel server VB.
                    Pete are you saying you run a windows box to run the windows only plugins which are managed and used by your Linux HS3 server?

                    If so can you explain how that's setup or point me somewhere to read? I'm running HS3 Ubuntu Server on a VM and can easily spin up a Windows VM to be able to run plugins that only run on windows if that's a viable option. Thank you!

                    Comment


                    • #40
                      Anyone managed to get ASPX pages to work? One of my plugins relies on HS3 serving up an ASPX page and its throwing the following error. I'm not that au fait with ASPX at the best of times, let alone trying to troubleshoot it on mono.



                      Edit: Look like HST think it's a MONO issue.
                      http://bugzilla.homeseer.com/bugzill...ug.cgi?id=2053
                      Last edited by beerygaz; October 31st, 2015, 10:49 AM.
                      Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

                      Comment


                      • #41
                        Can I ask what the position is with Mono versions at the minute? I see in here that the suggestion is that the Zee ships with Mono 2.8 - is this still the case (as it is obviously quite old now)?

                        I know that there are various mentions of the position with upgrading Mono and that it could cause issue with the HS DB but I am not sure what I should be looking at. Or if there is any formal advice for users wishing to upgrade their version of Mono and the best way of doing it from a HS point of view.

                        The problem I have is that a user running a Zee gets a HTTPS error (authentication or decryption has failed) that there are a fair few bug reports of knocking around the internet. I am running Mono 4.6.2 and it runs just fine so either a missing package or a bug that was fixed in the latter versions of Mono. I'd prefer not to start having to change code if I can help it just to get around this (especially as unless I try and force an install of an old version of Mono then I can't recreate the bug).
                        My Plugins:

                        Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
                        Yeelight 3P | Nanoleaf 3P

                        Comment

                        Working...
                        X