dongshi4773 2017-01-16 16:35
浏览 72
已采纳

设置家庭自动化的远程控制面板页面[关闭]

I have a long term project, for learning purposes, which is creating a virtual assistent, such as Siri or Google Now, but to control my home automation. I'll have an arduino controling some hardware (such lamps, sensors, etc.), and the assistent I'll write in Python. Until this step, I have the knowledge to do this. But thinking forward, when this is functional, would be great if I could add the feature to control remotely by mobile app and/or webpage, and not just by my desktop.

The problem is I don't know which knowledge I need have to do this.

I want to have a web page, or a mobile app that show me this webpage, where I can program buttons to turn on/off stuff, check the sensors data, etc. I should like to use PHP, cause as I said, this is for learning purposes. I supose that I'll need set a server in my home, and then access him through this app/page. So, which programming skills I need to accomplish this (considering that arduino runs in C and the assistent will be scripted in Python)?

Thanks.

  • 写回答

1条回答 默认 最新

  • doujiao3074 2017-01-16 17:34
    关注

    The web site could be created in any number of languages, PHP being one good choice. The server could be local, or if you want to be able to interface globally, on a hosted server.

    How your Arduino connects to the server is the most telling part. If you use a WiFi or Ethernet shield, you can have it poll the server to get information (ie. turn something on/off) and to post info (ie. temp/humidity). In you want the server to be the controlling factor, have it use curl to poll a web server on the Arduino. The Arduino would respond with data, look for parameters for control, etc.

    I've written several projects that use the Arduino and Witty ESP8266 micro-controllers and interface with a web server. It's not that hard if you know everything you need to know about creating a web site, writing Arduino code, and HTTP communications. If you don't, there's a steep learning curve.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 ansys fluent计算闪退
  • ¥15 有关wireshark抓包的问题
  • ¥15 需要写计算过程,不要写代码,求解答,数据都在图上
  • ¥15 向数据表用newid方式插入GUID问题
  • ¥15 multisim电路设计
  • ¥20 用keil,写代码解决两个问题,用库函数
  • ¥50 ID中开关量采样信号通道、以及程序流程的设计
  • ¥15 U-Mamba/nnunetv2固定随机数种子
  • ¥15 vba使用jmail发送邮件正文里面怎么加图片
  • ¥15 vb6.0如何向数据库中添加自动生成的字段数据。