Announcement

Collapse
No announcement yet.

XML generator

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

  • XML generator

    Hi all,
    is there any plugin available what will generate xml from Homeseer page?

  • #2
    Hum ... none that I know of. What are you looking to do?
    -Rupp
    sigpic

    Comment


    • #3
      I like to use it for the pronto pro update
      I'm already grabbing the html..it's to much of data XML will reduce this.

      see the next url.
      http://www.domoticaforum.eu/topic.as...&TOPIC_ID=640&

      Comment


      • #4
        What html are you reading? The default homeseer status page?

        tenholde
        tenholde

        Comment


        • #5
          Html page from Rover plugin.

          I have build an virtual weather station on the pronto what will grab the data from Homeseer (rover)


          Originally posted by tenholde View Post
          What html are you reading? The default homeseer status page?

          tenholde

          Comment


          • #6
            Originally posted by Chak View Post
            Hi all,
            is there any plugin available what will generate xml from Homeseer page?
            The UltraStatus HSPI will generate XML for each HomeSeer device. It includes almost every device property in the XML output.

            Example:
            PHP Code:
            <DEVICE ID="deva7959" CODE="&28" STATUS="0" VALUE="0" TIME="0" MISC="49152" CDIM="False" LAST="1/11/2008 7:59:55 AM">
             <
            ICON X="284" Y="346" Z="0" F="-1">
             <![
            CDATA[ /images/HomeSeer/off.gif]]></ICON>
             <
            CONTROLS>
              <
            CONTROL TYPE="Status" LABEL="On" DATA="*" VALUE="ON" /> 
              <
            CONTROL TYPE="Status" LABEL="Off" DATA="*" VALUE="OFF" /> 
             </
            CONTROLS>
             <
            NAME><![CDATALighting 029 [Porch Light]]]></NAME>
             <
            STRING><![CDATA[]]></STRING>
             <
            STATUS><![CDATAOff ]]></STATUS>
             <
            LOCATION><![CDATAOutside ]]></LOCATION>
             <
            LOCATION2><![CDATALighting ]]></LOCATION2>
             <
            TYPE><![CDATAElk M1 Lighting ]]></TYPE>
            </
            DEVICE
            Regards,
            Ultrajones
            Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

            Comment


            • #7
              Thanks
              I have just installed..

              will tray to configure it.

              Comment


              • #8
                How about a web page (instead of Rover) that you enter something like:

                Code:
                http://xxx.xxx.xxx.xxx:nn/tenHsServer.aspx?f=DeviceStatus&d=A5
                and it returns the following ("2" which is status code for ON)


                HTML Code:
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                
                <html xmlns="http://www.w3.org/1999/xhtml"><head><title>
                </title></head><body><form name="form1" method="post" action="Default.aspx" id="form1">
                <div>
                <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEyMjI2NzcxOTRkZPXOgz6bP8T0b9fNvbncvB5VAiJv" />
                </div>
                <span id="Result">2</span>
                </form></body></html>
                Would you be interested in something like that? It implements many of the hs functions as well.

                tenholde
                tenholde

                Comment


                • #9
                  Originally posted by Chak View Post
                  Thanks
                  I have just installed..

                  will tray to configure it.
                  The XML output is available using http://127.0.0.1:81/status?pg=xml_devices

                  Just change 127.0.0.1 to the actual FQDN or IP if accessing from another PC.
                  Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

                  Comment


                  • #10
                    very interesting..
                    can i also request more devices at one?
                    like all devices of one location?




                    Originally posted by tenholde View Post
                    How about a web page (instead of Rover) that you enter something like:

                    Code:
                    http://xxx.xxx.xxx.xxx:nn/tenHsServer.aspx?f=DeviceStatus&d=A5
                    and it returns the following ("2" which is status code for ON)


                    HTML Code:
                    
                    
                    
                    
                    2
                    Would you be interested in something like that? It implements many of the hs functions as well.

                    tenholde

                    Comment


                    • #11
                      I'm getting about 1500 lines of codes when i do that

                      Originally posted by Ultrajones View Post
                      The XML output is available using http://127.0.0.1:81/status?pg=xml_devices

                      Just change 127.0.0.1 to the actual FQDN or IP if accessing from another PC.

                      Comment


                      • #12
                        Originally posted by Chak View Post
                        very interesting..
                        can i also request more devices at one?
                        like all devices of one location?
                        I'm in the process of building this now for another application I'm developing. I plan on something like:
                        Code:
                        http://xxxxxx:xx/tenHsServer.aspx?f=DeviceStatus,d=a1;a5;p6
                        I have implemented the following so far:

                        DeviceStatus (single device)
                        ExecX10
                        GetDevices
                        GetIni
                        SetIni

                        Let me know if you are interested in participating in designing and testing.

                        Here is the output of GetDevices from my server:

                        HTML Code:
                        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                        
                        <html xmlns="http://www.w3.org/1999/xhtml">
                        <head><title>
                        	Untitled Page
                        </title></head>
                        <body>
                            <form name="form1" method="post" action="default.aspx?t=p&amp;f=getdevices" id="form1">
                        <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTIxMDI3MzgyODNkZOex5Qk7IcsDLELh1SVQdWDV4r1O" />
                        
                              <span id="Result">]4:Software Security System:ACRF Plugin:Security Device Monitor;B2:Lamp Module:Basement:Hot Tub;B1:Appliance Module:Basement:Orchids;Q1:Infrared Device:Basement:IR test device;[24:UPB Button Indicator:Foyer:Foyer 6-Button - Indicator  2;[1:UPB Button Indicator:Foyer:Foyer 6-Button - Indicator  1;[27:UPB Button Indicator:Foyer:Foyer 6-Button - Indicator  5;[26:UPB Button Indicator:Foyer:Foyer 6-Button - Indicator  4;[25:UPB Button Indicator:Foyer:Foyer 6-Button - Indicator  3;[28:UPB Button Indicator:Foyer:Foyer 6-Button - Indicator  6;[8:UPB Load/Light Controller:Garage:R Garage Door - Ch:  2;[5:UPB Input/Sensor:Garage:R Garage Door - In  1;[4:UPB Load/Light Controller:Garage:R Garage Door - Ch:  1;[6:UPB Input/Sensor:Garage:R Garage Door - In  2;[12:UPB Load/Light Controller:Garage:Garage Ceiling;[7:UPB Input/Sensor:Garage:R Garage Door - In  3;K8:PCS Light Switch:Kitchen:Cabinet Puck Lights;K9:PCS Light Switch:Kitchen:Ceiling Over Pass-Through;K7:PCS Light Switch:Kitchen:Counter Puck Lights;K6:PCS Light Switch:Kitchen:Ceiling Over Sink;K10:PCS Light Switch:Kitchen:Puck Light in Bar Cabinet;K2:PCS Light Switch:Kitchen:Ceiling Over Table;K5:PCS Light Switch:Kitchen:Hanging Lights Over Island;K3:PCS Light Switch:Kitchen:Ceiling Island/Counter;K4:PCS Light Switch:Kitchen:Ceiling Over Island;K1:PCS Light Switch:Kitchen:Kitchen Ceiling Path;[32:UPB Button Indicator:Laundry:Laundry 6-Button - Indicator  4;[29:UPB Button Indicator:Laundry:Laundry 6-Button - Indicator  1;[31:UPB Button Indicator:Laundry:Laundry 6-Button - Indicator  3;[34:UPB Button Indicator:Laundry:Laundry 6-Button - Indicator  6;[22:UPB Load/Light Controller:Laundry:Laundry Ceiling;[33:UPB Button Indicator:Laundry:Laundry 6-Button - Indicator  5;[30:UPB Button Indicator:Laundry:Laundry 6-Button - Indicator  2;K14:Lamp Module:Missouri Room:East Lamp;K12:Lamp Module:Missouri Room:West Lamp;K11:PCS Light Switch:Missouri Room:Ceiling Fan Lights;O1:MS13A (Hawkeye II):Motion:Kitchen Motion;O5:MS13A (Hawkeye II):Motion:Side Porch Motion;O6:MS13A (Hawkeye II):Motion:Side Porch Dawn/Dusk;O4:MS13A (Hawkeye II):Motion:Front Porch Dawn/Dusk;O3:MS13A (Hawkeye II):Motion:Front Porch Motion;O2:MS13A (Hawkeye II):Motion:Kitchen Dawn/Dusk;A5:Appliance Module:Office:Office Desk;[2:UPB Load/Light Controller:Outside:Coach Lights;[11:UPB Load/Light Controller:Outside:Front Porch;[13:UPB Load/Light Controller:Outside:Garage Outdoor;[3:UPB Load/Light Controller:Outside:Front Landscape;]5:C/RF Unsupervised Passive IR (Motion):Outside:Side Door Motion;[23:UPB Load/Light Controller:Outside:Side Porch;C1:Lamp Module:Outside:Halloween Lantern;I2:Remote:Rain8:Remote Alias for _2;I6:Remote:Rain8:Remote Alias for _6;_3:Rain8:Rain8:East Side;_7:Rain8:Rain8:Rain8Net_Unit_1_Valve 7;_1:Rain8:Rain8:West Front;I5:Remote:Rain8:Remote Alias for _5;_6:Rain8:Rain8:East Back;_8:Rain8:Rain8:Rain8Net_Unit_1_Valve 8;I1:Remote:Rain8:Remote Alias for _1;_4:Rain8:Rain8:West Kitchen/Back;I4:Remote:Rain8:Remote Alias for _4;_2:Rain8:Rain8:East Front;I3:Remote:Rain8:Remote Alias for _3;_5:Rain8:Rain8:West Driveway;I9:Remote:Rain8:Remote Alias for _8;^71:Sprinker Status:Sprinklers:Humidity Sensor;^2:Sprinker Status:Sprinklers:Inhibit Day of Week;^52:Sprinker Status:Sprinklers:Area 8 (Area 8);^81:Sprinker Status:Sprinklers:Historical Daily ET;^6:Sprinker Status:Sprinklers:Inhibit Rain Today;^55:Sprinker Status:Sprinklers:Water Meter 2;^72:Sprinker Status:Sprinklers:Current Icon;^58:Sprinker Status:Sprinklers:Water Meter 5;^45:Sprinker Status:Sprinklers:Area 1 (All Sprinkler Zones);^29:Sprinker Status:Sprinklers:Actual Rain Prior 3 Day;^9:Sprinker Status:Sprinklers:Inhibit External Discrete;^67:Sprinker Status:Sprinklers:Wind Sensor;^73:Sprinker Status:Sprinklers:Forecast Icon;^31:Sprinker Status:Sprinklers:Actual Rain Prior 1 Day;^4:Sprinker Status:Sprinklers:Inhibit Rain Forecast Future Days;^80:Sprinker Status:Sprinklers:Last Hour Solar Index;^30:Sprinker Status:Sprinklers:Actual Rain Prior 2 Day;^65:Sprinker Status:Sprinklers:Zone Ended;^40:Sprinker Status:Sprinklers:Forecast Evaporation 2 Day;^39:Sprinker Status:Sprinklers:Forecast Evaporation 1 Day;^83:Sprinker Status:Sprinklers:Hourly ET x 100;^32:Sprinker Status:Sprinklers:Forecast Rain 1 Day;^59:Sprinker Status:Sprinklers:Water Meter 6;^27:Sprinker Status:Sprinklers:Actual Rain Prior 5 Day;^5:Sprinker Status:Sprinklers:Inhibit Rain Actual Past Days;^37:Sprinker Status:Sprinklers:Predicted Rain;^70:Sprinker Status:Sprinklers:Solar Sensor;^94:Sprinker Status:Sprinklers:Available Version;^28:Sprinker Status:Sprinklers:Actual Rain Prior 4 Day;^51:Sprinker Status:Sprinklers:Area 7 (Area 7);^68:Sprinker Status:Sprinklers:Rain Sensor;^44:Sprinker Status:Sprinklers:Predicted Evaporation;^96:Sprinker Control:Sprinklers:Seasonal Control;^77:Sprinker Status:Sprinklers:ET Sensor;^61:Sprinker Status:Sprinklers:Water Meter 8;^36:Sprinker Status:Sprinklers:Forecast Rain 5 Day;^7:Sprinker Status:Sprinklers:Inhibit Average Wind;^57:Sprinker Status:Sprinklers:Water Meter 4;^63:Sprinker Status:Sprinklers:Max Light in 30 Days;^8:Sprinker Status:Sprinklers:Inhibit Odd-Even;^66:Sprinker Status:Sprinklers:Zone Starting;^85:Sprinker Status:Sprinklers:Calculated Water Use;^46:Sprinker Status:Sprinklers:Area 2 (Area 2);^54:Sprinker Status:Sprinklers:Water Meter 1;^87:Sprinker Status:Sprinklers:Last Forecast Received;^89:Sprinker Status:Sprinklers:Self Redundancy Mode;^41:Sprinker Status:Sprinklers:Forecast Evaporation 3 Day;^86:Sprinker Status:Sprinklers:Discrete Input;^91:Sprinker Status:Sprinklers:Auto-Manual Mode;^69:Sprinker Status:Sprinklers:Temp Sensor;^48:Sprinker Status:Sprinklers:Area 4 (Area 4);^93:Sprinker Status:Sprinklers:Manual Stop;^92:Sprinker Status:Sprinklers:Skip Tomorrow;^99:Sprinkler Control:Sprinklers:mcsSprinklers Reserved House Code;^79:Sprinker Status:Sprinklers:Solar Radiation Sensor;^42:Sprinker Status:Sprinklers:Forecast Evaporation 4 Day;^84:Sprinker Status:Sprinklers:Lowest Soil Moisture;^64:Sprinker Status:Sprinklers:One Day Rain in 30 Days;^60:Sprinker Status:Sprinklers:Water Meter 7;^76:Sprinker Status:Sprinklers:Forecast Rain Percentage;^75:Sprinker Status:Sprinklers:Forecast Min;^95:Sprinker Control:Sprinklers:Manual Override;^78:Sprinker Status:Sprinklers:UV Sensor;^33:Sprinker Status:Sprinklers:Forecast Rain 2 Day;^88:Sprinker Status:Sprinklers:Last Weather Received;^50:Sprinker Status:Sprinklers:Area 6 (Area 6);^82:Sprinker Status:Sprinklers:Daily ET;^56:Sprinker Status:Sprinklers:Water Meter 3;^1:Sprinker Status:Sprinklers:Force Max Days Without Water;^62:Sprinker Status:Sprinklers:Average Wind for 20 Mins;^90:Sprinker Status:Sprinklers:Other Redundancy Mode;^35:Sprinker Status:Sprinklers:Forecast Rain 4 Day;^47:Sprinker Status:Sprinklers:Area 3 (Area 3);^53:Sprinker Status:Sprinklers:Site Status;^3:Sprinker Status:Sprinklers:Inhibit Between Hours;^43:Sprinker Status:Sprinklers:Forecast Evaporation 5 Day;^74:Sprinker Status:Sprinklers:Forecast Max;^49:Sprinker Status:Sprinklers:Area 5 (Area 5);^34:Sprinker Status:Sprinklers:Forecast Rain 3 Day;\3:UPB Device Link:UPB Device Link:Link003;\8:UPB Device Link:UPB Device Link:Garage Outdoor Link;\5:UPB Device Link:UPB Device Link:Laundry Ceiling Link;\4:UPB Device Link:UPB Device Link:Coach Lights Link;\10:UPB Device Link:UPB Device Link:Link006;\1:UPB Device Link:UPB Device Link:Car Button Link;\2:UPB Device Link:UPB Device Link:Front Porch Link;\6:UPB Device Link:UPB Device Link:Garage Ceiling Link;\7:UPB Device Link:UPB Device Link:Side Porch Link;\9:UPB Device Link:UPB Device Link:Link004;Z1:Virtual:Virtual:Joe Messaging;Z2:Virtual:Virtual:Marilyn Messaging;Z4:Virtual:Virtual:HSPI_ten Logging Enable;Z3:Virtual:Virtual:House Occupied;[10:UPB Load/Light Controller:Xmas:Tree;[9:UPB Load/Light Controller:Xmas:Outside B;C2:Lamp Module:Xmas:Gr Room Mantle;[14:UPB Load/Light Controller:Xmas:Tree Skirt;C3:Appliance Module:Xmas:Outside A;B3:Lamp Module:Xmas:Basement;^10:Sprinkler Status:Sprinklers:Inhibit Min Days Between Water;^11:Sprinkler Status:Sprinklers:Inhibit Area 1 Specific;^12:Sprinkler Status:Sprinklers:Inhibit Area 2 Specific;^13:Sprinkler Status:Sprinklers:Inhibit Area 3 Specific;^14:Sprinkler Status:Sprinklers:Inhibit Area 4 Specific;^15:Sprinkler Status:Sprinklers:Inhibit Area 5 Specific;^16:Sprinkler Status:Sprinklers:Inhibit Area 6 Specific;^17:Sprinkler Status:Sprinklers:Inhibit Area 7 Specific;^18:Sprinkler Status:Sprinklers:Inhibit Area 8 Specific;^19:Sprinkler Status:Sprinklers:Inhibit Setup Incomplete;^20:Sprinkler Status:Sprinklers:Inhibit Seasonal Shutdown;^21:Sprinkler Status:Sprinklers:Inhibit Low Temperature;^22:Sprinkler Status:Sprinklers:Inhibit Today-Tomorrow;^23:Sprinkler Status:Sprinklers:Inhibit Browser;^24:Sprinkler Status:Sprinklers:Inhibit Low ET;^25:Sprinkler Status:Sprinklers:Inhibit Max Cycles;^26:Sprinkler Status:Sprinklers:Inhibit By User;^38:Sprinkler Status:Sprinklers:Predicted Rain;</span>
                            </form>
                        </body>
                        </html>
                        Each device is outputted as: DeviceCodeeviceType:Location:Name;
                        tenholde

                        Comment


                        • #13
                          you have pm..

                          Comment

                          Working...
                          X