空间的电表联网项目 Project duo

74 views
Skip to first unread message

Atommann

unread,
Apr 23, 2017, 5:40:12 AM4/23/17
to Shenzhen DIY Lab
Hi,

duo 是“度”(duó),计算的意思,“度”(dù)也是电能的单位。

我们一起来做完这个项目,MCU 用 ESP8266,加一颗 485 芯片接到电表上就能读数据,直接用 WiFi 传数据。
我完成电子硬件部分,也帮助软件调试。
服务器端也有一些工作要做。最好能在 szdiy.org 主页或某个页面上显示空间的用电信息。
我们还要有个写项目文档的地方。

SZDIY 项目 github 地址
https://github.com/szdiy/duo
* datasheet 目录里有 DL645-2007多功能电能表通信协议.pdf - 描述了命令接口。
* datasheet 目录里有电表 DDS216 的说明书。

github 上有一些已有的 DL645 代码,如
https://github.com/ruglcc/dlt645_2007
* github 上也有一些 DLT 645 python 代码。

--
Best regards,
Atommann

Nala Ginrut

unread,
Apr 23, 2017, 6:38:17 AM4/23/17
to sz...@googlegroups.com
之前这个项目难以推进,是因为相关的资料和参考代码都较少(其实就是没有),过了几年了应该有一些可以参考的了
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to
> szdiy+un...@googlegroups.com
> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
> 要查看更多选项,请访问 https://groups.google.com/d/optout

Terry Ouyang

unread,
Apr 23, 2017, 6:56:13 AM4/23/17
to sz...@googlegroups.com
服务端需要先定一下API,看有什么样的数据需要上传,上传的频率如何,以及要呈现什么数据。禅师要占坑吗?

发自我的 iPhone

1433768997

unread,
Apr 23, 2017, 6:59:40 AM4/23/17
to szdiy
Atommann,
我帮你,我先看看协议部分:)

---原始邮件---
发件人: "Terry Ouyang"<terry....@qq.com>
发送时间: 2017年4月23日 18:57:17
收件人: "szdiy"<sz...@googlegroups.com>;
主题: Re: [szdiy] 空间的电表联网项目 Project duo

danfei

unread,
Apr 23, 2017, 7:13:58 AM4/23/17
to szdiy
我把上面拿铲子的几个人用本本记下来了

Atommann,
我帮你,我先看看协议部分:)


>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

> 要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Zhang Zhengjun

unread,
Apr 23, 2017, 7:51:20 AM4/23/17
to sz...@googlegroups.com
挖掘机学校哪家强,中国山东找蓝翔

我把上面拿铲子的几个人用本本记下来了

Atommann,
我帮你,我先看看协议部分:)


>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

> 要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout








--


--


You received this message because you are subscribed to the Google


Groups "Shenzhen DIY community" group.


To post to this group, send email to sz...@googlegroups.com


To unsubscribe from this group, send email to





For more options, visit this group at


http://www.szdiy.org


http://groups.google.com/group/szdiy?hl=zh-CN


---


您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。


要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com


要查看更多选项,请访问https://groups.google.com/d/optout








--

--


You received this message because you are subscribed to the Google


Groups "Shenzhen DIY community" group.


To post to this group, send email to sz...@googlegroups.com


To unsubscribe from this group, send email to





For more options, visit this group at


http://www.szdiy.org


http://groups.google.com/group/szdiy?hl=zh-CN

---

您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

要查看更多选项,请访问https://groups.google.com/d/optout

samwus51

unread,
Apr 23, 2017, 7:58:25 AM4/23/17
to Zhang Zhengjun, szdiy
前4-5年我在jabil捷普做hp打印机生产项目时,隔壁产线就是美国电表产线。所有核心测试和维修都是��保密的。说了等于白说了��

---原始邮件---
发件人: "Zhang Zhengjun "<siyanm...@gmail.com>
发送时间: 2017年4月23日 19:51:07
收件人: "szdiy"<sz...@googlegroups.com>;
主题: Re: 回复:[szdiy] 空间的电表联网项目 Project duo

挖掘机学校哪家强,中国山东找蓝翔

On Sun, Apr 23, 2017 at 19:13 danfei <df4v...@gmail.com> wrote:
我把上面拿铲子的几个人用本本记下来了

Atommann,
我帮你,我先看看协议部分:)


>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

> 要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout








--


--


You received this message because you are subscribed to the Google


Groups "Shenzhen DIY community" group.


To post to this group, send email to sz...@googlegroups.com


To unsubscribe from this group, send email to





For more options, visit this group at


http://www.szdiy.org


http://groups.google.com/group/szdiy?hl=zh-CN


---


您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。


要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com


要查看更多选项,请访问https://groups.google.com/d/optout








--

--


You received this message because you are subscribed to the Google


Groups "Shenzhen DIY community" group.


To post to this group, send email to sz...@googlegroups.com


To unsubscribe from this group, send email to





For more options, visit this group at


http://www.szdiy.org


http://groups.google.com/group/szdiy?hl=zh-CN

---

您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to
szdiy+un...@googlegroups.com

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Nala Ginrut

unread,
Apr 23, 2017, 8:34:51 AM4/23/17
to sz...@googlegroups.com, Zhang Zhengjun
@terry 我要占服务端的坑

Tony Wang

unread,
Apr 23, 2017, 9:09:33 AM4/23/17
to sz...@googlegroups.com, Zhang Zhengjun
我要占服务器的坑,用Django吧

On Sun, Apr 23, 2017 at 8:34 PM Nala Ginrut <nalag...@gmail.com> wrote:
@terry 我要占服务端的坑

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to
szdiy+un...@googlegroups.com
For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

1433768997

unread,
Apr 23, 2017, 9:24:48 AM4/23/17
to szdiy
卫星都打过了,电表也没啥:)

---原始邮件---
发件人: "danfei"<df4v...@gmail.com>
发送时间: 2017年4月23日 19:15:04
收件人: "szdiy"<sz...@googlegroups.com>;
主题: Re: 回复:[szdiy] 空间的电表联网项目 Project duo

我把上面拿铲子的几个人用本本记下来了

Atommann,
我帮你,我先看看协议部分:)

>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
> 要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Atommann

unread,
Apr 23, 2017, 10:19:39 AM4/23/17
to Shenzhen DIY Lab
可以将这个项目看成是一个测试项目,测试我们能否通过合作一起完成一个完整的项目。

刚才加了 README.md,正如里面所说,一开始我们可以只要求读取简单的 kWh 数据,顺着项目的推进,可以做更多的功能。
要读数据其实不难:用一个 USB 转 RS-485 的线接上去,电脑一边开一个串口软件,发一些命令过去,电表就会返回数据,然后解析。
我们把它做到 ESP8266 里。

