├── doc ├── ppt │ ├── js │ │ ├── jquery-latest.min.map │ │ ├── styles │ │ │ ├── pojoaque.jpg │ │ │ ├── school_book.png │ │ │ ├── brown_papersq.png │ │ │ ├── ascetic.css │ │ │ ├── tomorrow.css │ │ │ ├── tomorrow-night-bright.css │ │ │ ├── tomorrow-night-eighties.css │ │ │ ├── tomorrow-night.css │ │ │ ├── tomorrow-night-blue.css │ │ │ ├── solarized_dark.css │ │ │ ├── solarized_light.css │ │ │ ├── ir_black.css │ │ │ ├── vs.css │ │ │ ├── pojoaque.css │ │ │ ├── dark.css │ │ │ ├── brown_paper.css │ │ │ ├── rainbow.css │ │ │ ├── idea.css │ │ │ ├── monokai.css │ │ │ ├── zenburn.css │ │ │ ├── github.css │ │ │ ├── far.css │ │ │ ├── school_book.css │ │ │ ├── magula.css │ │ │ ├── sunburst.css │ │ │ ├── googlecode.css │ │ │ └── xcode.css │ │ └── languages │ │ │ ├── ini.js │ │ │ ├── dos.js │ │ │ ├── http.js │ │ │ ├── parser3.js │ │ │ ├── json.js │ │ │ ├── smalltalk.js │ │ │ ├── profile.js │ │ │ ├── go.js │ │ │ ├── axapta.js │ │ │ ├── tex.js │ │ │ ├── java.js │ │ │ ├── erlang-repl.js │ │ │ ├── bash.js │ │ │ ├── diff.js │ │ │ ├── rsl.js │ │ │ ├── javascript.js │ │ │ ├── rib.js │ │ │ ├── rust.js │ │ │ ├── cs.js │ │ │ ├── scala.js │ │ │ ├── cpp.js │ │ │ ├── cmake.js │ │ │ ├── markdown.js │ │ │ ├── lua.js │ │ │ ├── vbscript.js │ │ │ ├── r.js │ │ │ ├── vhdl.js │ │ │ ├── vala.js │ │ │ ├── python.js │ │ │ ├── haskell.js │ │ │ ├── lisp.js │ │ │ ├── actionscript.js │ │ │ ├── matlab.js │ │ │ ├── avrasm.js │ │ │ ├── delphi.js │ │ │ └── nginx.js │ ├── jmpress.js-master │ │ ├── test │ │ │ ├── fixtures │ │ │ │ └── ajax.html │ │ │ ├── components │ │ │ │ ├── ajax.test.js │ │ │ │ └── templates.test.js │ │ │ └── index.html │ │ ├── examples │ │ │ ├── ajax │ │ │ │ ├── content.html │ │ │ │ ├── index.html │ │ │ │ └── ajax.css │ │ │ ├── cube │ │ │ │ ├── cube.css │ │ │ │ └── index.html │ │ │ ├── animation │ │ │ │ └── animation.css │ │ │ ├── zoomable │ │ │ │ └── zoomable.css │ │ │ ├── form-dynamic │ │ │ │ ├── style.css │ │ │ │ └── index.html │ │ │ ├── automatic-layout │ │ │ │ └── automatic.css │ │ │ ├── tab-control │ │ │ │ └── style.css │ │ │ ├── nested-templates │ │ │ │ └── nested-template.css │ │ │ ├── simple │ │ │ │ └── index.html │ │ │ └── vacation │ │ │ │ └── vacation.css │ │ ├── src │ │ │ ├── css │ │ │ │ ├── animations │ │ │ │ │ └── basic │ │ │ │ │ │ ├── appear.css │ │ │ │ │ │ ├── fade.css │ │ │ │ │ │ ├── drive.css │ │ │ │ │ │ ├── expand.css │ │ │ │ │ │ ├── zoom.css │ │ │ │ │ │ └── warp.css │ │ │ │ └── demo │ │ │ │ │ └── animations.css │ │ │ ├── banners │ │ │ │ ├── plugins.js │ │ │ │ └── dist.js │ │ │ ├── components │ │ │ │ ├── start.js │ │ │ │ ├── jqevents.js │ │ │ │ ├── active.js │ │ │ │ ├── mouse.js │ │ │ │ ├── circular.js │ │ │ │ ├── mobile.js │ │ │ │ ├── ways.js │ │ │ │ ├── near.js │ │ │ │ └── ajax.js │ │ │ └── plugins │ │ │ │ ├── toggle.js │ │ │ │ ├── secondary.js │ │ │ │ └── duration.js │ │ ├── AUTHORS │ │ ├── .jshintrc │ │ ├── README.md │ │ ├── package.json │ │ ├── index.notes.html │ │ └── presentation-screen.html │ ├── README.md │ ├── imgs │ │ └── struct.jpg │ ├── fancybox │ │ ├── sprite.psd │ │ ├── demo │ │ │ ├── 1_b.jpg │ │ │ ├── 1_s.jpg │ │ │ ├── 2_b.jpg │ │ │ ├── 2_s.jpg │ │ │ ├── 3_b.jpg │ │ │ ├── 3_s.jpg │ │ │ ├── 4_b.jpg │ │ │ ├── 4_s.jpg │ │ │ ├── 5_b.jpg │ │ │ ├── 5_s.jpg │ │ │ ├── iframe.html │ │ │ └── ajax.txt │ │ ├── source │ │ │ ├── blank.gif │ │ │ ├── fancybox_sprite.png │ │ │ ├── fancybox_loading.gif │ │ │ ├── fancybox_overlay.png │ │ │ ├── fancybox_sprite@2x.png │ │ │ ├── fancybox_loading@2x.gif │ │ │ └── helpers │ │ │ │ ├── fancybox_buttons.png │ │ │ │ ├── jquery.fancybox-thumbs.css │ │ │ │ └── jquery.fancybox-buttons.css │ │ ├── .gitattributes │ │ ├── bower.json │ │ ├── fancybox.jquery.json │ │ └── lib │ │ │ └── jquery.mousewheel.pack.js │ └── css │ │ ├── automatic.css │ │ └── highlight.min.css ├── dot │ ├── struct.jpg │ ├── Makefile │ ├── README.md │ ├── struct.dot │ └── struct_old.dot ├── images │ ├── android.png │ └── app_demo.jpg ├── nginx │ ├── README.md │ ├── 127.0.0.2.conf │ └── nginx.conf ├── 如何添加硬件.md ├── README.md ├── main.md └── How to start for IoT.md ├── hardware ├── arduino │ ├── README.md │ └── BareMinimum │ │ └── BareMinimum.ino └── README.md ├── python ├── get.py ├── post.py ├── iot.py ├── README.md └── raspberrypi.py ├── .gitmodules └── license.txt /doc/ppt/js/jquery-latest.min.map: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/test/fixtures/ajax.html: -------------------------------------------------------------------------------- 1 | foobar -------------------------------------------------------------------------------- /doc/ppt/README.md: -------------------------------------------------------------------------------- 1 | ##一个简要的ppt演示系统内容## 2 | 3 | ###jmpress### 4 | 5 | -------------------------------------------------------------------------------- /doc/dot/struct.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/dot/struct.jpg -------------------------------------------------------------------------------- /doc/images/android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/images/android.png -------------------------------------------------------------------------------- /doc/images/app_demo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/images/app_demo.jpg -------------------------------------------------------------------------------- /doc/ppt/imgs/struct.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/imgs/struct.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/sprite.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/sprite.psd -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/examples/ajax/content.html: -------------------------------------------------------------------------------- 1 |
This was loaded via ajax.
-------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/1_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/1_b.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/1_s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/1_s.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/2_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/2_b.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/2_s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/2_s.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/3_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/3_b.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/3_s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/3_s.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/4_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/4_b.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/4_s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/4_s.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/5_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/5_b.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/demo/5_s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/demo/5_s.jpg -------------------------------------------------------------------------------- /doc/ppt/js/styles/pojoaque.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/js/styles/pojoaque.jpg -------------------------------------------------------------------------------- /doc/ppt/fancybox/source/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/source/blank.gif -------------------------------------------------------------------------------- /doc/ppt/js/styles/school_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/js/styles/school_book.png -------------------------------------------------------------------------------- /doc/ppt/js/styles/brown_papersq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/js/styles/brown_papersq.png -------------------------------------------------------------------------------- /doc/ppt/fancybox/source/fancybox_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/source/fancybox_sprite.png -------------------------------------------------------------------------------- /hardware/arduino/README.md: -------------------------------------------------------------------------------- 1 | ##Basic Arduino Serial Commucation## 2 | 3 | Read the data and use String to Int to bool for ON or OFF -------------------------------------------------------------------------------- /doc/ppt/fancybox/source/fancybox_loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/source/fancybox_loading.gif -------------------------------------------------------------------------------- /doc/ppt/fancybox/source/fancybox_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/source/fancybox_overlay.png -------------------------------------------------------------------------------- /doc/ppt/fancybox/source/fancybox_sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/source/fancybox_sprite@2x.png -------------------------------------------------------------------------------- /hardware/README.md: -------------------------------------------------------------------------------- 1 | ##Hardware## 2 | Welcome to add you hardware to here. 3 | 4 | 5 | ##硬件部分## 6 | 这里可能没有那么多的硬件,现在正在扩充阶段,需要大家的贡献。 7 | -------------------------------------------------------------------------------- /doc/dot/Makefile: -------------------------------------------------------------------------------- 1 | default: 2 | @echo 'Generate system structure frame' 3 | dot struct.dot -Tjpg -o struct.jpg 4 | clean: 5 | rm *.jpg 6 | -------------------------------------------------------------------------------- /doc/ppt/fancybox/source/fancybox_loading@2x.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/source/fancybox_loading@2x.gif -------------------------------------------------------------------------------- /python/get.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import requests 3 | 4 | url = "http://b.phodal.com/athome/1" 5 | r = requests.get(url) 6 | print r.text 7 | -------------------------------------------------------------------------------- /doc/ppt/fancybox/source/helpers/fancybox_buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phodal/iot/HEAD/doc/ppt/fancybox/source/helpers/fancybox_buttons.png -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/src/css/animations/basic/appear.css: -------------------------------------------------------------------------------- 1 | .will-appear { 2 | opacity: 0; 3 | } 4 | 5 | .do-appear { 6 | opacity: 1; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /doc/dot/README.md: -------------------------------------------------------------------------------- 1 | ##System Struct## 2 | To make the Struct just Run,if you install the graphviz 3 | 4 | make 5 | 6 | and 7 | 8 | make clean 9 | 10 | to remove the picture -------------------------------------------------------------------------------- /doc/ppt/fancybox/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Denote all files that are truly binary and should not be modified. 5 | *.png binary 6 | *.jpg binary 7 | *.gif binary -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/AUTHORS: -------------------------------------------------------------------------------- 1 | project: jmpress.js 2 | commits: 396 3 | active : 83 days 4 | files : 143 5 | authors: 6 | 237 Tobias Koppers 59.8% 7 | 157 Kyle Robinson Young 39.6% 8 | 2 Marcus Lunzenauer 0.5% -------------------------------------------------------------------------------- /python/post.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import requests 3 | 4 | url = "http://b.phodal.com/athome/1" 5 | data = {"temperature": 19, "sensors1": 32, "sensors2": 7.5, "led1": 0, "method": "PUT"} 6 | r = requests.put(url, data) 7 | print r.text 8 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "android"] 2 | path = android 3 | url = https://github.com/gmszone/Home-Anywhere 4 | [submodule "rest"] 5 | path = rest 6 | url = https://github.com/gmszone/iot-rest.git 7 | [submodule "dashboard"] 8 | path = dashboard 9 | url = https://github.com/gmszone/iot-dashboard 10 | -------------------------------------------------------------------------------- /doc/ppt/fancybox/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fancybox", 3 | "version": "2.1.5", 4 | "main": ["source/jquery.fancybox.css","source/jquery.fancybox.js"], 5 | "ignore": [ 6 | "**/.*", 7 | "*.json", 8 | "demo" 9 | ], 10 | "dependencies": { 11 | "jquery": "~1.10", 12 | "jquery-mousewheel": "~3.1.3" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/src/banners/plugins.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * plugin for <%= pkg.name || pkg.title %> v<%= pkg.version %> 3 | * <%= pkg.homepage %> 4 | * 5 | * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> 6 | * Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> 7 | * <%= _.pluck(pkg.licenses, "url").join(", ") %> 8 | */ 9 | -------------------------------------------------------------------------------- /python/iot.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import json,urllib2,serial 3 | 4 | url="http://b.phodal.com/athome/1" 5 | while True: 6 | status=json.load(urllib2.urlopen(url))[0]['led1'] 7 | serialport=serial.Serial("/dev/ttyACM0",9600) 8 | if status==1 : 9 | serialport.write('1') 10 | elif status==0: 11 | serialport.write('0') 12 | -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/src/components/start.js: -------------------------------------------------------------------------------- 1 | /* 2 | * start.js 3 | * Set the first step to start on 4 | */ 5 | (function( $, document, window, undefined ) { 6 | 7 | 'use strict'; 8 | 9 | /* HOOKS */ 10 | $.jmpress( 'selectInitialStep', function( nil, eventData ) { 11 | return eventData.settings.start; 12 | }); 13 | 14 | }(jQuery, document, window)); -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "eqnull": true, 11 | "browser": true, 12 | "laxcomma": true, 13 | "smarttabs": true, 14 | "validthis": true, 15 | "globals": { 16 | "jQuery": true 17 | } 18 | } -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/src/banners/dist.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * <%= pkg.name || pkg.title %> v<%= pkg.version %> 3 | * <%= pkg.homepage %> 4 | * 5 | * <%= pkg.description %> 6 | * 7 | * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> 8 | * Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> 9 | * <%= _.pluck(pkg.licenses, "url").join(", ") %> 10 | * 11 | * Based on the foundation laid by Bartek Szopka @bartaz 12 | */ 13 | -------------------------------------------------------------------------------- /doc/dot/struct.dot: -------------------------------------------------------------------------------- 1 | digraph G{ 2 | compound=true; 3 | 4 | subgraph cluster0{ 5 | RaspberryPi->Hardware; 6 | Hardware->RaspberryPi[label="Serial Commucation"]; 7 | } 8 | subgraph cluster1{ 9 | Server->RaspberryPi [label="GET/POST"]; 10 | RaspberryPi->Server; 11 | Browser->Server [label="CRUD"]; 12 | Server->Browser [label="Ajax"]; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /doc/dot/struct_old.dot: -------------------------------------------------------------------------------- 1 | digraph G{ 2 | compound=true; 3 | 4 | subgraph cluster0{ 5 | RaspberryPi->Arduino; 6 | Arduino->RaspberryPi[label="Serial Commucation"]; 7 | } 8 | subgraph cluster1{ 9 | Server->RaspberryPi [label="GET/POST"]; 10 | RaspberryPi->Server; 11 | Browser->Server [label="CRUD"]; 12 | Server->Browser [label="Ajax"]; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hardware/arduino/BareMinimum/BareMinimum.ino: -------------------------------------------------------------------------------- 1 | int ledPort=13; 2 | 3 | void setup() { 4 | Serial.begin(9600); 5 | pinMode(ledPort,OUTPUT); 6 | } 7 | 8 | int serialData; 9 | void loop() { 10 | String inString = ""; 11 | while (Serial.available()> 0) 12 | { 13 | int inChar = Serial.read(); 14 | if (isDigit(inChar)) { 15 | inString += (char)inChar; 16 | } 17 | serialData=inString.toInt(); 18 | Serial.print(serialData); 19 | } 20 | if(serialData==1){ 21 | digitalWrite(ledPort,HIGH); 22 | }else{ 23 | digitalWrite(ledPort,LOW); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /doc/nginx/README.md: -------------------------------------------------------------------------------- 1 | ##Example of Laravel Configure## 2 | Laravel与nginx使用的时候需要添加下面的重定向规则,供参考 。 3 | 4 | 127.0.0.2.conf 本地配置用的时候,nginx版本1.5.6 5 | nginx.conf 网上示例 6 | 7 | 8 | ##Need to add to you configure## 9 | # Enforce No WWW - I put this in an include: 10 | # include /etc/nginx/includes/enforce_non_www; 11 | if ($host ~* ^www\.(.*)) 12 | { 13 | set $host_without_www $1; 14 | rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent; 15 | } 16 | 17 | # Check if file exists 18 | if (!-e $request_filename) 19 | { 20 | rewrite ^/(.*)$ /index.php?/$1 last; 21 | break; 22 | } 23 | -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/examples/cube/cube.css: -------------------------------------------------------------------------------- 1 | /** GENERAL **/ 2 | body { 3 | font-family: Verdana, sans-serif; 4 | min-height: 740px; 5 | background-color: #ddd; 6 | -webkit-font-smoothing: antialiased; 7 | pointer-events: none; 8 | } 9 | 10 | /** STEP STYLES **/ 11 | .step { 12 | width: 1000px; 13 | height: 1000px; 14 | 15 | display: block; 16 | padding: 100px; 17 | 18 | font-size: 200px; 19 | 20 | border: 10px solid black; 21 | 22 | -webkit-box-sizing: border-box; 23 | -moz-box-sizing: border-box; 24 | -ms-box-sizing: border-box; 25 | -o-box-sizing: border-box; 26 | box-sizing: border-box; 27 | } 28 | } -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/src/components/jqevents.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jqevents.js 3 | * Fires jQuery events 4 | */ 5 | (function( $, document, window, undefined ) { 6 | 7 | 'use strict'; 8 | 9 | /* HOOKS */ 10 | // the events should not bubble up the tree 11 | // elsewise nested jmpress would cause buggy behavior 12 | $.jmpress("setActive", function( step, eventData ) { 13 | if(eventData.prevStep !== step) { 14 | $(step).triggerHandler("enterStep"); 15 | } 16 | }); 17 | $.jmpress("setInactive", function( step, eventData ) { 18 | if(eventData.nextStep !== step) { 19 | $(step).triggerHandler("leaveStep"); 20 | } 21 | }); 22 | 23 | }(jQuery, document, window)); -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/src/plugins/toggle.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jmpress.toggle plugin 3 | * For binding a key to toggle de/initialization of jmpress.js. 4 | */ 5 | (function( $, document, window, undefined ) { 6 | 'use strict'; 7 | $.jmpress("register", "toggle", function( key, config, initial ) { 8 | var jmpress = this; 9 | $(document).bind("keydown", function( event ) { 10 | if ( event.keyCode === key ) { 11 | if ($(jmpress).jmpress("initialized")) { 12 | $(jmpress).jmpress("deinit"); 13 | } else { 14 | $(jmpress).jmpress(config); 15 | } 16 | } 17 | }); 18 | if ( initial ) { 19 | $(jmpress).jmpress(config); 20 | } 21 | }); 22 | }(jQuery, document, window)); 23 | -------------------------------------------------------------------------------- /python/README.md: -------------------------------------------------------------------------------- 1 | ##About## 2 | get Json data from [http://www.xianuniversity.com/athome/1][1] and communcation with Arduino use pyserial. 3 | 4 | ###curl 5 | 6 | 1.post 7 | 8 | curl --data "_method=PUT&led1=1&sensors1=22&sensors2=12&temperature=14" http://b.phodal.com/athome/1 9 | 10 | 2.get 11 | 12 | curl http://b.phodal.com/athome/1 13 | 14 | ###Python Module### 15 | - JSON 16 | - urllib2 17 | - serial 18 | 19 | ###HOW TO### 20 | pip install pyserial 21 | 22 | OR 23 | 24 | easy_install pyserial 25 | 26 | if Windows download from Internet 27 | ###!Not Work### 28 | Find which is you Arduino Serial Port 29 | if Linux is /dev/ttyACM* 30 | 31 | 32 | 33 | [1]:http://www.xianuniversity.com/athome/1 -------------------------------------------------------------------------------- /doc/ppt/js/languages/ini.js: -------------------------------------------------------------------------------- 1 | /* 2 | Language: Ini 3 | */ 4 | 5 | function(hljs) { 6 | return { 7 | case_insensitive: true, 8 | illegal: '[^\\s]', 9 | contains: [ 10 | { 11 | className: 'comment', 12 | begin: ';', end: '$' 13 | }, 14 | { 15 | className: 'title', 16 | begin: '^\\[', end: '\\]' 17 | }, 18 | { 19 | className: 'setting', 20 | begin: '^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*', end: '$', 21 | contains: [ 22 | { 23 | className: 'value', 24 | endsWithParent: true, 25 | keywords: 'on off true false yes no', 26 | contains: [hljs.QUOTE_STRING_MODE, hljs.NUMBER_MODE] 27 | } 28 | ] 29 | } 30 | ] 31 | }; 32 | } 33 | -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/src/css/animations/basic/fade.css: -------------------------------------------------------------------------------- 1 | .will-fade { 2 | -webkit-transition: opacity 1s; 3 | -moz-transition: opacity 1s; 4 | -ms-transition: opacity 1s; 5 | -o-transition: opacity 1s; 6 | transition: opacity 1s; 7 | 8 | opacity: 0; 9 | } 10 | .will-fade-slow { 11 | -webkit-transition: opacity 2s; 12 | -moz-transition: opacity 2s; 13 | -ms-transition: opacity 2s; 14 | -o-transition: opacity 2s; 15 | transition: opacity 2s; 16 | 17 | opacity: 0; 18 | } 19 | .will-fade-fast { 20 | -webkit-transition: opacity 0.5s; 21 | -moz-transition: opacity 0.5s; 22 | -ms-transition: opacity 0.5s; 23 | -o-transition: opacity 0.5s; 24 | transition: opacity 0.5s; 25 | 26 | opacity: 0; 27 | } 28 | 29 | .do-fade, .do-fade-slow, .do-fade-fast { 30 | opacity: 1; 31 | } 32 | 33 | -------------------------------------------------------------------------------- /python/raspberrypi.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import json 4 | import urllib2 5 | import serial 6 | import time 7 | import RPi.GPIO as GPIO 8 | 9 | GPIO.setmode(GPIO.BOARD) 10 | GPIO.setup(18, GPIO.OUT) 11 | GPIO.setup(22, GPIO.OUT) 12 | 13 | 14 | url="http://b.phodal.com/athome/1" 15 | 16 | while 1: 17 | try: 18 | date=urllib2.urlopen(url) 19 | result=json.load(date) 20 | status=result[0]['led1'] 21 | print status 22 | ser=serial.Serial("/dev/ttyACM0",9600) 23 | if status==1 : 24 | ser.write('1') 25 | GPIO.output(18, GPIO.LOW) 26 | GPIO.output(22, GPIO.LOW) 27 | elif status==0: 28 | ser.write('0') 29 | GPIO.output(18, GPIO.HIGH) 30 | GPIO.output(22, GPIO.HIGH) 31 | time.sleep(1) 32 | except urllib2.URLError: 33 | print "Bad URL or timeout" -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/src/css/demo/animations.css: -------------------------------------------------------------------------------- 1 | /* ========================================================================== 2 | FLOATING 3 | ========================================================================== */ 4 | @-webkit-keyframes floater { 5 | 0% { margin-top: 0px; } 6 | 50% { margin-top: -20px; } 7 | 100% { margin-top: 0px; } 8 | } 9 | @-moz-keyframes floater { 10 | 0% { margin-top: 0px; } 11 | 50% { margin-top: -20px; } 12 | 100% { margin-top: 0px; } 13 | } 14 | @-ms-keyframes floater { 15 | 0% { margin-top: 0px; } 16 | 50% { margin-top: -20px; } 17 | 100% { margin-top: 0px; } 18 | } 19 | @-o-keyframes floater { 20 | 0% { margin-top: 0px; } 21 | 50% { margin-top: -20px; } 22 | 100% { margin-top: 0px; } 23 | } 24 | @keyframes floater { 25 | 0% { margin-top: 0px; } 26 | 50% { margin-top: -20px; } 27 | 100% { margin-top: 0px; } 28 | } -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/examples/animation/animation.css: -------------------------------------------------------------------------------- 1 | /** GENERAL **/ 2 | body { 3 | font-family: Verdana, sans-serif; 4 | min-height: 740px; 5 | background-color: #FFF; 6 | -webkit-font-smoothing: antialiased; 7 | } 8 | 9 | /** STEP STYLES **/ 10 | .step { 11 | width: 900px; 12 | height: 500px; 13 | 14 | display: block; 15 | padding: 40px 60px; 16 | border-radius: 10px; 17 | 18 | color: black; 19 | 20 | -webkit-box-sizing: border-box; 21 | -moz-box-sizing: border-box; 22 | -ms-box-sizing: border-box; 23 | -o-box-sizing: border-box; 24 | box-sizing: border-box; 25 | } 26 | 27 | /** ANIMATION **/ 28 | .will-fade { 29 | -webkit-transition: opacity 1s; 30 | -moz-transition: opacity 1s; 31 | -ms-transition: opacity 1s; 32 | -o-transition: opacity 1s; 33 | transition: opacity 1s; 34 | 35 | opacity: 0; 36 | } 37 | .fade, .not-supported .will-fade { 38 | opacity: 1; 39 | } 40 | -------------------------------------------------------------------------------- /doc/ppt/fancybox/fancybox.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fancybox", 3 | "title": "fancyBox", 4 | "description": "fancyBox offers an elegant way to present images, html content and multimedia for webpages", 5 | "keywords": [ 6 | "lightbox", 7 | "effect", 8 | "responsive", 9 | "modal", 10 | "window", 11 | "ui" 12 | ], 13 | "version": "2.1.5", 14 | "author": { 15 | "name": "Janis Skarnelis", 16 | "url": "http://fancyapps.com/contact/" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "fancyBox", 21 | "url": "http://fancyapps.com/fancybox/#license" 22 | } 23 | ], 24 | "homepage": "http://fancyapps.com/fancybox/", 25 | "docs": "http://fancyapps.com/fancybox/#docs", 26 | "download": "http://fancyapps.com/fancybox/#license", 27 | "bugs": "https://github.com/fancyapps/fancyBox/issues", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /doc/ppt/js/languages/dos.js: -------------------------------------------------------------------------------- 1 | /* 2 | Language: DOS .bat 3 | Author: Alexander Makarov (http://rmcreative.ru/) 4 | */ 5 | 6 | function(hljs) { 7 | return { 8 | case_insensitive: true, 9 | keywords: { 10 | flow: 'if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq', 11 | keyword: 'shift cd dir echo setlocal endlocal set pause copy', 12 | stream: 'prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux', 13 | winutils: 'ping net ipconfig taskkill xcopy ren del' 14 | }, 15 | contains: [ 16 | { 17 | className: 'envvar', begin: '%%[^ ]' 18 | }, 19 | { 20 | className: 'envvar', begin: '%[^ ]+?%' 21 | }, 22 | { 23 | className: 'envvar', begin: '![^ ]+?!' 24 | }, 25 | { 26 | className: 'number', begin: '\\b\\d+', 27 | relevance: 0 28 | }, 29 | { 30 | className: 'comment', 31 | begin: '@?rem', end: '$' 32 | } 33 | ] 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /doc/ppt/js/styles/ascetic.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan SagalaevThe next 3 slided load content via ajax.
22 |Hello! My name is jmpress.js...
22 |and this is a really simple demo.
25 |You might think it is boring...
28 |but that is the point. This is a simple example.
31 |Use arrow keys to navigate
36 |11 | Close iframe parent 12 | 13 | | 14 | 15 | Change content 16 |
17 | 18 |19 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam scelerisque justo ac eros consectetur bibendum. In hac habitasse platea dictumst. Nulla aliquam turpis et tellus elementum luctus. Duis sit amet rhoncus velit. Duis nisl ligula, mattis interdum blandit laoreet, mattis id ante. Cras pulvinar lacus vitae nisi egestas non euismod neque bibendum. Vestibulum faucibus libero id ante molestie ultricies. Vestibulum quis nibh felis. Vestibulum libero nisl, vehicula vel ullamcorper sit amet, tristique sit amet augue. Etiam urna neque, porttitor sed sodales lacinia, posuere a nisl. Vestibulum blandit neque in sapien volutpat ac condimentum sapien auctor. Ut imperdiet venenatis ultricies. Phasellus accumsan, sem eu placerat commodo, felis purus commodo ipsum, sit amet vulputate orci est viverra est. 20 |
21 | 22 |23 | Aenean velit est, condimentum ut iaculis ut, accumsan at mi. Maecenas velit mi, venenatis ut condimentum at, ultrices vel tortor. Curabitur pharetra ornare dapibus. Ut volutpat cursus semper. In hac habitasse platea dictumst. Donec eu iaculis ipsum. Morbi eu dolor velit, a semper nunc. 24 |
25 | 26 | -------------------------------------------------------------------------------- /doc/ppt/jmpress.js-master/test/components/templates.test.js: -------------------------------------------------------------------------------- 1 | /* global QUnit, module, test, asyncTest, expect, start, stop, ok, equal, notEqual, deepEqual, notDeepEqual, strictEqual, notStrictEqual, raises */ 2 | (function($) { 3 | 4 | 'use strict'; 5 | 6 | QUnit.testStart = function(test) { 7 | window.location.hash = '#'; 8 | }; 9 | 10 | module('templates', { 11 | setup: function() { 12 | this.fixture = '#qunit-fixture #jmpress'; 13 | $(this.fixture) 14 | .empty() 15 | .attr('data-template', 'test-template') 16 | .append($('').text('One')) 17 | .append($('').text('Two')) 18 | .append($('').text('Three')) 19 | .append($('').text('Four')); 20 | } 21 | }); 22 | 23 | test('basic', 8, function() { 24 | $.jmpress('template', 'test-template', { 25 | children: function (idx, child, children) { 26 | return { 27 | x: idx * 1000, 28 | y: idx * 1000, 29 | rotate: idx * 45 30 | }; 31 | } 32 | }); 33 | $(this.fixture).jmpress({stepSelector: 'section'}); 34 | var result = $(this.fixture + ' #step-1').attr('style'); 35 | ok( result.indexOf('translate3d(0px, 0px, 0px)') !== -1 ); 36 | ok( result.indexOf('rotateX(0deg)') !== -1 ); 37 | ok( result.indexOf('rotateY(0deg)') !== -1 ); 38 | ok( result.indexOf('rotateZ(0deg)') !== -1 ); 39 | result = $(this.fixture + ' #step-3').attr('style'); 40 | ok( result.indexOf('translate3d(2000px, 2000px, 0px)') !== -1 ); 41 | ok( result.indexOf('rotateX(0deg)') !== -1 ); 42 | ok( result.indexOf('rotateY(0deg)') !== -1 ); 43 | ok( result.indexOf('rotateZ(90deg)') !== -1 ); 44 | }); 45 | 46 | }(jQuery)); -------------------------------------------------------------------------------- /doc/ppt/js/styles/solarized_dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull4 | Close me 5 |
6 |7 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas fermentum ante et sapien dignissim in viverra magna feugiat. Donec tempus ipsum nec neque dignissim quis eleifend eros gravida. Praesent nisi massa, sodales quis tincidunt ac, semper quis risus. In suscipit nisl sed leo aliquet consequat. Integer vitae augue in risus porttitor pellentesque eu eget odio. Fusce ut sagittis quam. Morbi aliquam interdum blandit. Integer pharetra tempor velit, aliquam dictum justo tempus sed. Morbi congue fringilla justo a feugiat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis metus et nisl consectetur pharetra. Nam bibendum turpis eu metus luctus eu volutpat sem molestie. Nam sollicitudin porttitor lorem, ac ultricies est venenatis eu. Ut dignissim elit et orci feugiat ac placerat purus euismod. Ut mi lorem, cursus et sagittis elementum, luctus ac massa. 8 |
9 |10 | Phasellus et ligula vel diam ullamcorper volutpat. Integer rhoncus rhoncus aliquam. Aliquam erat volutpat. Aenean luctus vestibulum placerat. Quisque quam neque, lacinia aliquet eleifend ac, aliquet blandit felis. Curabitur porta ultricies dui, sit amet mattis quam euismod a. Ut eleifend scelerisque neque, sit amet accumsan odio consequat ut. Proin facilisis auctor elit sed accumsan. Cras dapibus nisl in nisi rhoncus laoreet. Nullam pellentesque tortor libero, eget facilisis ipsum. Donec ultricies tellus tellus, in tincidunt purus. Nullam in est aliquam velit scelerisque blandit. In tincidunt, magna a dapibus imperdiet, quam urna elementum leo, vitae rhoncus nisl velit cursus velit. In dignissim sem ac mauris rhoncus ornare. 11 |
12 |13 | Duis imperdiet velit vel quam malesuada suscipit imperdiet tellus hendrerit. Mauris vestibulum odio mauris, ut placerat leo. Mauris quis neque at tellus feugiat congue id non enim. Nam vehicula posuere nulla eget vehicula. Donec pretium purus nec ligula porta eu laoreet sapien venenatis. Nulla facilisi. Phasellus eget mi enim. Phasellus molestie tincidunt ultrices. Aenean id sem a tellus lobortis tincidunt. Nam laoreet nulla vel velit tincidunt ac rutrum libero malesuada. Nulla consequat dolor quis nisl tempor fermentum. Integer sodales pretium varius. Aenean a leo vitae odio dictum dignissim malesuada nec dolor. Phasellus adipiscing viverra est, ac sagittis libero sagittis quis. Sed interdum dapibus nunc et fringilla. Nunc vel velit et urna laoreet bibendum. 14 |
15 |build a website on the infinite canvas by sokra & shama
19 |I am pure <html>, .css {} and function javascript() {} and use CSS3 transitions and transformations.
24 |I can pan,
25 |rotate
26 |and scale between elements on an infinite canvas.
27 |I currently work with most modern web browsers and fallback to simpler transitions with unsupported browsers.
32 |but I have become much, much more.
37 |by using one of our pre-made presentation templates
58 |:)
63 |allowing your presentation to be printed.
68 |Yes it also works in presentation mode.
73 |using the data-jmpress attribute.
78 |