当前位置: 首页 > article >正文

如何高效使用Python-miio:5个实战场景完整指南

如何高效使用Python-miio5个实战场景完整指南【免费下载链接】python-miioPython library console tool for controlling Xiaomi smart appliances项目地址: https://gitcode.com/gh_mirrors/py/python-miioPython-miio是一个强大的开源工具让你能够通过Python代码或命令行控制小米智能设备。无论是扫地机器人、空气净化器还是智能灯泡这个库都提供了完整的miIO和MIoT协议支持将小米生态设备转化为可编程的智能终端。在本文中我们将通过5个实际应用场景深入探索Python-miio的核心功能和使用技巧。场景一家庭环境自动化控制想象一下你希望根据室内空气质量自动调节空气净化器的工作模式。Python-miio让你能够轻松实现这样的智能场景。解决方案空气质量监控与自动调节首先你需要获取设备的IP地址和Token。如果使用小米官方App可以通过miio-extract-tokens工具导出所有设备的连接信息# 安装提取工具 pip install python-miio # 提取设备Token miio-extract-tokens对于空气净化器控制Python-miio提供了专门的模块。以小米空气净化器为例from miio import AirPurifier # 初始化设备连接 purifier AirPurifier(192.168.1.100, your_device_token) # 获取当前状态 status purifier.status() print(fPM2.5浓度: {status.aqi} μg/m³) print(f滤芯剩余寿命: {status.filter_life_remaining}%) print(f当前模式: {status.mode}) # 根据PM2.5浓度自动调节 if status.aqi 75: purifier.set_mode(favorite) # 切换到最爱模式 purifier.set_favorite_level(10) # 最大风量 elif status.aqi 35: purifier.set_mode(auto) # 自动模式 else: purifier.set_mode(silent) # 静音模式相关设备支持位于miio/integrations/zhimi/airpurifier/这里包含了空气净化器的完整实现。场景二智能照明系统编程智能照明系统可以根据时间、天气或用户活动自动调整亮度和色温创造舒适的居住环境。解决方案动态照明控制Yeelight智能灯是小米生态中广泛使用的照明设备。Python-miio提供了完整的控制接口from miio import Yeelight # 连接Yeelight设备 light Yeelight(192.168.1.101, your_device_token) # 日出模拟逐渐增加亮度和色温 import time from datetime import datetime def sunrise_simulation(): current_hour datetime.now().hour if 6 current_hour 8: # 早晨6-8点 for brightness in range(10, 80, 5): light.set_brightness(brightness) light.set_color_temp(6500 - (brightness * 50)) # 色温逐渐变暖 time.sleep(60) # 每分钟调整一次 elif current_hour 18: # 晚上6点后 light.set_brightness(30) light.set_color_temp(2700) # 暖黄色光 light.set_power(on) # 设置定时任务 import schedule schedule.every().day.at(06:00).do(sunrise_simulation) schedule.every().day.at(22:00).do(lambda: light.set_power(off))照明设备的具体实现在miio/integrations/yeelight/目录中包含了各种Yeelight型号的支持。场景三扫地机器人智能调度现代家庭中扫地机器人需要根据家庭活动模式智能规划清扫时间避免打扰用户。解决方案基于活动模式的清扫计划Roborock扫地机器人支持丰富的控制选项from miio import Vacuum # 初始化扫地机器人 vacuum Vacuum(192.168.1.102, your_device_token) def smart_cleaning_schedule(): 根据家庭活动模式智能调度清扫 import datetime now datetime.datetime.now() weekday now.weekday() hour now.hour # 工作日白天无人在家时清扫 if 0 weekday 4: # 周一到周五 if 9 hour 17: # 工作时间 if not vacuum.status().is_on: print(开始日常清扫) vacuum.start() # 周末避开休息时间 else: if 10 hour 12 or 14 hour 17: if not vacuum.status().is_on: print(开始周末清扫) vacuum.start() vacuum.set_fan_speed(60) # 中等吸力 # 获取清扫统计数据 def get_cleaning_stats(): stats vacuum.clean_history() print(f总清扫面积: {stats.total_area} m²) print(f总清扫时间: {stats.total_duration} 分钟) print(f清扫次数: {stats.count})扫地机器人的完整功能实现在miio/integrations/roborock/vacuum/目录中包括地图管理、禁区设置等高级功能。场景四多设备协同工作智能家居的真正价值在于设备之间的协同工作。Python-miio让你能够创建复杂的设备联动场景。解决方案设备联动与状态同步from miio import Device, AirPurifier, Yeelight import threading class SmartHomeOrchestrator: def __init__(self): self.devices {} self.initialize_devices() def initialize_devices(self): 初始化所有设备 # 空气净化器 self.devices[purifier] AirPurifier(192.168.1.100, token1) # 智能灯 self.devices[living_room_light] Yeelight(192.168.1.101, token2) self.devices[bedroom_light] Yeelight(192.168.1.102, token3) # 扫地机器人 self.devices[vacuum] Vacuum(192.168.1.103, token4) def good_night_scene(self): 晚安场景关闭所有灯光开启空气净化器静音模式 print(启动晚安场景...) # 关闭所有灯光 for name, device in self.devices.items(): if light in name: device.set_power(off) # 设置空气净化器为睡眠模式 self.devices[purifier].set_mode(silent) # 确保扫地机器人返回充电 if self.devices[vacuum].status().state_code 6: # 清扫中 self.devices[vacuum].home() def morning_wakeup_scene(self): 早晨唤醒场景逐渐亮灯关闭空气净化器 print(启动早晨唤醒场景...) # 逐渐增加卧室灯光亮度 bedroom_light self.devices[bedroom_light] for brightness in range(10, 80, 5): bedroom_light.set_brightness(brightness) time.sleep(30) # 每30秒增加亮度 # 关闭空气净化器 self.devices[purifier].set_power(off)场景五故障诊断与设备监控设备连接问题或异常状态是智能家居系统的常见挑战。Python-miio提供了完善的诊断工具。解决方案系统化故障排查import logging from miio import Device from miio.exceptions import DeviceException class DeviceMonitor: def __init__(self): self.logger logging.getLogger(__name__) logging.basicConfig(levellogging.INFO) def check_device_health(self, ip, token, device_type): 检查设备健康状况 try: # 尝试连接设备 if device_type airpurifier: from miio import AirPurifier device AirPurifier(ip, token) elif device_type vacuum: from miio import Vacuum device Vacuum(ip, token) else: device Device(ip, token) # 获取设备信息 info device.info() status device.status() if hasattr(device, status) else None health_report { ip: ip, type: device_type, online: True, model: info.model if info else Unknown, firmware: info.firmware_version if info else Unknown, status: str(status) if status else N/A } return health_report except DeviceException as e: self.logger.error(f设备 {ip} 连接失败: {str(e)}) return { ip: ip, type: device_type, online: False, error: str(e) } def diagnose_common_issues(self): 诊断常见问题 common_issues { connection_timeout: 检查设备IP和网络连接, token_error: 确认Token是否正确区分大小写, device_not_found: 设备可能离线或IP地址已变更, command_not_supported: 设备型号可能不受支持 } # 使用原始命令测试设备响应 device Device(192.168.1.100, test_token) try: response device.send(miIO.info, []) print(f设备响应: {response}) except Exception as e: error_type type(e).__name__ suggestion common_issues.get(error_type.lower(), 请查看官方文档) print(f问题类型: {error_type}) print(f建议: {suggestion})进阶技巧自定义设备扩展当遇到Python-miio尚未支持的设备时你可以通过扩展库来添加支持。最佳实践创建自定义设备类from miio import Device, DeviceException from miio.device import DeviceStatus class CustomDevice(Device): def __init__(self, ip: str, token: str, start_id: int 0): super().__init__(ip, token, start_id) def get_custom_property(self, property_name): 获取自定义属性 try: response self.send(get_prop, [property_name]) return response[0] if response else None except DeviceException as e: print(f获取属性失败: {e}) return None def set_custom_mode(self, mode_value): 设置自定义模式 try: return self.send(set_mode, [mode_value]) except DeviceException as e: print(f设置模式失败: {e}) return False class CustomDeviceStatus(DeviceStatus): 自定义设备状态容器 def __init__(self, data): self.data data property def custom_property(self): return self.data.get(custom_prop, unknown) property def is_online(self): return self.data.get(online, False) true def __str__(self): return fCustomDeviceStatus(custom_prop{self.custom_property}, online{self.is_online}) # 使用自定义设备 custom_device CustomDevice(192.168.1.105, your_token) status_data custom_device.send(get_status, []) status CustomDeviceStatus(status_data) print(f设备状态: {status})协议实现深度解析Python-miio的核心在于其双协议支持。了解这些协议的工作原理能帮助你更好地使用这个库。miIO协议基础miIO协议是小米早期设备使用的通信协议位于miio/protocol/目录。该协议使用JSON-RPC over UDP进行设备通信# miIO协议通信示例 from miio import miioprotocol class MiIOProtocolHandler: def __init__(self, ip, token): self.protocol miioprotocol.MiIOProtocol(ip, token) def send_command(self, method, params): 发送miIO命令 return self.protocol.send(method, params) def discover_devices(self): 发现局域网内miIO设备 import socket import json # 广播发现消息 message json.dumps({cmd: whois}).encode() sock socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) sock.sendto(message, (255.255.255.255, 54321)) # 接收响应 sock.settimeout(5) devices [] try: while True: data, addr sock.recvfrom(1024) devices.append({ ip: addr[0], response: json.loads(data.decode()) }) except socket.timeout: pass return devicesMIoT协议优势MIoT小米物联网协议是新一代的统一协议提供了更标准化的设备控制接口。相关实现在miio/miot_device.py中from miio import MiotDevice class MIoTDeviceController: def __init__(self, ip, token, mapping): MIoT设备控制器 :param mapping: 设备映射配置定义属性和操作 self.device MiotDevice(ip, token, mapping) def get_all_properties(self): 获取设备所有属性 properties [] for prop in self.device.mapping.get(properties, []): try: value self.device.get_property_by(prop[siid], prop[piid]) properties.append({ name: prop.get(description, Unknown), value: value, unit: prop.get(unit, ) }) except Exception as e: print(f获取属性失败 {prop}: {e}) return properties def execute_action(self, siid, aiid, paramsNone): 执行MIoT操作 return self.device.send(action, { siid: siid, aiid: aiid, in: params or [] })性能优化与最佳实践连接池管理对于需要频繁与设备通信的应用连接池能显著提升性能import threading from queue import Queue from miio import Device class DeviceConnectionPool: def __init__(self, ip, token, pool_size5): self.ip ip self.token token self.pool_size pool_size self._pool Queue(maxsizepool_size) self._lock threading.Lock() self._initialize_pool() def _initialize_pool(self): 初始化连接池 for _ in range(self.pool_size): device Device(self.ip, self.token) self._pool.put(device) def get_connection(self): 从池中获取连接 return self._pool.get() def return_connection(self, device): 归还连接到池中 self._pool.put(device) def execute_with_connection(self, func): 使用连接执行函数 device self.get_connection() try: return func(device) finally: self.return_connection(device) # 使用连接池 pool DeviceConnectionPool(192.168.1.100, token) def get_device_info(device): return device.info() # 并发获取设备信息 with ThreadPoolExecutor(max_workers3) as executor: futures [executor.submit( pool.execute_with_connection, get_device_info ) for _ in range(3)] results [f.result() for f in futures]错误处理与重试机制import time from functools import wraps from miio.exceptions import DeviceException def retry_on_failure(max_retries3, delay1): 失败重试装饰器 def decorator(func): wraps(func) def wrapper(*args, **kwargs): last_exception None for attempt in range(max_retries): try: return func(*args, **kwargs) except DeviceException as e: last_exception e if attempt max_retries - 1: time.sleep(delay * (attempt 1)) continue else: raise last_exception return wrapper return decorator class RobustDeviceController: def __init__(self, device): self.device device retry_on_failure(max_retries3, delay2) def safe_send_command(self, method, params): 安全发送命令自动重试 return self.device.send(method, params) def batch_commands(self, commands): 批量执行命令带错误恢复 results [] for method, params in commands: try: result self.safe_send_command(method, params) results.append((method, success, result)) except DeviceException as e: results.append((method, failed, str(e))) # 记录错误但继续执行其他命令 print(f命令 {method} 执行失败: {e}) return results总结Python-miio为小米智能设备控制提供了强大而灵活的工具集。通过本文的5个实战场景你已经掌握了从基础设备控制到高级自动化场景的实现方法。无论是简单的设备状态查询还是复杂的多设备联动Python-miio都能帮助你构建智能家居解决方案。记住这些关键点正确获取Token是成功连接设备的第一步理解设备类型有助于选择合适的控制模块错误处理机制能提升系统稳定性性能优化对于大规模部署至关重要随着小米生态的不断发展Python-miio社区也在持续更新和完善。如果你遇到了尚未支持的设备不妨参考现有实现为开源项目贡献代码共同完善这个优秀的工具库。现在开始你的智能家居编程之旅吧从简单的灯光控制到复杂的家庭自动化系统Python-miio都能为你提供强大的支持。【免费下载链接】python-miioPython library console tool for controlling Xiaomi smart appliances项目地址: https://gitcode.com/gh_mirrors/py/python-miio创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

