External data sources
External tags hold information from external data sources, such as weather services, electricity stock markets, or other API interfaces.
Create external data source
In tree, a new external tag can be created in the External data sources node via the icon.
In addition to custom data sources, several data sources predefined by AnyViz are available:
| Current weather | By specifying the location and unit system, the current weather at the desired location can be determined. |
| Weather forecast | By specifying the location and unit system, the daily and hourly weather forecast is retrieved. |
| Air pollution | Current air pollution data for a specified location. |
| Electricity spot prices | Wholesale electricity market prices (see details). |
Custom data sources
Data from other systems can be retrieved via cyclic GET or POST requests if the data is available in JSON format. When Custom is selected, the following options appear:
| Method | In most cases, data is retrieved via GET. If a request body is needed, POST must be selected. |
| URL | The request URL to fetch the data |
| Request Body | Only for POST: The JSON payload to be transmitted in the request. |
| Interval | Query interval in minutes |
| Custom headers | If the destination requires additional request headers (e.g. for authentication), these can be specified in the form of a key/value list. |
Caution: The URL of custom data sources must be whitelisted first. Please contact AnyViz support for this.
Import of historical data
In addition to live data, historical data can also be imported via custom data sources. If the destination returns a time series, i.e. a list of values each with its own timestamp, it is detected automatically. The values are transferred to the data logging with their original timestamp.
A time series is detected if the JSON response contains an array of objects in which each object has a timestamp, e.g.:
[
{ "time": "2026-10-29T08:00:00Z", "temperature": 12.4, "humidity": 81 },
{ "time": "2026-10-29T09:00:00Z", "temperature": 13.1, "humidity": 78 }
]
| Timestamp | The timestamp must be contained in a property named time, timestamp, stamp, t or ts. |
| Time formats |
Supported are date strings (e.g. ISO 8601 2026-10-29T08:00:00Z), the compact format yyyyMMddHHmmssfff (e.g. 20261029080000000)
as well as Unix timestamps in seconds or milliseconds. Times without a time zone are interpreted as UTC.
|
| Time range | Only timestamps that are at most 10 years in the past and at most one month in the future are detected. |
| Values | If each object contains only one value besides the timestamp, a single symbol with the path of the array is created. With multiple values, a separate symbol is created for each property (temperature and humidity in the example above). Numbers, strings and boolean values are supported. Entries without a valid value are skipped. |
Symbols containing a time series are additionally marked with the icon in the symbol selection. When creating such a tag, the following options are available for Logging:
- None: No history is stored. The tag only takes over the latest value of the time series.
- Automatic import: All values of the time series are transferred to the data logging with their original timestamp. The current value of the tag corresponds to the latest entry.
Note: With each query, only values whose timestamp is newer than the last imported value are imported. Periods that have already been imported are therefore not stored twice, but older values delivered later are not added either. The response of the destination must not exceed 512 KB.