本文介绍 Siren Iot服务器建造 三:Jarvis重构

This article was original written by Jin Tian, welcome re-post, but please keep this copyright info, thanks, any question could be asked via wechat: jintianiloveu

Jarvis重构

之前的Jarvis都是依赖于微信的基础上构建,但是这样明显并不能承担一个牛逼大脑的角色,因此下一步的工作就在于Jarvis的重构了。把它核心的推理部分玻璃出来,把消息处理这部分换上自己搭建的MQTT服务消息订阅。

The new Jarvis

Until now, Jarvis almost build finished. Let’s see what we go now:

  • We already have a sever provide pure MQTT service, live it to run, don’t need to develop on top of it;
  • the server can transform messages between devices, which means, if Jarvis send me a message, I can receive it, the other device broadcast messages to Jarvis, he will catch all the messages. The offline message not support yet;
  • Jarvis has been reconstruct finish, I can access to Jarvis via iPhone, Android, Python Script, Go executable program and so on, he can solve all the message for me now, and I can communicate with him, most things can be done under the help of Jarvis;

This is all we got. Seems everything has been done perfectly, but those things has to be done:

  • Support for offline messages to ensure message not lost;
  • More device support, such as rasp-berry PI and Arduino;

Let all device on Line

Now, our emphasis work should be, let more device on line. I am going to doing the first thing is a hello world control: Control a lap through remote!!!. Just think it, I can fire a lap to on or off from any where using Jarvis, not just do that in Android app or any fixed interface set apps!!!!!

1
2
# by telling Jarivs help me turn the light in bedroom
ok, the light in bedroom were lighted!!!