WordPress Plugin

Download

ip-anemometer-wp-plugin-0.3.2.zip (2016-05-21)

To install the plugin, copy the ip-anemometer/ directory to wp-content/plugins/ip-anemometer/ and activate the plugin in the WordPress plugins page.

Overview

The WordPress plugin allows you to easily embed IP anemometer charts in WordPress content. Simply use a shortcode to specify the server URL and the charts/components to show.

For example, this shortcode…

[ipa url="http://foo.bar/ipa/view/ipa.php" period_selector="42" summary speed]

… will show the period selector (with a default of 42 minutes), the summary table and the wind speed chart:

Period:

The url parameter must only be specified in the first occurence of the ipa shortcode. It is valid for the entire page. If you want to show another chart somewhere else in the page, it must be omitted:

[ipa histogram]

Parameters

The ipa shortcode supports a number of parameters as described in the following sections.

Options

  • url="http://some.where/ipa/view/ipa.php"
    The URL of the ipa.php file on the IP anemometer server. This must be specified for the first shortcode on the page.
  • period="42"
    The period to show in minutes. This sets the period to display without showing a period selector. Defaults to 60 minutes if omitted.
  • spinner=0
    By default a spinner is shown while loading data, i.e. when the page loads initially and when the load button is clicked. This disables the spinner.

Controls

  • period_selector="42"
    Shows the period selector and sets the period to 42 minutes. The default is 60 minutes if this is omitted.

Charts

  • summary
    The summary table.
  • speed
    Wind speed over time for the specified period.
  • histogram
    Wind speed histogram for the specified period.
  • temp_hum
    Temperature and humidity for the last 24 hours.
  • door
    Door sensor status for the last 8 days.
  • pilots
    Pilot count for the last 8 days.
  • adc channel="<channel no.>" label="<channel label>"
    A/D converter/voltage sensor readout of the specified channel.
  • lag
    Upload lag for the last 24 hours.
  • temperature
    CPU temperature for the last 24 hours.
  • signal
    Signal strength for the last 24 hours (for a Huawei E303 compatible 3G USB device).
  • network
    Network type for the last 24 hours (for a Huawei E303 compatible 3G USB device).
  • transfer
    Data transfer volume for the last 24 hours (for a Huawei E303 compatible 3G USB device).

Leave a Reply

Your email address will not be published. Required fields are marked *