Skip to content
This repository
  • 2 commits
  • 5 files changed
  • 0 comments
  • 1 contributor
1  srv.socket.js
@@ -18,6 +18,7 @@ define(['socket.io', 'public/scripts/libs/Noduino', 'public/scripts/libs/Noduino
18 18
     this.sockets  = {};
19 19
     this.arduinos = {};
20 20
     this.handler  = socket.listen(8090);
  21
+    this.handler.set('origin', '*');
21 22
     this.pinCache = {};
22 23
     
23 24
     this.bindings();
2  views/example-walkLED.jade
@@ -5,7 +5,7 @@ header#overview
5 5
   .row
6 6
     .span12
7 7
       .hero-unit
8  
-        img(src="/wiring/walkLED.png")
  8
+        img(src="wiring/walkLED.png")
9 9
       p Use the example wiring from above and this interface for getting startet with noduino. Read values from an analog input device like a potentiometer and watch for pressed buttons, all basic functions are shown within this example. The needed 
10 10
         code .fzz
11 11
         |  file for making changes with the awesome 
6  views/getting-started.jade
@@ -9,16 +9,16 @@
9 9
     h2 Download Noduino from GitHub
10 10
     br 
11 11
     .hero-unit
12  
-      img(src="/images/getting-started/1.png")
  12
+      img(src="images/getting-started/1.png")
13 13
     h2 Upload duino to Arduino
14 14
     br 
15 15
     .hero-unit
16  
-      img(src="/images/getting-started/2.png")
  16
+      img(src="images/getting-started/2.png")
17 17
     h2 Start Noduino and have fun!
18 18
     p Start Noduino's WebSocket Server with <code>node srv.web.js</code>, connect your prepared Arduino, open <a href="http://localhost:8080">http://localhost:8080</a> with your browser and have fun. If you run into any problems during the provided examples please restart <code>srv.web.js</code>, there are some known issues on getting a connection if your browser has already connected or you are using multiple tabs. Keep in mind that Noduino is highly alpha software…
19 19
     br 
20 20
     .hero-unit
21  
-      img(src="/images/getting-started/3.png")
  21
+      img(src="images/getting-started/3.png")
22 22
 
23 23
 
24 24
     
12  views/home.jade
@@ -3,15 +3,15 @@ header.jumbotron.subhead#overview
3 3
   p.lead A simple and flexible JavaScript and Node.js Framework for accessing basic Arduino controls from Web Applications using HTML5, Socket.IO and Node.js.
4 4
 .row.marketing#homeBoxes
5 5
   .span4
6  
-    img.bs-icon(src="/images/glyphicons_155_show_thumbnails.png")
  6
+    img.bs-icon(src="images/glyphicons_155_show_thumbnails.png")
7 7
     h2 Easy Arduino Access
8 8
     p Initialize your Arduino board, define registered pins and send commands. Use digital and analog read or write to control buttons or switch connected LEDs. <strong>Listen for events</strong> happening on your Arduino to control your Web Application with analog controls…
9 9
   .span4
10  
-    img.bs-icon(src="/images/glyphicons_214_resize_small.png")
  10
+    img.bs-icon(src="images/glyphicons_214_resize_small.png")
11 11
     h2 Client and Server in JS
12 12
     p Thanks to Node.js and modern web browsers all server code as well as all client code is written in JavaScript. There is no difference in accessing your Arduino over <strong>WebSocket</strong> or a <strong>Serial</strong> connection. All methods and objects remain the same, written code is highly portable.
13 13
   .span4
14  
-    img.bs-icon(src="/images/glyphicons_009_magic.png")
  14
+    img.bs-icon(src="images/glyphicons_009_magic.png")
15 15
     h2 JS Proof of Concept
16 16
     p The first release of 
17 17
       a(href="") noduino
@@ -31,7 +31,7 @@ section#homeContent
31 31
       p 
32 32
         a(href="https://github.com/semu/noduino") Download noduino
33 33
         | , install needed packages with npm, fetch git submodules, upload duino's file <code>duino/src/du.ino</code> to your Arduino and you are good to go. An example on how to catch and fire events with an HTML interface is provided as well. Take a look at 
34  
-        a(href="/example-walkLED.html") LED Walker
  34
+        a(href="example-walkLED.html") LED Walker
35 35
         | …
36 36
     .span9
37 37
       pre.prettyprint.linenums=examples.node
@@ -124,7 +124,7 @@ section#homeContent
124 124
   .row
125 125
     .span12
126 126
       .hero-unit
127  
-        img(src="/wiring/walkLED.png")
  127
+        img(src="wiring/walkLED.png")
128 128
       p Use the example wiring from above and the provided code in  
129 129
         code examples/walkLED.js
130 130
         |  for getting started using noduino. Read values from an analog input device like a potentiometer and watch for pressed buttons, all basic functions are shown in the example files. The needed 
@@ -137,7 +137,7 @@ section#homeContent
137 137
   .row
138 138
     .span12
139 139
       p.exampleLinks
140  
-        a.btn.btn-success(href="/example-walkLED.html")
  140
+        a.btn.btn-success(href="example-walkLED.html")
141 141
           i.icon-gift.icon-white
142 142
           |  View Example
143 143
   .page-header
10  views/layout.jade
@@ -14,15 +14,15 @@ html(lang="en")
14 14
           div.nav-collapse
15 15
             ul.nav
16 16
               li(class=(active == 'home' ? 'active' : ''))
17  
-                a(href="/") Home
  17
+                a(href="index.html") Home
18 18
               li(class=(active == 'getting-started' ? 'active' : ''))
19  
-                a(href="/getting-started.html") Getting Started                
  19
+                a(href="getting-started.html") Getting Started                
20 20
               li.dropdown(class=(active == 'examples' ? 'active' : ''))
21 21
                 a.dropdown-toggle(href="#",data-toggle="dropdown") Example Wirings 
22 22
                   b.caret
23 23
                 ul.dropdown-menu
24 24
                   li
25  
-                    a(href="/example-walkLED.html") Adjustable LED Walker
  25
+                    a(href="example-walkLED.html") Adjustable LED Walker
26 26
               li
27 27
                 a(href="https://github.com/semu/noduino") View on GitHub &raquo;
28 28
             div.nav-collapse.pull-right
@@ -30,14 +30,14 @@ html(lang="en")
30 30
                 li
31 31
                   a(href="http://semu.mp") semu.mp
32 32
       a(href="#")
33  
-        img(style="position: absolute; top: 0; right: 0; border: 0; z-index: 10;",src="/images/forkme.png",alt="Fork me on GitHub")          
  33
+        img(style="position: absolute; top: 0; right: 0; border: 0; z-index: 10;",src="images/forkme.png",alt="Fork me on GitHub")          
34 34
     .container!=body
35 35
       footer.footer
36 36
         p.pull-right
37 37
           a(href="#") Back to top
38 38
         p.pull-left
39 39
           a(href="http://arduino.cc")
40  
-            img(src="/images/arduino.jpg", style="position: relative; margin-right: 18px; top: 5px; margin-left: 4px; border-radius: 3px;")
  40
+            img(src="images/arduino.jpg", style="position: relative; margin-right: 18px; top: 5px; margin-left: 4px; border-radius: 3px;")
41 41
         p The 
42 42
           a(href="https://semu.github.com/noduino") noduino
43 43
           |  project was founded in 2012 and is maintained by

No commit comments for this range

Something went wrong with that request. Please try again.