Graduation --20200228-- network build domoticz system frp network penetration achieved within days of the cat wizard control network devices

About three days recording the results.

Spent three days time I built a raspberry pie in the above domoticz smart home system and then use frp to achieve the 8080 local network to the public Internet address penetrate the surface of Ali's personal cloud server, and ultimately help domoticz Lynx elves and open interfaces to achieve Lynx elf control the smart devices

The first step is to install domoticz.

I was first in my server to deploy domoticz above, and then found domoticz server sends instructions to individual domoticz IP + system is the form of instructions, that if domoticz server on the public network side, I need to give each device do penetrate the internal network ( intranet penetration useful ), then this obviously is more strenuous. I just have a hands idle raspberry pie 3B + then I will consider it as a central server using my smart home, but this way and there will be another problem, we have no way to provide a server to domoticz stable IP address. So I need extranet access to my domoticz
domoticz the program only needs to be installed raspberry pie just fine, of course, if you have other devices can also select the corresponding platform

This is the total download link here https://www.domoticz.cn/forum/viewtopic.php?f=4&t=2

 

Raspberry pie debian system can be used to download instructions

  sudo curl -L install.domoticz.cn | bash

domoticz installation method I will not detail the other chiefs of your reference installation method

After installing domoticz we will be able to visit our website through the network of domoticz 

192.168.xx above the computer directly into your intranet: 8080 will be able to see the small details raspberry pie IP address, etc. I do not go into details.

Finally, remember to add boot entry to look at, let's domoticz start automatically (frp is the best boot own connection)

 

You should see a similar interface, of course, a big difference with the picture style publicity, mainly because I'm not ready other hardware

This is the official picture is what I like the direction. . . .

The second part is to make these devices that are linked with the external, to achieve Lynx elves, Komori voice control, etc. To achieve these we need to give our http server port on the public network side (we can also face the public Internet access in domoticz harder control interface, so the login password must be set)

Closer to home frp installation program. frp open source code is on github above, we can go to download the latest installer. (CSDN can also be downloaded from the above, if you do not, then the lack of integration)   https://github.com/fatedier/frp  

frp installation can refer to these bigwigs of the blog, I also refer to the experiment when the bigwigs of the blog implementation

https://blog.csdn.net/e_wsq/article/details/79405512

https://www.chenghuajie.cn/440.html

During the installation of frp I met a couple of pit but also to share with you.

The first pit is what you want to open the port to go to the server console to open the corresponding port, this part must be done, the console is in the web interface of your vps provider. I was Ali cloud control interface here is the firewall

My installation is required to map port 8080 to go above my server, and then my own domain name yet, so the general setting method is not applicable, what I need is not the domain of installation methods, I finally find hard to find a.  https://www.cnblogs.com/sanduzxcvbnm/p/8509150.html

 

图片来自 大佬的博客

这是树莓派侧的设置  我貌似写重复了remote_port  应该是以最后一个为准

这是我的 服务器侧的配置,其中涉及到了一个frp的 监控 我们可以去登录http://x.x.x.x:dashboard_port/

x.x.x.x代表你的服务器地址,配置好了之后我们可以看到监控信息,当然这个界面是需要登录的   dashboard_user 和 dashboard_pwd 就是你的用户名和密码,

这是登录密码的请求界面,  很简陋就俩对话框

 

这是登录之后显示的监控信息。

内网穿透还可以在外网去 ssh 登录 树莓派,  这是一般的基本的穿透的功能也是我最早实现的功能。

接下来就是 天猫精灵的对接了  ,你需要先去注册一个domoticz的账号 (已有的就跳过)

注册地址https://ali.domoticz.cn/signup

这就是我忙活了3天的成果,下一步需要给 这几个进程都加上开机自动启动和 supervisor的 监控工具,防止意外的卡死。

然后还有很多的程序接口等着我呢  有问题的话留言就留一下吧

 

 

 

 

 

 

发布了35 篇原创文章 · 获赞 30 · 访问量 2万+

Guess you like

Origin blog.csdn.net/weixin_41534481/article/details/104562120