Skip to content

Commit

Permalink
Added new demo web
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed May 12, 2016
1 parent 0e8d756 commit e1dd9d7
Show file tree
Hide file tree
Showing 2,033 changed files with 102,788 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config_examples/web/COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (C) 2000-2016 Ake Hedman, Pradise of the Frig/Grodans Paradis AB
<[email protected]>
Copyright (c) 2015 Andreas Merkle, <[email protected]>

Licence:
The MIT License (MIT)
[OSI Approved License]

The MIT License (MIT)

Copyright (c) 2012-2016 Grodans Paradis AB (Paradise of the Frog)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Alternative licenses for VSCP & Friends may be arranged by contacting Grodans Paradis AB at [email protected], http://www.grodansparadis.com

28 changes: 28 additions & 0 deletions config_examples/web/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

The MIT License (MIT)
[OSI Approved License]

The MIT License (MIT)

Copyright (c) 2000-2016 Grodans Paradis AB (Paradise of the Frog)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Alternative licenses for VSCP & Friends may be arranged by contacting
Grodans Paradis AB at [email protected], http://www.grodansparadis.com
76 changes: 76 additions & 0 deletions config_examples/web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<h1>VSCP & Friends - HTML5 UX components</h1>

<img src="http://vscp.org/images/vscp_logo.jpg" >

This is the VSCP HTML5 user interface component framework which
can be used to create nice and responsible user interfaces experiences.

The components available here is described
<a href="http://www.vscp.org/docs/vscpd/doku.php?id=vscp_daemon_vscp_websocket_interface">in the VSCP daemon documentation</a>

If you want to know more about the <a href="http://www.vscp.org">VSCP project</a> visit the VSCP web site.

Copyright C 2012-2016 <a href="http://www.grodansparadis.com">Grodans Paradis AB (Paradise of the Frog)</a>. <[email protected]>

This is the user interface project for VSCP & Friends. It consist of two parts. A HTML5 based websocket
interface and HTML5 pages.

Released under the <a href="http://opensource.org/licenses/MIT">MIT License</a>

<h4>Getting started</h4>

On a standard system install this full source tree at /srv/vscp/web (programdata/vscp/www on windows)
or other folder set in <b>&lt;webrootpath&gt;...&lt;/webrootpath&gt;</b> directive under the
<b>&lt;websrver&gt;</b> tag in the vscpd.conf file of the VSCP daemon.

If you just want the VSCP websocket javascript code you find it in the lib folder as <b>vscpwslib.js</b> You
should probably compress this javascript file for a production system. There are plenty of them around
<a href="http://javascriptcompressor.com">this</a> is one of them.

<h4>testing</h4>

VSCP websocket test code is in the subfolder testws the index.html file in the route will take you to it
and give some further instructions. The folder contains a few demos on how to use the VSCP widgets and
demonstrates the SCP daemon websocket interface.

In the configuration file this is set as

<pre><code>
&lt;!-- Path to server root file system --&gt;
&lt;!-- Server should have read/write access to this location --&gt;
&lt;webserver enable="true" port="8080"&gt;
<webrootpath>/srv/vscp/web</webrootpath&gt;
...
...
&lt;/webserver&gt;
</code></pre>

Remember to restart the daemon if you change the configuration file.

To test that everything is working enter

<b>http://localhost:8080/testws/index.html</b>

and you should get the start page which takes you true the rest of the demo..

Some useful commands for the vanilla test window

<h5>5 Turn ON Zone=1, Subzone=35</h5>
<b>send 0,30,5,0,0,-,0,1,35</b>

<h5>6 Turn Off</h5>
<b>send 0,30,6,0,0,-,0,1,35</b>

<h5>7 Start</h5>
</b>send 0,30,7,0,0,-,0,1,35</b>

<h5>8 stop</h5>
</b>send 0,30,8,0,0,-,0,1,35</b>

send head,class,type,obid,time-stamp,GUID,data1,data2,data3....


<br><br>
<hr>
Copyright &copy; 2012-2016 <a href="http://www.grodansparadis.com">Grodans Paradis AB (Paradise of the Frog)</a>
</div>
Binary file added config_examples/web/browse.VC.db
Binary file not shown.
Binary file added config_examples/web/docs/Button.xmind
Binary file not shown.
Binary file added config_examples/web/docs/Configuration.xmind
Binary file not shown.
Binary file added config_examples/web/docs/Menu.xmind
Binary file not shown.
Binary file added config_examples/web/docs/database.xmind
Binary file not shown.
Loading

0 comments on commit e1dd9d7

Please sign in to comment.