Skip to content

Latest commit

 

History

History
57 lines (30 loc) · 1.33 KB

README.md

File metadata and controls

57 lines (30 loc) · 1.33 KB

Valentine

Powered by Lettuce

Tutorial:

教程: 情人节礼物大作战

相关的文章:情人节:程序员应该送什么礼物给女朋友

  • Raspberry Pi
  • Arduino
  • 其他(控制用)

Demo: http://valentine.phodal.com

Video: http://www.tudou.com/programs/view/ymr5BpHkHYc/

Install

1.Clone

git clone https://github.com/phodal/valentine

2.Install

pip install -r requirements.txt

3.Run

python server.py    

Others

Remind

curl http://0.0.0.0:5000/todo1 -d "data=Remember the milk" -X PUT

IR Remote

irsend SEND_ONCE home KEY_0

Ajax

lettuce.post("http://127.0.0.1:5000/some", "something", function(data){console.log(data)})

FX

L.FX.fadeIn(document.getElementById('results'), {duration: 2000, complete: function() {}});

License

© 2015 Phodal Huang. This code is distributed under the MIT license. See LICENSE.txt in this directory.

待我代码编成,娶你为妻可好