最好能做 Firmware Over-The-Air (FOTA) 功能,这样大家坐在家里,有空就能远程调试代码,无需去空间。

--
Best regards,
Atommann

Terry Ouyang

unread,
Apr 23, 2017, 10:24:16 AM4/23/17
to sz...@googlegroups.com
谁快谁先做 :) 只要确定了API就可以开工,Django我也可以帮忙维护,阿丰估计也可以学着做

发自我的 iPhone

Tony Wang

unread,
Apr 23, 2017, 11:52:57 AM4/23/17
to sz...@googlegroups.com
竞争要不要这么激烈~~ 先把需求确定下来把,技术选型都好说啦~~ @Terry 我们一起用Django做吧

Nala Ginrut

unread,
Apr 23, 2017, 12:32:21 PM4/23/17
to sz...@googlegroups.com
是以做出来为准算快,还是以开始做算快

2017年4月23日 23:52,"Tony Wang" <plantp...@gmail.com>写道:
竞争要不要这么激烈~~ 先把需求确定下来把,技术选型都好说啦~~ @Terry 我们一起用Django做吧

On Sun, Apr 23, 2017 at 10:24 PM Terry Ouyang <terry....@qq.com> wrote:
谁快谁先做 :) 只要确定了API就可以开工,Django我也可以帮忙维护,阿丰估计也可以学着做

发自我的 iPhone

在 2017年4月23日,下午9:09,Tony Wang <plantp...@gmail.com> 写道:

我要占服务器的坑,用Django吧

On Sun, Apr 23, 2017 at 8:34 PM Nala Ginrut <nalag...@gmail.com> wrote:
@terry 我要占服务端的坑

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Nala Ginrut

unread,
Apr 23, 2017, 12:35:40 PM4/23/17
to sz...@googlegroups.com
@atommann就用esp8266,我今天刚搞定其开源可多重引导的bootloader,叫rboot,这东西目前资料少,不过现在可以用它引导了,稍做修改就能从网上更新固件了

Nala Ginrut

unread,
Apr 23, 2017, 12:48:24 PM4/23/17
to sz...@googlegroups.com
目前我们用的AI-thinker的esp8266的model有4MB flash, 足够用了。
esp8266要求每个可引导rom必须以1M为单位,按4096对齐,也就是说我们有4个rom可用,留出一个rom来作为在线更新用,更新完跳转过去就能热启动新的rom了,反正就跟老的那个rom来个双buffer的flip-flop,两个rom的空间就足够做在线更新了。当然还需要做一些存盘动作。
还有两个rom的空间用来做数据存储。
以json发到服务器(esp有内置的库),存到数据库,然后再做数据可视化,有人愿意做web前端的可视化吗?




2017-04-24 0:35 GMT+08:00 Nala Ginrut <nalag...@gmail.com>:
> @atommann就用esp8266,我今天刚搞定其开源可多重引导的bootloader,叫rboot,这东西目前资料少,不过现在可以用它引导了,稍做修改就能从网上更新固件了
>
> 2017年4月24日 00:32,"Nala Ginrut" <nalag...@gmail.com>写道:
>>
>> 是以做出来为准算快,还是以开始做算快
>>
>> 2017年4月23日 23:52,"Tony Wang" <plantp...@gmail.com>写道:
>>>
>>> 竞争要不要这么激烈~~ 先把需求确定下来把,技术选型都好说啦~~ @Terry 我们一起用Django做吧
>>>
>>> On Sun, Apr 23, 2017 at 10:24 PM Terry Ouyang <terry....@qq.com>
>>> wrote:
>>>>
>>>> 谁快谁先做 :) 只要确定了API就可以开工,Django我也可以帮忙维护,阿丰估计也可以学着做
>>>>
>>>> 发自我的 iPhone
>>>>
>>>> 在 2017年4月23日,下午9:09,Tony Wang <plantp...@gmail.com> 写道:
>>>>
>>>> 我要占服务器的坑,用Django吧
>>>>
>>>> On Sun, Apr 23, 2017 at 8:34 PM Nala Ginrut <nalag...@gmail.com>
>>>> wrote:
>>>>>
>>>>> @terry 我要占服务端的坑
>>>>>
>>>>> --
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Shenzhen DIY community" group.
>>>>> To post to this group, send email to sz...@googlegroups.com
>>>>> To unsubscribe from this group, send email to
>>>>> szdiy+un...@googlegroups.com
>>>>> For more options, visit this group at
>>>>> http://www.szdiy.org
>>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>>> ---
>>>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
>>>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>>>
>>>> --
>>>>
>>>> Tony Wang
>>>>
>>>> Warm Regards
>>>>
>>>> --
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Shenzhen DIY community" group.
>>>> To post to this group, send email to sz...@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> szdiy+un...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://www.szdiy.org
>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>> ---
>>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
>>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>>>
>>>> --
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Shenzhen DIY community" group.
>>>> To post to this group, send email to sz...@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> szdiy+un...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://www.szdiy.org
>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>> ---
>>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
>>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>> --
>>>
>>> Tony Wang
>>>
>>> Warm Regards
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> szdiy+un...@googlegroups.com
>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
>>> 要查看更多选项,请访问https://groups.google.com/d/optout

Tony Wang

unread,
Apr 23, 2017, 1:14:35 PM4/23/17
to sz...@googlegroups.com
如果显示图表,有现成的echart、chart.js之类的前端框架可以用,多是responsive。

先把需求一步步明确:

1.json具体哪些数据?
2.数据库需要存储哪些数据,一张表是否满足
3.前端需要如何显示,柱状图,线图or饼图,是否需要交互

当然还有哪些需要补充的欢迎大家献计献策

您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

Nala Ginrut

unread,
Apr 23, 2017, 1:21:47 PM4/23/17
to sz...@googlegroups.com
作为一个for fun的项目,图表能丰富些最好,虽然不一定有什么用,不过许多人可能跟我一样,看到工具、数据、图标就会兴奋。
json的数据类型要看电表的规范,看能提供哪些信息,这个由于当时看的是中文版(毕竟是国标),许多翻译过来的名词我还真对应不上

Terry Ouyang

unread,
Apr 23, 2017, 8:39:46 PM4/23/17
to sz...@googlegroups.com
当然是以做出来为准,喊两句谁不会,关键是不能拖别人进度呀 😜

发自我的 iPhone

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Terry Ouyang

