Node-RED Node for fetching weather data from Xiaomi (Mi) weather API for Chinese locations. Current stable version 0.1.2, last released 2019-12-5, no active development. Key differentiator: simple integration with Node-RED, supports latitude/longitude input within China only, outputs weather object, temperature, humidity, weather condition, AQI, sunrise/sunset. Does not use any official weather API; data source is Xiaomi's internal service. Low maintenance, bug fixes via GitHub issues/QQ group.
npm install node-red-contrib-weatherVerified import paths — ran on the pinned version, not inferred.
Shows minimal Node-RED flow using the weather node with latitude/longitude input.
Use only within China; for global weather, use other nodes like node-red-contrib-openweathermap.
Consider switching to a more reliable weather node using an official API with API key.
Update downstream nodes to read msg.payload instead of msg directly.
Check for newer versions or consider alternatives.
Ensure inject node is configured to send a JSON payload: {"latitude":31,"longitude":121}.Use coordinates within China (e.g., 31,121 for Shanghai). Check network connectivity.
Set input payload to valid JSON string: {"latitude":31,"longitude":121} or configure lat/lon in node properties.