Sensorclouds
Scheduled Reports

Building a Report

Choose metrics, a time window, a schedule, and a message format

ADMIN ENGINEER

A report is built in four steps: Destination, Metrics, Schedule, and Review. Use Preview at any time to see the rendered Telegram message.

Before you begin

  • Connect a Telegram integration.
  • The device should have sent the fields you want to report on, so they can be picked from a list.

Steps

Open Integrations, click your Telegram integration, and open its Reports tab.

Click New report.

Work through the four steps below, then save. Leave Enabled on for the schedule to run.

1. Destination

Give the report a name (it appears in the message) and pick the Device to summarize.

2. Metrics

Add one metric per number you want in the report:

SettingOptions
FieldThe telemetry field, for example energy. If the device hasn't reported yet, type the field name
AggregationTotal (sum), Average, Minimum, Maximum, Latest value, or Count
Format (optional)A label, prefix, unit, and number of decimal places

Use Total (sum) for counters that report increments (energy used, liters flowed), and Latest value for meters that report a running total.

3. Schedule

Time window (the period each report covers):

WindowCovers
Last 24 hours / Last 7 days / Last 30 days / Last 90 daysA rolling period ending when the report is built
Previous calendar monthThe whole of last month
Current month (to date)From the 1st of this month until now

Frequency:

FrequencyExtra setting
DailyHour of day
WeeklyDay of week and hour
MonthlyDay of month and hour
On demand onlyNone. It runs only when you press Run now, or Build now in Telegram

Choose a Timezone. The schedule runs, and times are shown, in that timezone.

"Build now" period. The window used when someone presses Build now on a delivered message. Leave it on Same as report period, or pick another, for example Current month (to date) on a daily report.

4. Review: message format

FormatResult
SimpleEach metric as a labelled line, formatted for you
TemplateYour own text with tokens: {report_name}, {device_name}, {report_period}, {generated_at}, plus one token per metric. Click a token to insert it. Unknown tokens are left unchanged
Custom (JSON)A raw JSON body

Template example

{report_name}
{device_name} · {report_period}
Energy: {energy_total}
Peak: {power_max}
Generated {generated_at}

(Metric token names come from your metrics. The editor lists the exact tokens you can use.)

Troubleshooting

Message or symptomCauseFix
Maximum 50 reports per tenantThe workspace has 50 reportsDelete reports you no longer need
Unknown device field(s): …A metric uses a field the device has never sentCheck the spelling against the device's Latest Telemetry
TEMPLATE format requires a templateTemplate is chosen, but the message is emptyWrite the template, or switch to Simple
Invalid timezone: …The timezone isn't recognizedPick one from the list
Telegram channel is missing botToken or chatIdThe Telegram integration is incompleteEdit the integration and fill in both
Telegram says "Failed to build" after Build nowThe report couldn't be builtOpen the report in Sensorclouds and click Run now to see the error
The report arrives with empty valuesThe device sent nothing in the windowCheck the device's Live Data, or choose a longer window
Scheduled reports stop arrivingThe report or the integration is disabledTurn both back on

Next Steps

On this page