unread,
Apr 23, 2017, 8:48:10 PM4/23/17
to sz...@googlegroups.com
做图标应以传达意义为标准,不要看见图标就兴奋,而且图表还需以能上传什么样的数据为准。

简单想想有两个图可以做,一个是实时监控的曲线图,一个是各时段的用电量分析

这个是在设计的时候服务端也要考虑的。

发自我的 iPhone

Atommann

unread,
Apr 23, 2017, 9:07:08 PM4/23/17
to Shenzhen DIY Lab
麻烦哪位在 http://wiki.szdiy.org/ 上加一个项目页面(我没有权限),好写文档记录信息。

--
Best regards,
Atommann

Terry Ouyang

unread,
Apr 23, 2017, 9:26:31 PM4/23/17
to sz...@googlegroups.com
建议先用GitHub的wiki和issue来管理文档和讨论吧。现在官网那个wiki早晚要被替换掉的。


发自我的 iPhone

Nala Ginrut

unread,
Apr 23, 2017, 10:24:26 PM4/23/17
to sz...@googlegroups.com
wiki那是另一个新项目,先用github issue吧,以后wiki做好了可以导过去的

2017年4月24日 09:26,"Terry Ouyang" <terry....@qq.com>写道:
建议先用GitHub的wiki和issue来管理文档和讨论吧。现在官网那个wiki早晚要被替换掉的。


发自我的 iPhone

> 在 2017年4月24日,上午9:07,Atommann <atom...@gmail.com> 写道:
>
> 麻烦哪位在 http://wiki.szdiy.org/ 上加一个项目页面(我没有权限),好写文档记录信息。
>
> --
> Best regards,
> Atommann
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
> 要查看更多选项,请访问 https://groups.google.com/d/optout



--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。

Terry Ouyang

unread,
Apr 23, 2017, 10:53:53 PM4/23/17
to SZDIY

您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

Rafael Lee

unread,
Apr 23, 2017, 11:17:37 PM4/23/17
to Shenzhen DIY community
听原来的同事说,现在的电子电表会把无功功率也记入总功率一并收费。
另外电表上的还偶尔会在功率上乘一个大于 1 的权重增加收费。
如果这个项目能增加判断电表是否正确计算功率的功能的话就更好玩了。

在 2017年4月24日星期一 UTC+8上午10:24:26,NalaGinrut写道:
wiki那是另一个新项目,先用github issue吧,以后wiki做好了可以导过去的

2017年4月24日 09:26,"Terry Ouyang" <terry....@qq.com>写道:
建议先用GitHub的wiki和issue来管理文档和讨论吧。现在官网那个wiki早晚要被替换掉的。


发自我的 iPhone

> 在 2017年4月24日,上午9:07,Atommann <atom...@gmail.com> 写道:
>
> 麻烦哪位在 http://wiki.szdiy.org/ 上加一个项目页面(我没有权限),好写文档记录信息。
>
> --
> Best regards,
> Atommann
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
> 要查看更多选项,请访问 https://groups.google.com/d/optout



--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

Atommann

unread,
Apr 24, 2017, 10:08:52 AM4/24/17
to Shenzhen DIY Lab
首先,我想测试一下电表是否能正常通讯,用了一个 USB to RS-485 的转换器,做了一些实验,过程记录在这里:
https://sites.google.com/site/atommann2/szdiy-projects/project-duo

可以正常通讯,我们这个项目的前景很乐观!

我把 USB-RS485 转换器放在电表旁边的桌面上,有兴趣的可以直接用 PC 和电表通讯。
利用这个转换器,用 Raspberry Pi 或别的 ARM 单板计算机都可以读数据。因此,这是项目的一个可选的硬件方案。
另一个方案是 raspberry pi + MAX481.

但,我们还是用 ESP8266 吧 :)

另外,那个 DL/T645-2007 规约写得真的是晦涩难懂!
PDF 也做得差,不知道是用什么软件排的版,目录不好,导航没有,超链接没有。我估计是用的 word,但 word
也可以做出漂亮的文档。这种文档其实应该用 Adobe FrameMaker 排版。好的文档,可以节省编程人员大量的时间。


--
Best regards,
Atommann

Terry Ouyang

unread,
Apr 26, 2017, 2:10:31 AM4/26/17
to SZDIY
https://github.com/szdiy/duo/issues/2

服务端架构(Django版)
@plantpark 想动手的话就看看



--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---

Tony Wang

unread,
Apr 26, 2017, 2:49:50 AM4/26/17
to SZDIY
收到,数据量好像很小,用得到memcached么?
On Wed, Apr 26, 2017 at 14:10 Terry Ouyang <terry....@gmail.com> wrote:
https://github.com/szdiy/duo/issues/2

服务端架构(Django版)
@plantpark 想动手的话就看看
在 2017年4月24日 下午10:08,Atommann <atom...@gmail.com>写道:
首先,我想测试一下电表是否能正常通讯,用了一个 USB to RS-485 的转换器,做了一些实验,过程记录在这里:
https://sites.google.com/site/atommann2/szdiy-projects/project-duo

可以正常通讯,我们这个项目的前景很乐观!

我把 USB-RS485 转换器放在电表旁边的桌面上,有兴趣的可以直接用 PC 和电表通讯。
利用这个转换器,用 Raspberry Pi 或别的 ARM 单板计算机都可以读数据。因此,这是项目的一个可选的硬件方案。
另一个方案是 raspberry pi + MAX481.

但,我们还是用 ESP8266 吧 :)

另外,那个 DL/T645-2007 规约写得真的是晦涩难懂!
PDF 也做得差,不知道是用什么软件排的版,目录不好,导航没有,超链接没有。我估计是用的 word,但 word
也可以做出漂亮的文档。这种文档其实应该用 Adobe FrameMaker 排版。好的文档,可以节省编程人员大量的时间。


--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Terry Ouyang

unread,
Apr 26, 2017, 3:00:46 AM4/26/17
to SZDIY
只是为了方便,读写分离嘛 :) 

写的写到sqlite里,读的读memcached。反正意思就是读个内存的东西,省得写磁盘。

收到,数据量好像很小,用得到memcached么?

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Tony Wang

unread,
Apr 27, 2017, 2:41:28 AM4/27/17
to SZDIY
python 2.7版本应该木有问题吧?这个周末先做一个版本,@Terry 帮忙Review吧。前段时间给自己的一个Django做ssl证书,一直没能成功,服务器端的证书配置@Terry 搞定可好?

收到,数据量好像很小,用得到memcached么?

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Terry Ouyang

unread,
Apr 27, 2017, 3:30:59 AM4/27/17
to SZDIY
python版本能习惯3就最好用3呗(写一般代码时,貌似没太大区别)

