Documentation navigation

简体中文 · English

G3 weather, reminders and external data

Install current compatible firmware, then configure Weather, Reminders and External data under Settings → Screen. See layouts for composition and the main guide for installation.

On this page

Weather

Provider Configuration
Open-Meteo No key for personal, noncommercial use; coordinates and a location label
QWeather Your API key and project host ending in .qweatherapi.com
Seniverse Your API key with access to the required APIs
OpenWeather Your API key; metric units

For Guangzhou, Guangdong, use latitude 23.1291, longitude 113.2644 and label “Guangzhou”. A 900-second interval is recommended; the range is 300–86400 seconds. The label is display text; coordinates determine the queried location. Open-Meteo retrieves current conditions and three forecast days in one request. Choosing it clears the previous provider's key and custom host.

Server-certificate verification defaults to off and is saved per device; enable it explicitly when wanted. Requests still use HTTPS, and this switch does not alter firmware signature/hash checks. Normalized weather codes select icons and Chinese/English descriptions. Chinese city labels require the full font to finish loading.

With the stock screen MCU, ESP32 converts current conditions from all four providers to the factory protocol: whole degrees Celsius, whole percent humidity and eight icon categories (sun, partly cloudy, overcast, rain, snow, fog, haze and wind/dust). Three-day forecasts and custom location labels require the community MCU. These interfaces do not fetch outdoor PM2.5; that field is shown as missing. New data, disabled weather and expired caches update the stock screen without waiting for its next poll.

“Expired” means the cache has exceeded its validity period. Check enablement, coordinates, key/host, device time, last error and retry countdown, then request a refresh. Failures preserve the previous content and back off for 30, 60, 120, 240 and 300 seconds. Workers never overlap; manual refresh also requires 15-second spacing.

With proxy DNS, the device's gateway must route returned virtual addresses to the proxy. If a weather domain resolves to 198.18.x.x but those connections are not forwarded, the request cannot connect. Return real IP addresses for that weather domain, or configure the proxy route correctly, then retry.

For a memory error, wait for layout/resource uploads or OTA to finish before refreshing. See memory diagnostics.

Reminders

Up to 32 scheduled rules and 32 notices persist. Rules support a one-shot UTC epoch, daily local time or weekly local time; Monday is weekday bit 0. The fixed minute-offset timezone matches the screen, with 480 for Beijing time. Boot and large clock jumps do not replay the entire backlog.

Notices persist, including read acknowledgements. Wake policies obey DND, always wake or wake only for unread notices; individual rules may inherit the global policy. Titles allow 64 UTF-8 bytes and body text 127 bytes, counting bytes rather than characters.

Sensor calibration

Update the matching ESP32 and community screen MCU firmware, then open Settings → Screen → Services → Sensor calibration. Select CO₂ or TVOC, prepare the environment described on the page, confirm it and start. Sampling takes about 2 minutes and can be cancelled before the command is sent.

Sensor Conditions
CO₂ 3 minutes of warm-up with fresh readings; confirm approximately 400 ppm with a reference meter or standard gas, keep it stable for at least 2 minutes before starting and throughout sampling
TVOC 5 minutes 20 seconds of continuous module operation with fresh readings; use clean, ventilated air without alcohol, perfume or cleaning vapours and wait for stable readings; this runs the factory command, whose complete conditions have not been published by the manufacturer

The page shows sampling progress and results. “Sent” means the command was transmitted. CO₂ “Acknowledged” means the sensor replied; compare subsequent readings against the reference. Temperature/humidity retain factory compensation. Formaldehyde and PM2.5 have no one-click calibration control.

API and external charts

Use authenticated POST /api/v1/command, Content-Type: application/msgpack, with {request_id, action, params}. Braces below describe objects before encoding; do not send them as JSON to this interface. MQTT/LAN share the business actions. Query capabilities first.

Action Example parameters or purpose
screen.weather.get / .refresh Read redacted configuration/status or schedule a refresh
screen.reminders.configure {timezone:480,wake:0}
screen.reminders.set {id:1,kind:2,minute:540,days:31,wake:255,enabled:true,title:"Ventilate",text:"Open the window"}; kind 0 once, 1 daily, 2 weekly
screen.reminders.push {title:"Visitor",text:"Doorbell pressed",wake:0}, returning a notice ID
screen.reminders.ack / .delete {id:...} to mark a notice read or delete a scheduled rule
screen.page.set {direction:"next"}, {direction:"previous"} or {page:3}, with one-based pages

External pushes support values, text and charts with source, name, unit and TTL. Expired data is shown as missing. Charts allow three series of 32 points, null gaps, finite values with magnitude at most 1e9 and TTL 1–86400 seconds. Complete parameters, chunked layouts, resource formats and acknowledgements are documented in the service protocol.

See device interfaces and protocols for authentication and encoding examples. Poll matching request IDs where supplied.