airX api指令

# 登录并获取token
curl -d "password=xxxx&account=13488888888&" 'http://luxcar.com.cn/airx/airx_iot_account/web/login'

# 判断是否登录
curl -d "token=airxtkf1b2669d341449b1842&user_id=12345&" 'http://luxcar.com.cn/airx/airx_iot_account/web/isLogin'
 
# 获取天气
curl -d "userId=12345&token=airxtkf1b2669d341449b1842&" 'http://luxcar.com.cn/airx/airx_iot_reportup/web/address/weatherfollow'

# 查询整体设备状态
curl -d "userId=12345&token=airxtkf1b2669d341449b1842&" 'http://luxcar.com.cn/airx/airx_iot_reportup/web/equipment/listequipment'

# 查询指定设备数据
curl -d "userId=20401&token=airxtkf1b2669d341449b1842&device_id=00000&" 'http://luxcar.com.cn/airx/airx_iot_reportup/web/equipment/loadDeviceData'
#device_id为查询整体设备的时候会返回的

# 查询指定设备近期PM25状况
curl -d "userId=20401&token=airxtkf1b2669d341449b1842&device_id=00000&" 'http://luxcar.com.cn/airx/airx_iot_reportup/web/equipment/devicePm25'

# 控制指定设备开关
curl -d "device_id=00000&standby=0&token=airxtkf1b2669d341449b1842&userId=20401&" 'http://luxcar.com.cn/airx/airx_iot_reportup/web/equipment/DeviceOnOrDown'
 #standby=0或者1,0为开,1为关

# 控制指定设备风量
curl -d "speed=5&device_id=00000&mode=3&token=airxtkf1b2669d341449b1842&userId=20401&" 'http://luxcar.com.cn/airx/airx_iot_reportup/web/equipment/DeviceControl'
#speed取值1-5

来源 https://bbs.hassbian.com/thread-2113-1-1.html

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 转自:http://www.jianshu.com/p/e9f5b2eda15b0, 提供一点CMU-SV MS-...
    _CelesteHuang_阅读 7,353评论 0 4
  • 我正走在一条小路上 被遗忘的树木 数年如一日 仰望着天空,自由的飞鸟 我不知道如何走过葱郁的树荫道 抵达太阳慵懒的...
    鹿宥宥阅读 2,948评论 2 8
  • 相信听说唱的你经常会听到篮球是嘻哈的第五元素这种说法,不管beatbox它服不服,篮球跟嘻哈文化之间确实是有点东西...
    说唱HIPHOP阅读 5,612评论 0 0
  • 这个世界上,我只有一个父亲,一个母亲,一个哥哥,唯一的,不可替代的,是我最珍贵的礼物。我要尽自己最大的努力,去守护...
    外出的猫阅读 952评论 0 1

友情链接更多精彩内容