不过自签的ssl证书浏览器不认,还是会提示风险。据说阿里云现在有免费签发的个人证书业务,不知道还有没有其他的免费签可以用。

服务端代码可以用这个分支:https://github.com/szdiy/duo/tree/server

后续的讨论可以用github的issue来发。期待你的提交哦 ^_^


收到,数据量好像很小,用得到memcached么?

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

MuSheng Chen

unread,
Apr 27, 2017, 3:50:49 AM4/27/17
to sz...@googlegroups.com

Terry Ouyang

unread,
Apr 27, 2017, 4:04:35 AM4/27/17
to SZDIY
PS,开发阶段不需要用https,部署正式环境才需要。

Nala Ginrut

unread,
Apr 27, 2017, 6:20:01 AM4/27/17
to sz...@googlegroups.com
当然是letsencrypt

Atommann

unread,
May 4, 2017, 12:10:20 PM5/4/17
to Shenzhen DIY Lab
老梁决定加入项目,他负责硬件设计。这样,我负责固件部分。

@老梁,如果你能用 KiCAD 请尽量用 KiCAD。退其次也要用 Eagle.

BTW, 今天我买了几颗 SP3485 RS-485 Transceiver 芯片,准备接到 ESP8266 上测试通讯。

--
Best regards,
Atommann

1433768997

unread,
May 4, 2017, 1:36:26 PM5/4/17
to szdiy
默认EAGLE,开源硬件我最爱arduino系列


------------------ 原始邮件 ------------------
发件人: "Atommann";<atom...@gmail.com>;
发送时间: 2017年5月5日(星期五) 凌晨0:10
收件人: "Shenzhen DIY Lab"<sz...@googlegroups.com>;
主题: Re: 回复:[szdiy] 空间的电表联网项目 Project duo

Atommann

unread,
May 4, 2017, 2:32:18 PM5/4/17
to Shenzhen DIY Lab
在 2017年5月5日 上午1:36,1433768997 <14337...@qq.com> 写道:
> 默认EAGLE,开源硬件我最爱arduino系列

OK.
我在 hardware 目录加了原理图的 PDF 方便你迁移。
你的 eagle 硬件设计放入另一个目录,如 hardware_eagle,不要放在 hardware 目录里。
https://github.com/szdiy/duo/wiki 列了目前的 BOM.

--
Best regards,
Atommann

韩世豪

unread,
May 7, 2017, 5:42:09 AM5/7/17
to szdiy
ps, ESP8266跑SSL会内存,and不稳定,建议其他方案,或者用ESP32,最近我们在对接Arduino for ESP32的Azure(已完成,文档处理中), MQTT&TSL加密跑起来很稳定。


--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。

Atommann

unread,
May 8, 2017, 12:32:00 AM5/8/17
to Shenzhen DIY Lab
在 2017年5月7日 下午5:42,韩世豪 <marti...@gmail.com> 写道:
> ps, ESP8266跑SSL会内存,and不稳定,建议其他方案,或者用ESP32,最近我们在对接Arduino for

这个项目内存倒是没有问题。

你指的不稳定具体是指的什么?
是 Espressif 的 SSL 库不稳定吗?
如果在 ESP8266 上跑 mbedTLS,那稳定性如何?


--
Best regards,
Atommann

Terry Ouyang

unread,
May 8, 2017, 2:08:50 AM5/8/17
to SZDIY
他的意思是内存泄漏?



--
Best regards,
Atommann

Atommann

unread,
May 8, 2017, 3:49:07 AM5/8/17
to Shenzhen DIY Lab
我计划先用 Raspberry Pi + Python 把电表数据读取后用 HTTP 发送。这样服务器端的 web developer 就有真实的数据可用。
晚上谁有时间来结对编程?我对 Python 已经八窍通了七窍。




--
Best regards,
Atommann

韩世豪

unread,
May 8, 2017, 7:30:44 AM5/8/17
to szdiy
不,SSL需要很大的内存计算嘛,malloc失败的后果是啥~

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to
szdiy+unsubscribe@googlegroups.com
For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

Atommann

unread,
May 8, 2017, 9:22:25 AM5/8/17
to Shenzhen DIY Lab
用 python 代码可以读出电表数据。
下一步就是从 Raspberry Pi 上把数据整理后传到服务器。

pi@raspberrypi ~/projects/duo/duo_firmware $ ./read_dlt645.py 2400 /dev/ttyUSB0
encode_dlt645 hex_str: 68aaaaaaaaaaaa681300df16
decode_dlt645 hex_str: 68950413000000689306c83746333333f316
0 950413000000
-----------------------------------
encode_dlt645 hex_str: 68950413000000681104333333335d16
decode_dlt645 hex_str: 6895041300000068910833333333466373333016
0 403013
total kWh: 4030.13
encode_dlt645 hex_str: 68950413000000681104333433335e16
decode_dlt645 hex_str: 689504130000006891083334333333333333ae16
ping kWh: 0.0
encode_dlt645 hex_str: 68950413000000681104333533335f16
decode_dlt645 hex_str: 6895041300000068910833353333a6945c33ac16
gu kWh: 2961.73
0 4030.13 0.0 2961.73



--
Best regards,
Atommann

Atommann

unread,
May 9, 2017, 12:01:05 AM5/9/17
to Shenzhen DIY Lab
昨天说结对编程没人理。今下午/晚上有人来不?
主要的任务是:
* 从电表读时间并形成 Unix time
* python TLS 加密传输
* 定时执行 python 脚本上传数据

--
Best regards,
Atommann

Terry Ouyang

unread,
May 9, 2017, 12:14:33 AM5/9/17
to SZDIY
时间也是从电表读么?
定时可以用crontab
ssl可以用requests库或者python自己的httplib,也是网上抄例子看看咯

我晚上没时间过去空间了,不过可以考虑挂在irc上



--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to
szdiy+unsubscribe@googlegroups.com
For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。

Atommann

unread,
May 9, 2017, 12:29:10 AM5/9/17
to Shenzhen DIY Lab
在 2017年5月9日 下午12:14,Terry Ouyang <terry....@gmail.com> 写道:
> 时间也是从电表读么?

是。

> 定时可以用crontab

Good.
还是一个办法是不是让 python 脚本一直不退出,在脚本内部定时发送数据?


--
Best regards,
Atommann

Tony Wang

