npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

cricetulu

v2.0.12

Published

rokid device management

Readme

设备管理客户端

功能

  • 音箱刷机(暂时支持 naboo、Rokid-me(yodaos))
  • 状态上报(NOAMAL、RECOERVERING、FAILED、OFFLINE)
  • 音箱监控工具启动/停止

环境要求

  • 运行环境:mac 或 linux
  • 软件环境: node adb
  • 网络环境: 公司内网

npm库 使用说明

###  安装
- $ npm install cricetulu -g

### 配置(只需要一次)
- $ cricetulu config --ftpAccount xxx --ftpPassword xxx
- $ cricetulu config --wifiAccount xxx --wifiPassword xxx
- $ cricetulu config --show

### 日常使用(pc 任意地方)
- cricetulu

git库 使用说明

### 安装
- $ git clone [email protected]:Rokid-QA/marmot.git
- $ cd marmot

### 必要配置
- $ ./cricetulu config --ftpAccount xxx --ftpPassword xxx
- $ ./cricetulu config --wifiAccount xxx --wifiPassword xxx
- $ ./cricetulu config --show

### 依赖模块安装
- $ npm install

### 工程目录下执行
- $ ./cricetulu

### 更新监控工具
- npm run flush (工具自动会执行此命令, 写出来只是说明一下)

### 忽略指定设备(通用)
- config/config.json deviceIDList 字段中, 填写指定的设备

作者

  • chengwen.fan

其他

config/config.json 字段介绍

  • releaseEnv true代表线上环境, false代表测试环境
  • recovery 字段中,可以添加新类型的设备

和服务端交互协议

  • http://note.youdao.com/noteshare?id=6b367f1ac60f9056ea5370d804d91c15

代码思路图

设备在dispatch中上线逻辑

  1. 物理设备上线
  2. 不是被被忽略的设备
  3. sleep 1
  4. 获取产品类型成功
  5. sleep 0.5
  6. dispatch中上线

特定模块描述

  • deviceTrack.js 设备连接延迟500ms
  • cloudLog.js 日志连接延迟5000ms

约定

  • 消息发送都传递字符串(由于 redis 使用字符串传递, 统一会方便些)

调试

  • lib/log-origin.js 中可调整日志输出等级
  • debug 为单个模块信息
  • info 为 dispatch 调度信息
  • warn 为 与云端交互信息

monitor 存活周期

  • 刷机开始 结束监控(本地执行)
  • 刷机成功 拉起监控(云端执行)

已知问题

  • 刷机失败后重新插上, 状态变normal
  • 电脑关机,云端状态不会更新

添加新设备需要注意的问题

  • 监控工具地址修改
  • ps 类似的命令确认是否可以使用