Announcement

Collapse
No announcement yet.

Jon00 Links For Homeseer 3

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

    Jon00 Links For Homeseer 3

    This package allows you to:

    » Add or replace links in the existing Homeseer 3 menu bar.
    » Add text links below the existing menu bar.
    » Add text with optional replacement variables to the logo or menu bar areas.
    » Use links for URL or triggering events (see limitations below).

    Limitations

    » You can only add/replace links in the existing Homeseer 3 menu bar under the View, Tools and Plug-ins headings.
    » Running events in Linux will either fail or be very slow to execute.

    As always, it is available on my site (click on my banner below)

    Any problems, please post here.
    Attached Files
    Last edited by jon00; November 24, 2018, 11:49 AM.
    Jon


    #2
    Gave this a try, but when running the script, I receive the following error:
    Compiling script C:\Program Files\HomeSeer HS3\scripts\Jon00Links.vben: 'HttpUtility' is not a member of 'Web'.
    HS: 2.5.0.60
    Environment: Virtual XP as guest in VMWare Server running under Win 7
    Plug-ins: MLHSPlugin|RCS Serial Thermostat|UltraLog|UltraMon|
    Misc: 303 Devices, 313 Events, 68+ Scripts

    HSeer: 3.0.0.54
    Environment: Virtual XP as guest in VMWare Server running under Win 7
    Plug-ins: BLGData|BLRF|BLRadar|BLRandom|BLSpeech
    UltraM1G3|UltraECM3|UltraMon3|UPBSpud|Z-Wave
    Misc: 148 Devices, 116 Events, 9+ Scripts (so far, still converting)

    Comment


      #3
      Oops..

      You need to add this to your settings.ini under [Settings]

      ScriptingReferences=System.Web;System.web.dll

      If you already have a ScriptingReferences entry, add it to the end of the string preceded by a comma.
      Jon

      Comment


        #4
        That took care of it, thanks for the quick reply!
        HS: 2.5.0.60
        Environment: Virtual XP as guest in VMWare Server running under Win 7
        Plug-ins: MLHSPlugin|RCS Serial Thermostat|UltraLog|UltraMon|
        Misc: 303 Devices, 313 Events, 68+ Scripts

        HSeer: 3.0.0.54
        Environment: Virtual XP as guest in VMWare Server running under Win 7
        Plug-ins: BLGData|BLRF|BLRadar|BLRandom|BLSpeech
        UltraM1G3|UltraECM3|UltraMon3|UPBSpud|Z-Wave
        Misc: 148 Devices, 116 Events, 9+ Scripts (so far, still converting)

        Comment


          #5
          I've just updated the docs.
          Jon

          Comment


            #6
            I tried to add some custom code to create drop down menus in header.htm, which works similar to the old links.htm, but it only made a mess of things as it seemed to conflict with the existing menus and style sheets. What you've done to incorporate right into the existing menus gets around the issues I bumped into. Thanks!
            HS: 2.5.0.60
            Environment: Virtual XP as guest in VMWare Server running under Win 7
            Plug-ins: MLHSPlugin|RCS Serial Thermostat|UltraLog|UltraMon|
            Misc: 303 Devices, 313 Events, 68+ Scripts

            HSeer: 3.0.0.54
            Environment: Virtual XP as guest in VMWare Server running under Win 7
            Plug-ins: BLGData|BLRF|BLRadar|BLRandom|BLSpeech
            UltraM1G3|UltraECM3|UltraMon3|UPBSpud|Z-Wave
            Misc: 148 Devices, 116 Events, 9+ Scripts (so far, still converting)

            Comment


              #7
              HI Jon00,

              This is great, I have just set it up on my HS3 system and am looking forward to having a play within the script. I am curious if in a (future) version it would be possible to have account links based on who is logged into the system (e.g. Guest, Normal or a specific username) so that the links (and sections that could be visited) could potentially be customized on a user by user basis.

              Great work on the script, I look forward to trying the others, I visited your site and have done a big download of almost all of the HS3 scripts
              HS3 PRO, Win10, WeatherXML, HSTouch, Pushover, UltraGCIR, Heaps of Jon00 Plugins, Just sold and about to move so very slim system.

              Facebook | Twitter | Flickr | Google+ | Website | YouTube

              Comment


                #8
                I have not spent that much time on this but the hooks to load links via accounts do not look easy. The speed of the web server for aspx pages also needs to be improved to make this viable.
                Jon

                Comment


                  #9
                  Thats all good, i was just curious.

                  Truth be told, I am hesitant to open up by HS3 system to the world (even as guest access) just as if the system gets hacked I am sure the WAF will decrease lol but it was worth asking about .
                  HS3 PRO, Win10, WeatherXML, HSTouch, Pushover, UltraGCIR, Heaps of Jon00 Plugins, Just sold and about to move so very slim system.

                  Facebook | Twitter | Flickr | Google+ | Website | YouTube

                  Comment


                    #10
                    Very nice and easy to use, thanks again Jon00.
                    I shall be also interested having links or even sub-menus driven per users (guest etc.).
                    I have learned how to make aspx pages with normal HS header and/or-not with HS menu, but sure wish I could have a custom menu for guests !

                    I am also considering changing the HomeSeer logo of the header for a jon00 logo, as I feel I am using jon000's so much...
                    Visit zee e-maison : http://www.e-maison.com

                    Comment


                      #11
                      Sorry Pierre,

                      I missed you post for some reason. Thanks for the compliment! I'm not intending to do anything with this version as it is completely client side driven. I may make a second with more features....

                      I've just released Version 1.0.3 which now gives the option to pin the text links permanently under the main HS3 menu rather than scrolling with the page.

                      Other changes include:

                      Added support for animation settings.
                      Small bug fix related to text extending past the menu bar with many HS3 links defined.

                      If updating from a previous version, just replace the script and copy the new [Settings] entry in the supplied ini to your existing Jon00Links.ini file.
                      Jon

                      Comment


                        #12
                        I've installed this, and I get no errors in the Log. However the links are never altered. Could HS have changed something in recent versions? I'd like to use this to add links to your other plugins that don't automatically put links in HS. If you need me to do any kind of debugging, just let me know what you need me to do and I'll be more than happy to do it.

                        edit: I added the information to the settings.ini, I altered the config file for the links, and I created a manual event which I am manually running. Here is the logs from when I ran it:

                        Code:
                        Jun-22 12:19:44 PM	 	Event	Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/Jon00Links.vben
                        Jun-22 12:19:44 PM	 	Event	Event Trigger "Computer Control adjustLinks"
                        Jun-22 12:19:44 PM	 	Event	Event Computer Control adjustLinks triggered by the event page 'Run' button.

                        Comment


                          #13
                          I've just removed it and added it back so it's working on .190 here.

                          Did you refresh the page?

                          Can you post your Jon00Links.ini file and also copy your ScriptingReferences line from settings.ini
                          Jon

                          Comment


                            #14
                            Originally posted by jon00 View Post
                            I've just removed it and added it back so it's working on .190 here.

                            Did you refresh the page?

                            Can you post your Jon00Links.ini file and also copy your ScriptingReferences line from settings.ini

                            I'm on .187 here (I didn't get the option to update when I restarted today).


                            Yes, I refreshed the page. Even did a force refresh. Here is my Jon00links.ini (from C:\Program Files (x86)\HomeSeer HS3\Config). I did the 6Title and 6URL under "view":

                            Code:
                            [Settings]
                            Delay="500"
                            FadeIn="500"
                            TextLinkMode="1"
                            
                            [View]
                            Enabled="0"
                            1Title="Device Management"
                            1URL="/deviceutility"
                            2Title="Device Status"
                            2URL="/Status"
                            3Title="Events"
                            3URL="/Events"
                            4Title="Energy"
                            4URL="/Energy"
                            5Title="Log"
                            5URL="/EventLog"
                            6Title="Computer Management"
                            6URL="/Jon00RCCNM.asp"
                            7Title=""
                            7URL=""
                            8Title=""
                            8URL=""
                            9Title=""
                            9URL=""
                            10Title=""
                            10URL=""
                            11Title=""
                            11URL=""
                            12Title=""
                            12URL=""
                            
                            [Tools]
                            Enabled="0"
                            1Title="Setup"
                            1URL="/setup"
                            2Title="Global Variables, Timers, & Counters"
                            2URL="/Globals"
                            3Title="Control Panel"
                            3URL="/ControlPanel"
                            4Title="Reminders"
                            4URL="/vorm"
                            5Title="Help"
                            5URL="/help"
                            6Title="About Homeseer"
                            6URL="/About"
                            7Title="Log Out"
                            7URL="/logo"
                            8Title="Device Grouping"
                            8URL="/Jon00Grouping.aspx"
                            9Title=""
                            9URL=""
                            10Title=""
                            10URL=""
                            11Title=""
                            11URL=""
                            12Title=""
                            12URL=""
                            
                            [Plugins]
                            Enabled="0"
                            1Title="Manage"
                            1URL="/interfaces"
                            
                            [TextLinks1]
                            Enabled="1"
                            BackgroundColor="#EBF6FF"
                            Position="center"
                            1Title="Homeseer"
                            1URL="$http://www.homeseer.com"
                            2Title="Homeseer forum"
                            2URL="$http://board.homeseer.com"
                            3Title=""
                            3URL=""
                            4Title=""
                            4URL=""
                            5Title=""
                            5URL=""
                            6Title=""
                            6URL=""
                            7Title=""
                            7URL=""
                            8Title=""
                            8URL=""
                            9Title=""
                            9URL=""
                            10Title=""
                            10URL=""
                            11Title=""
                            11URL=""
                            12Title=""
                            12URL=""
                            
                            [TextLinks2]
                            Enabled="0"
                            BackgroundColor="#DBE6EF"
                            Position="center"
                            1Title=""
                            1URL=""
                            2Title=""
                            2URL=""
                            3Title=""
                            3URL=""
                            4Title=""
                            4URL=""
                            5Title=""
                            5URL=""
                            6Title=""
                            6URL=""
                            7Title=""
                            7URL=""
                            8Title=""
                            8URL=""
                            9Title=""
                            9URL=""
                            10Title=""
                            10URL=""
                            11Title=""
                            11URL=""
                            12Title=""
                            12URL=""
                            
                            [TextLinks3]
                            BackgroundColor="#EBF6FF"
                            Position="center"
                            1Title=""
                            1URL=""
                            2Title=""
                            2URL=""
                            3Title=""
                            3URL=""
                            4Title=""
                            4URL=""
                            5Title=""
                            5URL=""
                            6Title=""
                            6URL=""
                            7Title=""
                            7URL=""
                            8Title=""
                            8URL=""
                            9Title=""
                            9URL=""
                            10Title=""
                            10URL=""
                            11Title=""
                            11URL=""
                            12Title=""
                            12URL=""
                            
                            [Info]
                            Version=1.0.3
                            Here is the section from settings.ini:

                            Code:
                            ScriptingReferences=System.Web;System.web.dll

                            I felt like it was a pretty simple setup process, but maybe I missed something?

                            I copied the files over, adjusted the INI files (I only added 1 link to the "view" menu), created the manual event and ran it.


                            edit: I see I have also done url 8 under tools... above I meant #6 under "view", so I changed it.

                            Comment


                              #15
                              Under [View] and [Tools] there is a setting:

                              Enabled="0"

                              Change this to:

                              Enabled="1"

                              Then rerun the event.

                              Remember, once enabled, all existing settings under each heading will be hidden and you will be dependent on the info in the config file. Luckily, these change rarely.
                              Jon

                              Comment

                              Working...
                              X