unread,
May 9, 2017, 12:46:24 AM5/9/17
to Shenzhen DIY Lab
Supervisor (http://supervisord.org/)也可以,不知树莓派上是否能够直接pip install. crontab 是最简单的

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

Atommann

unread,
May 9, 2017, 8:25:23 AM5/9/17
to Shenzhen DIY Lab
电表这边可以向服务器发数据了,服务器正常收到请求。
2 分钟发一次。
目前发的是总用电量,时间也是从电表读的。
用这些数据,服务器可以做数据可视化了。
以后再加别的数据,如实时功率等。

@老梁,AC-DC 电源模块我放在显示器前面,一个黑色的小方盒。

--
Best regards,
Atommann

Atommann

unread,
May 9, 2017, 10:53:27 AM5/9/17
to Shenzhen DIY Lab
读电表的 python 代码并不复杂,我们还能用 Rosetta Code 的方式用自己擅长或不擅长的编程语言把它实现一遍。
* perl
* lisp
* scheme
* forth
...

我想试试 Perl.

--
Best regards,
Atommann

Nala Ginrut

unread,
May 9, 2017, 11:16:47 AM5/9/17
to sz...@googlegroups.com
我会用artanis再写一遍的

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。

韩世豪

unread,
May 9, 2017, 11:48:20 AM5/9/17
to szdiy
我来试试嵌入式Lua ~

您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

Tony Wang

unread,
Jun 26, 2017, 9:54:22 AM6/26/17
to szdiy
这坑挖得怎么样啦,好久没消息了呢~~

On Tue, May 9, 2017 at 11:48 PM 韩世豪 <marti...@gmail.com> wrote:
我来试试嵌入式Lua ~

在 2017年5月9日 下午11:16,Nala Ginrut <nalag...@gmail.com>写道:
我会用artanis再写一遍的

2017年5月9日 22:53,"Atommann" <atom...@gmail.com>写道:
读电表的 python 代码并不复杂,我们还能用 Rosetta Code 的方式用自己擅长或不擅长的编程语言把它实现一遍。
* perl
* lisp
* scheme
* forth
...

我想试试 Perl.

--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Terry Ouyang

unread,
Jun 26, 2017, 10:17:14 AM6/26/17
to sz...@googlegroups.com
API已经部署上去,并且每天稳定接收数据了。然后前端展示数据的部分还没有时间规划…最近有其他事占用了时间



发自我的 iPhone

Atommann

unread,
Jun 26, 2017, 10:23:41 AM6/26/17
to Shenzhen DIY Lab
在 2017年6月26日 下午10:16,Terry Ouyang <terry....@qq.com> 写道:
> API已经部署上去,并且每天稳定接收数据了。然后前端展示数据的部分还没有时间规划…最近有其他事占用了时间

别急,这个项目我们大家会搞定的。


--
Best regards,
Atommann

Kevin

unread,
Jul 14, 2017, 10:34:55 PM7/14/17
to sz...@googlegroups.com
前端展示数据需要人手吗?或许我能帮上一手。



--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。

Terry Ouyang

unread,
Jul 14, 2017, 11:32:13 PM7/14/17
to SZDIY
非常欢迎参与啊!

你可以fork这个分支进行开发:

不知道你的技术背景如何?我预想中要做的这个前端代码是用webpack构建打包,然后用chart.js或者echarts画图表,通过访问后台restful api获取数据并展示的。由于现在还没动工,如果你有熟悉的技术可以实现的话,也可以按你自己的思路先做一版。

目前的数据结构可以看这里的 Node 和 NodePowerArchive(Device会被去掉):

其中Node是存节点设备的信息,NodePowerArchive是存节点的每日电量记录,以json格式保存每天的每个时点的电表读数。

附件是archive_json一天的样例数据。你可以根据你的思路提出API接口的需求,我们讨论后确定api并提供服务端实现。


您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
daily_power_archive.txt

Nala Ginrut

unread,
Jul 15, 2017, 1:08:34 AM7/15/17
to sz...@googlegroups.com
欢迎

Kevin

unread,
Jul 18, 2017, 11:33:33 PM7/18/17
to sz...@googlegroups.com
Hi, 我这边已经完成技术造型、基本框架搭建,第一版界面已经出来,欢迎大家审核并提供宝贵建议。

Nala Ginrut

unread,
Jul 19, 2017, 5:20:33 AM7/19/17
to sz...@googlegroups.com
好的,有问题会说出来的,没有说就当作没有问题吧
>>>>> szdiy+un...@googlegroups.com
>>>>> For more options, visit this group at
>>>>> http://www.szdiy.org
>>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>>> ---
>>>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
>>>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>>>
>>>>
>>>> --
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Shenzhen DIY community" group.
>>>> To post to this group, send email to sz...@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> szdiy+un...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://www.szdiy.org
>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>> ---
>>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>>>
>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
>>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> szdiy+un...@googlegroups.com
>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to
>> szdiy+un...@googlegroups.com
>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to
> szdiy+un...@googlegroups.com
> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout

Terry Ouyang

unread,
Jul 19, 2017, 7:04:58 AM7/19/17
to SZDIY
我晚点会拉下来看看,最近时间太紧了。。

好的,有问题会说出来的,没有说就当作没有问题吧

>>>>> For more options, visit this group at
>>>>> http://www.szdiy.org
>>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>>> ---
>>>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>>>
>>>>
>>>> --
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Shenzhen DIY community" group.
>>>> To post to this group, send email to sz...@googlegroups.com
>>>> To unsubscribe from this group, send email to

>>>> For more options, visit this group at
>>>> http://www.szdiy.org
>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>> ---
>>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>>>
>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to

>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。

Tony Wang

unread,
Jul 19, 2017, 7:32:49 AM7/19/17
to SZDIY
问一个 vue.js 的问题,在不考虑页面SEO的情况下,前端直接 script 引用 vue.js 加后端 DRF 和需要 npm run build 、 npm run dev 有何区别呢?有何优势呢,如果考虑 SEO 的话,第一种方案似乎不太可行了,是否是这样呢?

我晚点会拉下来看看,最近时间太紧了。。

好的,有问题会说出来的,没有说就当作没有问题吧

>>>>> For more options, visit this group at
>>>>> http://www.szdiy.org
>>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>>> ---
>>>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>>>
>>>>
>>>> --
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Shenzhen DIY community" group.
>>>> To post to this group, send email to sz...@googlegroups.com
>>>> To unsubscribe from this group, send email to

>>>> For more options, visit this group at
>>>> http://www.szdiy.org
>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>> ---
>>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>>>
>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to

>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

Nala Ginrut

unread,
Jul 19, 2017, 3:56:22 PM7/19/17
to sz...@googlegroups.com
然而谁会需要针对WebAPI进行SEO呢

Tony Wang

unread,
Jul 19, 2017, 6:54:15 PM7/19/17
to sz...@googlegroups.com
前后端分离的场景,数据多是由后端提供。vue.js 貌似可以通过服务器端渲染页面,具体细节不太清楚,然后就有了上面的问题。

Tony Wang 

Warm Regards

Nala Ginrut

unread,
Jul 19, 2017, 8:14:59 PM7/19/17
to sz...@googlegroups.com
服务端渲染页面不应该用js,最好只让浏览器跑js


>>> >>>>> For more options, visit this group at
>>> >>>>> http://www.szdiy.org
>>> >>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>>>> ---
>>> >>>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>> >>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>> >>>>
>>> >>>>
>>> >>>> --
>>> >>>> --
>>> >>>> You received this message because you are subscribed to the Google
>>> >>>> Groups "Shenzhen DIY community" group.
>>> >>>> To post to this group, send email to sz...@googlegroups.com
>>> >>>> To unsubscribe from this group, send email to

>>> >>>> For more options, visit this group at
>>> >>>> http://www.szdiy.org
>>> >>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>>> ---
>>> >>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >>>>
>>> >>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >>>
>>> >>>
>>> >>> --
>>> >>> --
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups "Shenzhen DIY community" group.
>>> >>> To post to this group, send email to sz...@googlegroups.com
>>> >>> To unsubscribe from this group, send email to

>>> >>> For more options, visit this group at
>>> >>> http://www.szdiy.org
>>> >>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>> ---
>>> >>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >>
>>> >> --
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups "Shenzhen DIY community" group.
>>> >> To post to this group, send email to sz...@googlegroups.com
>>> >> To unsubscribe from this group, send email to

>>> >> For more options, visit this group at
>>> >> http://www.szdiy.org
>>> >> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >> ---
>>> >> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >
>>> >
>>> > --
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Shenzhen DIY community" group.
>>> > To post to this group, send email to sz...@googlegroups.com
>>> > To unsubscribe from this group, send email to

>>> > For more options, visit this group at
>>> > http://www.szdiy.org
>>> > http://groups.google.com/group/szdiy?hl=zh-CN
>>> > ---
>>> > 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> > 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> > 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to

>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
> --
>
> Tony Wang
>
> Warm Regards
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Terry Ouyang

unread,
Jul 19, 2017, 10:50:10 PM7/19/17
to SZDIY
npm run build/dev这些脚本其实都是你自己写的,也就是gulp或者webpack的打包脚本而已吧。

之所以跑这类脚本主要是在本机跑一个测试服务器用来做开发调试,正式发布的时候是会打包成html/js/static等静态资源的。

现在这种前端框架一般是用hash做界面的router(即url上加"#"之后再接界面路径,这样不会刷新页面),所以SEO不像以前的html页面那样做,而是通过JS调用一些事件触发器来做。(例子:百度统计





我晚点会拉下来看看,最近时间太紧了。。

好的,有问题会说出来的,没有说就当作没有问题吧

>>>>> For more options, visit this group at
>>>>> http://www.szdiy.org
>>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>>> ---
>>>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>>>
>>>>
>>>> --
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Shenzhen DIY community" group.
>>>> To post to this group, send email to sz...@googlegroups.com
>>>> To unsubscribe from this group, send email to

>>>> For more options, visit this group at
>>>> http://www.szdiy.org
>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>>> ---
>>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>>>
>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to

>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Terry Ouyang

unread,
Jul 19, 2017, 10:51:51 PM7/19/17
to SZDIY
目前我还没接触到服务器渲染(SSR)的范畴,但这种一般是为了解决弱客户端的情况,老实说放在服务端渲染挺浪费服务端资源的,而且增加了调试的复杂性。


>>> >>>>> For more options, visit this group at
>>> >>>>> http://www.szdiy.org
>>> >>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>>>> ---
>>> >>>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>> >>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>> >>>>
>>> >>>>
>>> >>>> --
>>> >>>> --
>>> >>>> You received this message because you are subscribed to the Google
>>> >>>> Groups "Shenzhen DIY community" group.
>>> >>>> To post to this group, send email to sz...@googlegroups.com
>>> >>>> To unsubscribe from this group, send email to

>>> >>>> For more options, visit this group at
>>> >>>> http://www.szdiy.org
>>> >>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>>> ---
>>> >>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >>>>
>>> >>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >>>
>>> >>>
>>> >>> --
>>> >>> --
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups "Shenzhen DIY community" group.
>>> >>> To post to this group, send email to sz...@googlegroups.com
>>> >>> To unsubscribe from this group, send email to

>>> >>> For more options, visit this group at
>>> >>> http://www.szdiy.org
>>> >>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>> ---
>>> >>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >>
>>> >> --
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups "Shenzhen DIY community" group.
>>> >> To post to this group, send email to sz...@googlegroups.com
>>> >> To unsubscribe from this group, send email to

>>> >> For more options, visit this group at
>>> >> http://www.szdiy.org
>>> >> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >> ---
>>> >> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >
>>> >
>>> > --
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Shenzhen DIY community" group.
>>> > To post to this group, send email to sz...@googlegroups.com
>>> > To unsubscribe from this group, send email to

>>> > For more options, visit this group at
>>> > http://www.szdiy.org
>>> > http://groups.google.com/group/szdiy?hl=zh-CN
>>> > ---
>>> > 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> > 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> > 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to

>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
> --
>
> Tony Wang
>
> Warm Regards
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Tony Wang

unread,
Jul 20, 2017, 5:27:01 AM7/20/17
to SZDIY
了解,也就是说,生产中部署的是由 webpack 把 App.vue、Hellow.vue 等相关开发文档打包成的静态文件


>>> >>>>> For more options, visit this group at
>>> >>>>> http://www.szdiy.org
>>> >>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>>>> ---
>>> >>>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>> >>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>> >>>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>> >>>>
>>> >>>>
>>> >>>> --
>>> >>>> --
>>> >>>> You received this message because you are subscribed to the Google
>>> >>>> Groups "Shenzhen DIY community" group.
>>> >>>> To post to this group, send email to sz...@googlegroups.com
>>> >>>> To unsubscribe from this group, send email to

>>> >>>> For more options, visit this group at
>>> >>>> http://www.szdiy.org
>>> >>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>>> ---
>>> >>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >>>>
>>> >>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>> >>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >>>
>>> >>>
>>> >>> --
>>> >>> --
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups "Shenzhen DIY community" group.
>>> >>> To post to this group, send email to sz...@googlegroups.com
>>> >>> To unsubscribe from this group, send email to

>>> >>> For more options, visit this group at
>>> >>> http://www.szdiy.org
>>> >>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>> ---
>>> >>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>> >>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >>
>>> >> --
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups "Shenzhen DIY community" group.
>>> >> To post to this group, send email to sz...@googlegroups.com
>>> >> To unsubscribe from this group, send email to

>>> >> For more options, visit this group at
>>> >> http://www.szdiy.org
>>> >> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >> ---
>>> >> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>> >> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >
>>> >
>>> > --
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Shenzhen DIY community" group.
>>> > To post to this group, send email to sz...@googlegroups.com
>>> > To unsubscribe from this group, send email to

>>> > For more options, visit this group at
>>> > http://www.szdiy.org
>>> > http://groups.google.com/group/szdiy?hl=zh-CN
>>> > ---
>>> > 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> > 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>> > 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to

>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
> --
>
> Tony Wang
>
> Warm Regards
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Terry Ouyang

unread,
Jul 20, 2017, 7:10:37 AM7/20/17
to SZDIY
是的,最后就成为了html/js/css/images/...,你甚至可以把它们全放在cdn上


>>> >>>>> For more options, visit this group at
>>> >>>>> http://www.szdiy.org
>>> >>>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>>>> ---
>>> >>>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>> >>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>> >>>>
>>> >>>>
>>> >>>> --
>>> >>>> --
>>> >>>> You received this message because you are subscribed to the Google
>>> >>>> Groups "Shenzhen DIY community" group.
>>> >>>> To post to this group, send email to sz...@googlegroups.com
>>> >>>> To unsubscribe from this group, send email to

>>> >>>> For more options, visit this group at
>>> >>>> http://www.szdiy.org
>>> >>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>>> ---
>>> >>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >>>>
>>> >>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >>>
>>> >>>
>>> >>> --
>>> >>> --
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups "Shenzhen DIY community" group.
>>> >>> To post to this group, send email to sz...@googlegroups.com
>>> >>> To unsubscribe from this group, send email to

>>> >>> For more options, visit this group at
>>> >>> http://www.szdiy.org
>>> >>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >>> ---
>>> >>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >>
>>> >> --
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups "Shenzhen DIY community" group.
>>> >> To post to this group, send email to sz...@googlegroups.com
>>> >> To unsubscribe from this group, send email to

>>> >> For more options, visit this group at
>>> >> http://www.szdiy.org
>>> >> http://groups.google.com/group/szdiy?hl=zh-CN
>>> >> ---
>>> >> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> >> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> >> 要查看更多选项,请访问https://groups.google.com/d/optout
>>> >
>>> >
>>> > --
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Shenzhen DIY community" group.
>>> > To post to this group, send email to sz...@googlegroups.com
>>> > To unsubscribe from this group, send email to

>>> > For more options, visit this group at
>>> > http://www.szdiy.org
>>> > http://groups.google.com/group/szdiy?hl=zh-CN
>>> > ---
>>> > 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>>> > 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> > 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shenzhen DIY community" group.
>>> To post to this group, send email to sz...@googlegroups.com
>>> To unsubscribe from this group, send email to

>>> For more options, visit this group at
>>> http://www.szdiy.org
>>> http://groups.google.com/group/szdiy?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>>> 要查看更多选项,请访问 https://groups.google.com/d/optout
>>
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Shenzhen DIY community" group.
>> To post to this group, send email to sz...@googlegroups.com
>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://www.szdiy.org
>> http://groups.google.com/group/szdiy?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
> --
>
> Tony Wang
>
> Warm Regards
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Nala Ginrut

unread,
Jul 20, 2017, 7:35:52 AM7/20/17
to sz...@googlegroups.com
服务器渲染简单得很,消耗资源啥的关键看cache怎么做

Kevin

unread,
Jul 21, 2017, 11:47:56 AM7/21/17
to sz...@googlegroups.com
npm run dev 用于开发,全部代码不压缩不优化,修改源码即时生效,页面自动刷新;
npm run build 会生成一个dist目录,webpack会压缩、优化、合并代码,并且过滤无用代码,用于最终上线,目录大概长这样:
~/dev/git/duo(frontend) » tree dist                                                                                                                        mikeliang@MacBookAir
dist
├── index.html
└── static
    ├── css
    │   ├── app.db935e3c366e17e7abd40cdc2461d319.css
    │   └── app.db935e3c366e17e7abd40cdc2461d319.css.map
    ├── fonts
    │   ├── glyphicons-halflings-regular.448c34a.woff2
    │   ├── glyphicons-halflings-regular.e18bbf6.ttf
    │   ├── glyphicons-halflings-regular.f4769f9.eot
    │   └── glyphicons-halflings-regular.fa27723.woff
    ├── img
    │   └── glyphicons-halflings-regular.8988968.svg
    └── js
        ├── app.5ede3276e2e5bcb69d08.js
        ├── app.5ede3276e2e5bcb69d08.js.map
        ├── manifest.2e8dcb4293a84680e4c8.js
        ├── manifest.2e8dcb4293a84680e4c8.js.map
        ├── vendor.1a7306f3ffef3edea828.js
        └── vendor.1a7306f3ffef3edea828.js.map

回到SSR的话题,我们这个项目显然是不需要SEO的,但是由于移动端的兴起,现在流行的做法是让服务器多分担渲染工作,减轻客户端负担。实测经验数据表明,此举可大幅提升手机页面加载速度,尤其是低端安卓机型。

BTW,Duo frontend 有更新,我发了一个pull request,里面包含了3个新API,请各位查阅。

Atommann

unread,
Jul 23, 2017, 10:14:57 AM7/23/17
to Shenzhen DIY Lab
上周四给 Raspberry Pi 上电,看 /tmp/duo-logfile 文件,发现程序居然给出像是 85:04:6
这样的时间。于是导致 python 换成 Unix 时间戳时函数调用出错,不再上传数据。

今天我修理了一下程序。现在又正常上传数据了。

web 可视化先弄一个可以看的原型出来,边做边改。

--
Best regards,
Atommann

Kevin

unread,
Jul 23, 2017, 11:56:15 PM7/23/17
to sz...@googlegroups.com
可视化这里,目前的3个api,看是否有补充。下一步是后台存储开个读api,就可以接入了。


--
Best regards,
Atommann

Tony Wang

unread,
Jul 24, 2017, 1:05:52 AM7/24/17
to sz...@googlegroups.com
image.png
数据库中应该只需要 Node(或 device ) 和 node archive 两个表即可吧。

一个存储设备类型和ID, 另一个存储每日更新数据,第三个做何用处?

针对前端需要的增加的两个API,这周实现出来

  • TwoWeekCompare 近2个月日用电量对比数据,用于展示柱状图
  • LastReports 最新的电表上报数据,用于查看电表硬件工作情况

On Mon, Jul 24, 2017 at 11:56 AM Kevin <com...@gmail.com> wrote:
可视化这里,目前的3个api,看是否有补充。下一步是后台存储开个读api,就可以接入了。
2017-07-23 22:14 GMT+08:00 Atommann <atom...@gmail.com>:
上周四给 Raspberry Pi 上电,看 /tmp/duo-logfile 文件,发现程序居然给出像是 85:04:6
这样的时间。于是导致 python 换成 Unix 时间戳时函数调用出错,不再上传数据。

今天我修理了一下程序。现在又正常上传数据了。

web 可视化先弄一个可以看的原型出来,边做边改。

--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Atommann

unread,
Jul 24, 2017, 4:00:27 AM7/24/17
to Shenzhen DIY Lab
时间 bug 找到了,是 BCD 转字符串的时候把 leading 0 扔掉了。目前数据正常上传中。

要从外部 ssh 局域网里的 Raspberry Pi 杨城提到可以用一个叫 frp 的工具 (
https://github.com/fatedier/frp ) ,但需要中间服务器。我临时用了 ngrok,
但也有一些问题,这种工具应该想办法安装在自己的服务器上。

文档记录在 https://sites.google.com/site/atommann2/szdiy-projects/project-duo 见网页末端。

--
Best regards,
Atommann

Terry Ouyang

unread,
Jul 24, 2017, 10:36:40 AM7/24/17
to SZDIY
Device那个表应该是之前你建的那个Model,现在可以删掉不用了。



在 2017年7月24日 下午1:05,Tony Wang <plantp...@gmail.com>写道:
image.png
数据库中应该只需要 Node(或 device ) 和 node archive 两个表即可吧。

一个存储设备类型和ID, 另一个存储每日更新数据,第三个做何用处?

针对前端需要的增加的两个API,这周实现出来

  • TwoWeekCompare 近2个月日用电量对比数据,用于展示柱状图
  • LastReports 最新的电表上报数据,用于查看电表硬件工作情况
On Mon, Jul 24, 2017 at 11:56 AM Kevin <com...@gmail.com> wrote:
可视化这里,目前的3个api,看是否有补充。下一步是后台存储开个读api,就可以接入了。
2017-07-23 22:14 GMT+08:00 Atommann <atom...@gmail.com>:
上周四给 Raspberry Pi 上电,看 /tmp/duo-logfile 文件,发现程序居然给出像是 85:04:6
这样的时间。于是导致 python 换成 Unix 时间戳时函数调用出错,不再上传数据。

今天我修理了一下程序。现在又正常上传数据了。

web 可视化先弄一个可以看的原型出来,边做边改。

--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
--

Tony Wang 

Warm Regards

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Atommann

unread,
Aug 10, 2017, 12:50:48 PM8/10/17
to Shenzhen DIY Lab
今天 Terry 给我看了未来在网站上显示的前端界面,很漂亮,远远超出我的期待。很赞!

--
Best regards,
Atommann

Terry Ouyang

unread,
Aug 10, 2017, 11:10:12 PM8/10/17
to SZDIY
这主要是Kevin的功劳,前端写界面比较有经验。我和Tony还在折腾后台api,我昨晚改的版本应该基本可以用了,这周末找个时间部署到服务器上再调一下看看。


--
Best regards,
Atommann

Atommann

unread,
Aug 22, 2017, 6:36:39 AM8/22/17
to Shenzhen DIY Lab
今天我测试了 CO2 传感器(Link 1),以后我们可以把空间的室内空气质量(Indoor Air Quality, IAQ)也记录下来,在这一套网页中显示。
CO2 超过 1000 ppm 就会对人有所影响。

但老师以前有个传感器盒子(Link 2),里面有 PM2.5, 甲醛, etc...,也应该接入进去 :)

Links
1. https://github.com/atommann/co2-MH-Z14A-softserial

2. https://github.com/danfei/DustSensorShield
上面的版本和我看到的不一样。

3. https://github.com/alpacagh/MHZ14-CO2-Logger

--
Best regards,
Atommann

Nala Ginrut

unread,
Aug 22, 2017, 9:00:53 AM8/22/17
to sz...@googlegroups.com
但老师说那个是他的绝密项目,我强烈建议他公开
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Shenzhen DIY community" group.
> To post to this group, send email to sz...@googlegroups.com
> To unsubscribe from this group, send email to
> szdiy+un...@googlegroups.com
> For more options, visit this group at
> http://www.szdiy.org
> http://groups.google.com/group/szdiy?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。

Atommann

unread,
Sep 23, 2017, 10:25:35 PM9/23/17
to Shenzhen DIY Lab
https://sites.google.com/site/atommann2/szdiy-projects/project-duo
我参加 SZDIY * Lab0x0 IoT hackathon 的过程记录在上文末尾 “2017-09-23 星期六”部分。遇到麻烦的 bug, 现在放弃。

--
Best regards,
Atommann

Terry Ouyang

unread,
Sep 23, 2017, 10:46:45 PM9/23/17
to SZDIY
。。。。我们先用软件模拟的测试数据吧


--
Best regards,
Atommann

--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。

Atommann

unread,
Jan 2, 2020, 12:57:16 PM1/2/20
to Shenzhen DIY Lab
昨天把电表重装安装上了,我们可以用空闲时间重启这个项目的硬件/固件和 web 端的工作。

https://sites.google.com/site/atommann2/szdiy-projects/project-duo 页面底部是安装好的照片。

--
Best regards,
Atommann

Tony Wang

unread,
Jan 2, 2020, 8:50:35 PM1/2/20
to sz...@googlegroups.com
两年前挖的坑,哈哈哈哈


Sincerely,


--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要在网络上查看此讨论,请访问 https://groups.google.com/d/msgid/szdiy/CANDNR8rUJA8B2uSVViy_Z8QXiPcJSKBp0v%2BxgrRihQcevOrxCg%40mail.gmail.com

Nala Ginrut

unread,
Jan 2, 2020, 11:01:14 PM1/2/20
to sz...@googlegroups.com
主要是社区搬家了,电表才装起来

您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/szdiy/3975a166-f3b3-416b-bfba-0d8e1195d858%40Spark

Aaron Tsui

unread,
Jan 6, 2020, 5:26:37 AM1/6/20
to sz...@googlegroups.com
支持,支持!项目还在做,就是没有死。

Reply all
Reply to author
Forward
0 new messages