Announcement

Collapse
No announcement yet.

Jon00 Ini Editor for Homeseer 3 & Homeseer 4

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

  • jon00
    replied
    It shows the problem submission in the first line of the stack trace. Just make the changes detailed if you don't want it to happen again.

    Leave a comment:


  • noopara
    replied
    I am trying to use the iniEditor to edit your links.ini file but I don't see anything like an html tag anywhere in it. There is no "<" or ">" in the file at all. I just did it with notepad++.

    Thanks,

    -- greg

    Leave a comment:


  • jon00
    replied
    See this post: https://forums.homeseer.com/forum/3r...98#post1341698

    Leave a comment:


  • noopara
    replied
    Got this error when saving.
    Attached Files

    Leave a comment:


  • jon00
    replied
    Version 1.0.2 is now available:

    Changes since V1.0.1

    Added option to run an associated event for each ini file.
    Added scrolling to keep Save changes / Restore backup & Run associated event buttons in view at all times.
    Updated to work with both HS3 and HS4 correctly.

    Any issues, please let me know

    Leave a comment:


  • 123qweasd
    replied
    Thanks Jon, much appreciated.
    Works perfectly now.

    Leave a comment:


  • jon00
    replied
    You have placed the tags below the wrong tag.

    Look for <system.web> NOT </system.web> (i.e. without the slash).

    Leave a comment:


  • 123qweasd
    replied
    Thanks for the feedback Jon,
    Once I add the 2 lines, I get this when starting the script:
    Server Error in '/' Application.


    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Unrecognized configuration section pages.

    Source Error:

    An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
    Source File: C:\Program Files (x86)\HomeSeer HS3\html\web.config Line: 46


    Show Additional Configuration Errors:
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.3928.0





    my web.config looks like this (bottom part)



    <sessionState
    timeout="40"
    />


    </system.web>
    <pages validateRequest="false" />
    <httpRuntime requestValidationMode="2.0"/>
    </configuration>


    Thx








    Leave a comment:


  • jon00
    replied
    I expect you are trying to save something to the ini that contains < > tags (such as html) or content with '&#' together. The error is ASP.NET4 protection to stop cross site injection (XSS) attacks.

    You can override this behavior by modifying the web.config file found in your html directory. Open this up in a text editor and find the line:

    <system.web>

    Add the following 2 lines underneath this tag:

    <pages validateRequest="false" />
    <httpRuntime requestValidationMode="2.0"/>


    Then save the changes. I would only recommend this if you do not expose your HS server to the internet.

    Leave a comment:


  • 123qweasd
    replied
    Hi Jon, script works, however I get this error when trying to change/save Jon00Links.ini:
    Server Error in '/' Application.

    A potentially dangerous Request.Form value was detected from the client (s2="..., Timers, &#38; Counters"
    2UR...").


    Description: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script. The data might represent an attempt to compromise the security of your application, such as a cross-site scripting attack. If this type of input is appropriate in your application, you can include code in a web page to explicitly allow it. For more information, see http://go.microsoft.com/fwlink/?LinkID=212874.

    Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (s2="..., Timers, &#38; Counters"
    2UR...").

    Source Error:
    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

    <%@ Page Language="C#" Debug="true" %>

    or:

    2) Add the following section to the configuration file of your application:

    <configuration>
    <system.web>
    <compilation debug="true"/>
    </system.web>
    </configuration>

    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
    Stack Trace:
    [HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (s2="..., Timers, &#38; Counters" 2UR...").] System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +324 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValue Collection collection, RequestValidationSource requestCollection) +239 System.Web.HttpRequest.get_Form() +50 System.Web.HttpRequest.get_HasForm() +61 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +48 System.Web.UI.Page.DeterminePostBackMode() +82 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5796 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +250 System.Web.UI.Page.ProcessRequest() +73 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +23 System.Web.UI.Page.ProcessRequest(HttpContext context) +111 ASP.jon00inieditor_aspx.ProcessRequest(HttpContext context) +37 System.Web.CallHandlerExecutionStep.System.Web.HttpApplicati on.IExecutionStep.Execute() +772 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.3928.0



    EDIT : same thing for on00BBCWeatherHS3.ini




    Leave a comment:


  • noopara
    replied
    Thanks Jon and jhirschhorn - I forgot about the custom page option. I've never put it to use. That's exactly what I was looking for.

    Leave a comment:


  • jhirschhorn
    replied
    Add a link to it (the aspx URL) using the Homeseer dashboard, Tools-> Setup-> and then "Custom" tab, where you can set up additional web pages. Or you can download Jon00Links, which allows you to add a lot more links to the dropdown menus, and even add a couple additional rows of your own custom links.

    Jon00's stuff is awesome!

    Leave a comment:


  • jon00
    replied
    You can add it to the HomeSeer menu by using the custom links (Setup/Custom tab).

    Leave a comment:


  • noopara
    replied
    Hey Jon,

    How can I run the ini editor from the HS3 dashboard without having to type in jon00inieditor.aspx.

    I'm going to use it to hold notes and a to-do list on a fictitious ini file called notes.ini and would like to access it easily from any browser on any device without having to remember the link.

    Leave a comment:


  • jon00
    replied
    Originally posted by Summerguy View Post
    Thanks JON!!! This is just insanely helpful! Just saw it. Who needs a UI when you have this lol?
    Good to here!

    Leave a comment:

Working...
X