相关文章:

如何高效使用Python-miio:5个实战场景完整指南

如何高效使用Python-miio:5个实战场景完整指南 【免费下载链接】python-miio Python library & console tool for controlling Xiaomi smart appliances 项目地址: https://gitcode.com/gh_mirrors/py/python-miio Python-miio是一个强大的开源工具&…...

低功耗入门级原创SAR ADC电路设计成品,smic 0.18工艺,适合初学者研习 包含电路设...

低功耗10bit逐次逼近型SAR ADC电路设计成品 入门时期第二款sarADC,适合新手学习等 包括电路文件和详细设计文档 smic0.18工艺,单端结构,1.8V供电 整体采样率250k,功耗12.23uW,可准确实现基本的模数转换,未做…...

如何轻松设计你的动物森友会岛屿:Happy Island Designer 完整指南

如何轻松设计你的动物森友会岛屿:Happy Island Designer 完整指南 【免费下载链接】HappyIslandDesigner "Happy Island Designer (Alpha)",是一个在线工具,它允许用户设计和定制自己的岛屿。这个工具是受游戏《动物森友会》(Anima…...

D2DX终极指南:让暗黑破坏神2在现代PC上焕发新生的完整教程

D2DX终极指南:让暗黑破坏神2在现代PC上焕发新生的完整教程 【免费下载链接】d2dx D2DX is a complete solution to make Diablo II run well on modern PCs, with high fps and better resolutions. 项目地址: https://gitcode.com/gh_mirrors/d2/d2dx 还在为…...

用GEE和Sentinel-5P数据,5分钟搞定城市空气质量变化趋势分析(以NO2、O3为例)

城市空气质量动态监测:基于GEE与Sentinel-5P的高效分析实战 清晨打开天气预报APP时,那些跳动的空气质量指数背后,其实隐藏着卫星每天扫描地球大气层产生的海量数据。作为环境研究者,我们完全可以通过Google Earth Engine&#xff…...

Swoole协程 vs Go协程:PHP开发者一看就懂的实战对比

Swoole协程 vs Go协程:PHP开发者一看就懂的实战对比 前言:做PHP开发的同学,大概率都被“高并发”困扰过——传统PHP-FPM是同步阻塞模型,一旦遇到IO等待(数据库查询、第三方接口调用),就会阻塞进…...

不止于显示:深入MATLAB机器人工具箱,从URDF模型提取质量、惯量、重心等动力学参数

不止于显示:深入MATLAB机器人工具箱,从URDF模型提取质量、惯量、重心等动力学参数 在机器人动力学建模与仿真中,精确的物理参数是确保算法准确性的基石。许多开发者习惯将URDF文件仅视为3D模型载体,却忽略了其中蕴含的质量分布、惯…...

2026届学术党必备的降重复率网站推荐榜单

Ai论文网站排名(开题报告、文献综述、降aigc率、降重综合对比) TOP1. 千笔AI TOP2. aipasspaper TOP3. 清北论文 TOP4. 豆包 TOP5. kimi TOP6. deepseek 国内权威学术数据库知网,已正式开展AIGC检测服务,此服务依据深度学习…...

别再死记MobileNetV2结构了!从‘倒残差’设计思想理解它为何又快又好

MobileNetV2设计哲学:用"信息高速公路"思维重新理解轻量化网络 想象一下,你正在设计一座城市的交通系统。传统方案是修建双向八车道的宽阔马路(常规卷积网络),但这样会消耗大量资源。而MobileNetV2则像一位精…...

Abel逆变换在等离子体诊断中的应用:如何用Python处理轴对称光谱数据

Abel逆变换在等离子体诊断中的Python实战:从原理到光谱重建 等离子体诊断中轴对称数据的处理一直是实验物理学家面临的挑战。想象一下,当你通过激光诱导击穿光谱(LIBS)获得等离子体发射的光谱数据时,这些二维投影数据实际上包含了三维空间分布…...

告别复制卡!手把手教你用92HID623CPU V5.00给小区门禁梯控做加密发卡(附防锁卡指南)

92HID623CPU V5.00门禁系统安全发卡实战指南 最近在帮几个小区做门禁系统升级时,发现很多物业还在使用老式的M1卡,这种卡片存在严重的安全隐患——复制一张卡只需要几十秒。而采用CPU卡的门禁系统,安全性可以提升好几个量级。今天就以92HID62…...

超越AUC:DCA、NRI与IDI如何为临床预测模型提供更优的评估视角

1. 为什么AUC不够用?临床预测模型评估的痛点 我第一次做临床预测模型的时候,和大多数新手一样,盯着AUC值看了半天。0.75的AUC,看起来还不错?但当我拿着这个模型去找临床医生时,他们问的问题让我哑口无言&am…...

2026年顶配AI写网文工具实测:别再被空洞的GPT味儿坑了!

说实话,2026年了,如果你还在用那种一股子“翻译腔”或者“首先其次最后”的通用AI写网文,那活该你被读者喷。 我最近折腾了半个月,把市面上所谓的“顶配”写书工具全跑了一遍,踩了不少坑,也发现了一些真能…...

外盘期货 Tick 级行情 API 开发服务

外盘期货 Tick 级行情 API 开发,核心是接入低延迟、稳定的实时逐笔成交 / 盘口数据流,用于量化、做市、行情展示等场景。主流路径是:经纪商原生 API / 专业数据服务商 API → WebSocket/CTP 兼容长连接 → 回调解析 Tick → 缓存 / 入库 / 策…...

Casely 再召回超 42.9 万个移动电源,新增事故致 1 人死亡

Casely 移动电源二次召回:事故再升级2025 年 4 月,Casely 首次召回超 42.9 万个 5000mAh 的 Power Pods 无线移动电源,原因是收到 51 起有关锂离子电池“过热、膨胀或起火”的报告,导致 6 人轻微烧伤。如今,该公司和美…...

VFS: Cannot open root device 内核启动故障排查指南

1. 理解"VFS: Cannot open root device"错误 当你看到系统启动时出现"VFS: Cannot open root device"这个错误,就像汽车发动机打不着火一样让人着急。这个错误通常发生在Linux内核启动的最后阶段,系统尝试挂载根文件系统(rootfs)时…...

通过GitLab API动态触发特定Job并传递参数

在持续集成和持续交付(CI/CD)流程中,灵活地触发特定Job并传递参数是一个常见需求,尤其是在需要根据不同的环境或参数来调整执行逻辑的时候。本文将探讨如何通过GitLab的API调用来实现这一目标。 背景介绍 假设我们有一个项目myproject,其中有一个.gitlab-ci.yml文件定义…...

STM32仿真器无法识别内核?可能是这些原因在作祟

1. 硬件连接问题排查 当你发现STM32仿真器无法识别内核时,第一步就该检查硬件连接。我遇到过太多次因为一根杜邦线接触不良,导致整个下午都在瞎折腾的情况。先看看最基础的几个要点: 电源供应是首要检查项。用万用表测量开发板的3.3V和GND之间…...

优雅地使用MUI组件:去除最后一个分隔线

在使用Material-UI(MUI)组件开发用户界面时,我们经常需要对菜单或列表进行分组,并在每个分组之间添加一个分隔线以增强视觉区分度。然而,有时我们不希望在最后一个分组后添加分隔线,因为这会显得多余。今天我们将探讨如何在MUI中实现这种需求,确保UI的清洁和美观。 背景…...

TCGA与GTEx数据融合实战:构建跨平台TPM表达矩阵

1. TCGA与GTEx数据融合的价值与挑战 在癌症研究领域,TCGA(The Cancer Genome Atlas)和GTEx(Genotype-Tissue Expression)是两个最常用的公共数据库。TCGA专注于肿瘤样本的基因组数据,而GTEx则提供了正常组织…...

【紧急预警】AGI基础设施准备窗口仅剩18个月:SITS2026圆桌发布《企业AGI就绪度自评矩阵》(含6大维度22项硬指标)

第一章:SITS2026圆桌:AGI何时到来 2026奇点智能技术大会(https://ml-summit.org) 圆桌共识与分歧焦点 在SITS2026主会场举行的“AGI何时到来”圆桌论坛中,来自DeepMind、Anthropic、中科院自动化所及OpenAI前核心架构师的六位专家展开激烈交…...

2026最权威的五大降AI率神器解析与推荐

Ai论文网站排名(开题报告、文献综述、降aigc率、降重综合对比) TOP1. 千笔AI TOP2. aipasspaper TOP3. 清北论文 TOP4. 豆包 TOP5. kimi TOP6. deepseek 维普AIGC检测系统依靠语言模型以及文本特征分析,能够识别出由生成式人工智能所撰…...

Rockchip RK3588 DTS实战:PCIE与SDIO双模WiFi/蓝牙配置详解

1. RK3588双模无线模块配置入门指南 第一次拿到RK3588开发板时,看到板子上那个小小的无线模块,我完全没想到配置起来会这么复杂。作为嵌入式开发的老兵,我见过各种硬件平台,但RK3588的PCIE和SDIO双模配置确实有不少坑要踩。今天我…...

AGI倒计时进入“工程化攻坚年”(2026–2027双年冲刺指南):从算法层到部署层的7类卡点与企业级应对清单

第一章:SITS2026圆桌:AGI何时到来 2026奇点智能技术大会(https://ml-summit.org) 在SITS2026圆桌论坛上,来自DeepMind、OpenAI、中科院自动化所及东京大学的六位AGI研究者围绕“AGI何时到来”展开深度交锋。分歧远超预期:部分专…...

为什么DeepMind放弃通用智能路径,而华为盘古、通义千问坚持AGI架构?——基于17家机构2023–2024技术路线图的逆向推演(含未公开专利链分析)

第一章:AGI研发的国际竞争格局 2026奇点智能技术大会(https://ml-summit.org) 全球通用人工智能(AGI)研发已进入国家战略竞速阶段,美、中、欧、日、韩等主要经济体正通过顶层政策设计、大规模算力基建投入与前沿基础模型研究形成…...

思科紧急修复高危 ISE 漏洞

聚焦源代码安全,网罗国内外最新资讯!编译:代码卫士思科发布紧急安全公告,提醒用户称其 ISE 和 ISE-IPC 产品中存在多个漏洞,可导致经过身份认证的远程攻击者在受影响设备上执行任意命令。这些漏洞还可能导致路径遍历攻…...

终极免费彩色表情字体:EmojiOne Color完整使用指南

终极免费彩色表情字体:EmojiOne Color完整使用指南 【免费下载链接】emojione-color OpenType-SVG font of EmojiOne 2.3 项目地址: https://gitcode.com/gh_mirrors/em/emojione-color 还在为网页和设计项目中表情符号显示不一致而烦恼吗?想要让…...

RTKLib实战:手把手教你解析RTCM2/3差分数据(附源码调试技巧)

RTKLib实战:从零构建RTCM差分数据解析器与调试全指南 差分GNSS技术正在重塑高精度定位的边界,而RTCM协议作为行业通用语言,其解析能力直接决定了定位引擎的精度上限。本文将带您深入RTKLib的RTCM解析内核,从数据流捕获到校正应用…...

从推理到智能体,大模型强化学习中信用分配机制的演进与突破

在大语言模型(LLM)与强化学习(RL)深度融合的今天,一个核心问题正从幕后走向台前:当模型生成长达数万甚至数百万token的轨迹,或是在复杂环境中完成多轮交互任务时,最终的奖励该如何合…...

终极Windows风扇控制指南:3步实现智能散热与静音平衡

终极Windows风扇控制指南:3步实现智能散热与静音平衡 【免费下载链接】FanControl.Releases This is the release repository for Fan Control, a highly customizable fan controlling software for Windows. 项目地址: https://gitcode.com/GitHub_Trending/fa/…...