- iDigi Dia Home
- User
  - Getting Started
  - Dia Concepts
  - Devices
  - Loggers
  - Presentations
  - Services
  - Tracing
- Developer
  - Overview
  - Drivers
  - Loggers
  - Presentations
  - Services
  - Integrating Application
  - Tracing Manager
  - Debugging
  - Specific Considerations
  - API Reference

- Email
- Phone
- Contact us:

### Navigation

- index
- next |
- previous |
- iDigi Dia |
- User Documentation »
- Presentations »

# Web

## Overview

Creates a web page showing list of available channels with their values. It supports setting new values and refreshing.

It auto-updates the displayed values every polling seconds. If polling is 0, no auto-update occurs.

## Configuration

A typical Web configuration block looks like this:

    - name: web
      driver: presentations.web.web:Web
      settings:
          page: index
          port: 8001
          use_default_httpserver: True
          title: "ConnectPort Configuration and Management"

### Settings

page (optional, default: index)
  Page name which will be served by this presentation module.
port (optional, default: 8001)
  Port value of the HTTP server.
polling (optional, default: 0)
  How often, in seconds, the channel values are refreshed. 0 means no polling.
use_default_httpserver (optional, default: True)
  Set this value to False if you are going to use your own HTTP server.
title (optional, default: Dia Web Presentation)
  Title of the web page that will be created with this presentation.

## Usage

The presentation can start an own HTTP server - configured by ‘use_default_httpserver’ and ‘port’ settings or use the default one.

To access to the generated web page, open an Internet browser and type the following address:

- Using the default HTTP server (use_default_httpserver setting is True):

    `http://<ip address>/<page name>`

- Using an own HTTP server (use_default_httpserver setting is False):

    `http://<ip address>:<port>/<page name>`

Where `<ip address>` is the IP of the remote device (ConnectPort), `<port>` is the port number configured in settings and `<page name>` is the name of the page to access, also configured in settings.

Once there you can see the list of available channels (with their values) and refresh or set them when possible.

### Navigation

- index
- next |
- previous |
- iDigi Dia |
- User Documentation »
- Presentations »