『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 7144|回复: 7

[流程系列] “爱车生活”接入HA

[复制链接]

10

主题

151

帖子

1572

积分

金牌会员

Rank: 6Rank: 6

积分
1572
金钱
1416
HASS币
40
发表于 2019-5-16 15:20:59 | 显示全部楼层 |阅读模式
2、3年前,众筹上买了一个车辆定位
Screenshot_20190516_150628.jpg
IMG_20190516_151312.jpg
[{"id":"54764dbb.37fee4","type":"tab","label":"爱车生活","disabled":false,"info":""},{"id":"7731fa90.10f614","type":"inject","z":"54764dbb.37fee4","name":"","topic":"","payload":"","payloadType":"date","repeat":"60","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":280,"wires":[["ac8607be.ec8c68"]]},{"id":"ac8607be.ec8c68","type":"function","z":"54764dbb.37fee4","name":"准备参数","func":"var re = {};\nmsg={};\nre = { 'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8',\n            'Connection':'Keep-Alive',\n            'password':'***',\n            'loginType':'1',\n            'loginName':'***',\n            'mapType':'AMap',\n            'language':'zh_CN_%23Hans',\n            'deviceId':'***',\n            'key':'***'};\nmsg.payload = re;\nreturn msg;","outputs":1,"noerr":0,"x":320,"y":280,"wires":[["5761db14.436fa4"]]},{"id":"2532c351.dfac2c","type":"debug","z":"54764dbb.37fee4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":690,"y":220,"wires":[]},{"id":"5761db14.436fa4","type":"www-request","z":"54764dbb.37fee4","name":"","method":"POST","ret":"obj","url":"http://app.gps18.com:5588/openapiv5.asmx/GetLocation","follow-redirects":true,"tls":"","x":490,"y":280,"wires":[["2532c351.dfac2c","c3422799.2a0d58"]]},{"id":"c3422799.2a0d58","type":"mqtt out","z":"54764dbb.37fee4","name":"","topic":"position_car","qos":"0","retain":"false","broker":"1228da70.bb6d36","x":690,"y":340,"wires":[]},{"id":"1228da70.bb6d36","type":"mqtt-broker","z":"","name":"Baidu Cloud","broker":"***","port":"1883","tls":"","clientid":"nodered","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"position_car","birthQos":"0","birthRetain":"true","birthPayload":"connected","closeTopic":"position_car","closeQos":"0","closeRetain":"true","closePayload":"closing","willTopic":"position_car","willQos":"0","willRetain":"true","willPayload":"unexpected disconnection"}]

评分

参与人数 1金钱 +20 收起 理由
+ 20 大神666!

查看全部评分

回复

使用道具 举报

10

主题

680

帖子

5668

积分

论坛元老

Rank: 8Rank: 8

积分
5668
金钱
4983
HASS币
50
发表于 2019-5-16 15:40:50 | 显示全部楼层
不明觉厉!
回复

使用道具 举报

73

主题

1165

帖子

6651

积分

论坛元老

Rank: 8Rank: 8

积分
6651
金钱
5481
HASS币
30
发表于 2019-5-16 16:10:32 | 显示全部楼层
www-request,这是什么节点?
回复

使用道具 举报

10

主题

151

帖子

1572

积分

金牌会员

Rank: 6Rank: 6

积分
1572
金钱
1416
HASS币
40
 楼主| 发表于 2019-5-16 16:50:51 | 显示全部楼层
xuyang 发表于 2019-5-16 16:10
www-request,这是什么节点?

node-red-contrib-http-request
A Node-RED node for performing http(s) requests that use Request library with optimized proxy support.
需要安装一下。
回复

使用道具 举报

8

主题

2073

帖子

6057

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6057
金钱
3984
HASS币
145

灌水之王

发表于 2019-5-17 08:30:36 | 显示全部楼层
厉害,
求问哪有儿童电话手表可以接HA的,
(苹果那个不要)
回复

使用道具 举报

24

主题

608

帖子

3490

积分

元老级技术达人

积分
3490
金钱
2877
HASS币
0

卓越贡献

发表于 2019-5-17 09:05:47 | 显示全部楼层

厉害,
求问哪有儿童电话手表可以接HA的,
(苹果那个不要)
回复

使用道具 举报

175

主题

2967

帖子

7606

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7606
金钱
4614
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2019-5-17 13:30:47 | 显示全部楼层
这是通过http  post 和get的吧   物联网sim卡的
回复

使用道具 举报

10

主题

151

帖子

1572

积分

金牌会员

Rank: 6Rank: 6

积分
1572
金钱
1416
HASS币
40
 楼主| 发表于 2019-5-17 15:40:36 | 显示全部楼层
jyz_0501 发表于 2019-5-17 13:30
这是通过http  post 和get的吧   物联网sim卡的

没错,他这个平台比较简单,带着几个必要的参数post一下就能获取到位置。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-4 16:19 , Processed in 0.061175 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表