Archive - what must be done?
This example shows how you request the data from an archive with two temperatures, how you create a diagram in the menu and how you then send the data as an E-mail.

The following steps are required:

  • Customize project
  • Create communication object
  • Create archive
  • Display as diagram
  • Customize master data/project
    Project bar:
    To allow the data to be requested, the option
    "Use http request" must be selected.
    To allow the data to be sent by E-mail, the option "Send data by E-mail" must be selected.
    Create communication object
    Create both communication objects for set and actual temperature.
    Set "Request on startup" in the HomeServer Expert to ensure that the current value is known to the HS on startup.
    Make sure that the read flag has been set by the ETS.

    Check whether the temperature sensor sends both temperatures independently.
    If the EIB device does not automatically send both temperatures then the HomeServer must request the data.

    To do this, a telegram generator must be created in the logic: Designation "Request temp. in cycles".
    Input 1: Cycle in seconds: Fixed value 600
    Input 2: ON/OFF: Fixed value 1
    Command at Output 1: Switch/Request
    Communication object: Set temp.
    Type: Request

    A second request command must be run for the actual temperature:

    Command at Output 1: Switch/Request
    Communication object: Actual temp.
    Type: Request
    Create archive
    The archive is now created. The archive has 2 columns: Set temperature and actual temperature.
    The data should be stored in cycles every 10 minutes (=600 seconds).
    Select the menu item "Archive".
    Data
    Designation "Temperature curve"
    Ring memory: 4320 , corresponds to a recording time of 30 days, at 6 values per second, 144 per day.
    Cycle: 10 minutes; the temperatures are archived every 10 minutes.
    Deadtime: 0
    Data columns
    The two columns of the archive are created here. The date and time are automatically generated. To create the first column, press the "Insert" knob to the right.

    Communication object: Set temperature
    Title of column: Set temperature
    XML field: Accept suggestion
    Number of decimal places: 1

    To create the second column, press the "Insert" knob to the right.

    Communication object: Actual temperature
    Title of column: Actual temperature
    XML field: Accept suggestion
    Number of decimal places: 1
    Sending E-mail
    All settings for sending the archive by E-mail are made here.
    The number of data records from the archive that are to be sent is set in this screen.
    The amount selected thereby always refers to the last X data records.
    This topic is dealt with in more detail in the
    FAQ.
  • To create, press the "Insert" knob to the right.

  • Designation: Temperatures from the last 24 hours
    Period of time: 24 hours
    Max lines: 0
    Format: HTML
    About line: Temperatures from the last 24 hours from home


    These data can be recorded, e.g. by a universal timer (using a command).
    HTTP request
    The number of data records to be requested via the browser is set in this screen. The format, sorting and key for the request of the list are set here.

    Request key: tempv e.g. this key is used when requesting the list.
    Displaying the data as a diagram
    To now show both temperatures as curve diagrams, switch to the program item "Menu".
    Here you can now create a diagram.
    Diagram bar
    The following entries display both temperatures in a diagram:
    Archive: Temperature curve
    Type, diagram: Curve
    Type, time: Segment size, the curve for the last 40 values is hereby shown (design 800x600).
    Time in minutes: 1
    Curve 1: Actual temperature as an average
    Curve 2: Set temperature as an average
    Title: Temperature curve
    X-axis: Time
    Y-axis: Degrees in Celsius
    Curve 1: Actual temperature
    Curve 2: Set temperature