Skip to content

Commit 6ac22ff

Browse files
committed
Merge pull request #92 from nmarcetic/next
-- Header BSD licence added.
2 parents 95f7ce6 + e30209e commit 6ac22ff

138 files changed

Lines changed: 5650 additions & 854 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

__init__.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
###
2+
#
3+
# WEIO Web Of Things Platform
4+
# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC
5+
# All rights reserved
6+
#
7+
# ## ## ######## #### #######
8+
# ## ## ## ## ## ## ##
9+
# ## ## ## ## ## ## ##
10+
# ## ## ## ###### ## ## ##
11+
# ## ## ## ## ## ## ##
12+
# ## ## ## ## ## ## ##
13+
# ### ### ######## #### #######
14+
#
15+
# Web Of Things Platform
16+
#
17+
# This file is part of WEIO and is published under BSD license.
18+
#
19+
# Redistribution and use in source and binary forms, with or without
20+
# modification, are permitted provided that the following conditions are met:
21+
# 1. Redistributions of source code must retain the above copyright
22+
# notice, this list of conditions and the following disclaimer.
23+
# 2. Redistributions in binary form must reproduce the above copyright
24+
# notice, this list of conditions and the following disclaimer in the
25+
# documentation and/or other materials provided with the distribution.
26+
# 3. All advertising materials mentioning features or use of this software
27+
# must display the following acknowledgement:
28+
# This product includes software developed by the WeIO project.
29+
# 4. Neither the name of the WeIO nor the
30+
# names of its contributors may be used to endorse or promote products
31+
# derived from this software without specific prior written permission.
32+
#
33+
# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY
34+
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36+
# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY
37+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
40+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
42+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43+
#
44+
# Authors :
45+
# Uros PETREVSKI <uros@nodesign.net>
46+
# Drasko DRASKOVIC <drasko.draskovic@gmail.com>
47+
#
48+
###

handlers/__init__.py

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,36 @@
1414
#
1515
# Web Of Things Platform
1616
#
17-
# This file is part of WEIO
18-
# WEIO is free software: you can redistribute it and/or modify
19-
# it under the terms of the GNU General Public License as published by
20-
# the Free Software Foundation, either version 3 of the License, or
21-
# (at your option) any later version.
22-
#
23-
# WEIO is distributed in the hope that it will be useful,
24-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26-
# GNU General Public License for more details.
27-
#
28-
# You should have received a copy of the GNU General Public License
29-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
# This file is part of WEIO and is published under BSD license.
18+
#
19+
# Redistribution and use in source and binary forms, with or without
20+
# modification, are permitted provided that the following conditions are met:
21+
# 1. Redistributions of source code must retain the above copyright
22+
# notice, this list of conditions and the following disclaimer.
23+
# 2. Redistributions in binary form must reproduce the above copyright
24+
# notice, this list of conditions and the following disclaimer in the
25+
# documentation and/or other materials provided with the distribution.
26+
# 3. All advertising materials mentioning features or use of this software
27+
# must display the following acknowledgement:
28+
# This product includes software developed by the WeIO project.
29+
# 4. Neither the name of the WeIO nor the
30+
# names of its contributors may be used to endorse or promote products
31+
# derived from this software without specific prior written permission.
32+
#
33+
# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY
34+
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36+
# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY
37+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
40+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
42+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3043
#
3144
# Authors :
3245
# Uros PETREVSKI <uros@nodesign.net>
3346
# Drasko DRASKOVIC <drasko.draskovic@gmail.com>
3447
#
3548
###
49+

handlers/dashboardHandler.py

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,53 @@
1-
###
1+
###
22
#
33
# WEIO Web Of Things Platform
44
# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC
55
# All rights reserved
66
#
7-
# ## ## ######## #### #######
8-
# ## ## ## ## ## ## ##
9-
# ## ## ## ## ## ## ##
10-
# ## ## ## ###### ## ## ##
11-
# ## ## ## ## ## ## ##
12-
# ## ## ## ## ## ## ##
7+
# ## ## ######## #### #######
8+
# ## ## ## ## ## ## ##
9+
# ## ## ## ## ## ## ##
10+
# ## ## ## ###### ## ## ##
11+
# ## ## ## ## ## ## ##
12+
# ## ## ## ## ## ## ##
1313
# ### ### ######## #### #######
1414
#
15-
# Web Of Things Platform
15+
# Web Of Things Platform
1616
#
17-
# This file is part of WEIO
18-
# WEIO is free software: you can redistribute it and/or modify
19-
# it under the terms of the GNU General Public License as published by
20-
# the Free Software Foundation, either version 3 of the License, or
21-
# (at your option) any later version.
17+
# This file is part of WEIO and is published under BSD license.
2218
#
23-
# WEIO is distributed in the hope that it will be useful,
24-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26-
# GNU General Public License for more details.
19+
# Redistribution and use in source and binary forms, with or without
20+
# modification, are permitted provided that the following conditions are met:
21+
# 1. Redistributions of source code must retain the above copyright
22+
# notice, this list of conditions and the following disclaimer.
23+
# 2. Redistributions in binary form must reproduce the above copyright
24+
# notice, this list of conditions and the following disclaimer in the
25+
# documentation and/or other materials provided with the distribution.
26+
# 3. All advertising materials mentioning features or use of this software
27+
# must display the following acknowledgement:
28+
# This product includes software developed by the WeIO project.
29+
# 4. Neither the name of the WeIO nor the
30+
# names of its contributors may be used to endorse or promote products
31+
# derived from this software without specific prior written permission.
2732
#
28-
# You should have received a copy of the GNU General Public License
29-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
33+
# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY
34+
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36+
# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY
37+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
40+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
42+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3043
#
31-
# Authors :
44+
# Authors :
3245
# Uros PETREVSKI <uros@nodesign.net>
3346
# Drasko DRASKOVIC <drasko.draskovic@gmail.com>
3447
#
3548
###
3649

50+
3751
import os, signal, sys, platform, subprocess, datetime
3852
from os.path import isfile, join
3953

handlers/editorHandler.py

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,53 @@
1-
###
1+
###
22
#
33
# WEIO Web Of Things Platform
44
# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC
55
# All rights reserved
66
#
7-
# ## ## ######## #### #######
8-
# ## ## ## ## ## ## ##
9-
# ## ## ## ## ## ## ##
10-
# ## ## ## ###### ## ## ##
11-
# ## ## ## ## ## ## ##
12-
# ## ## ## ## ## ## ##
7+
# ## ## ######## #### #######
8+
# ## ## ## ## ## ## ##
9+
# ## ## ## ## ## ## ##
10+
# ## ## ## ###### ## ## ##
11+
# ## ## ## ## ## ## ##
12+
# ## ## ## ## ## ## ##
1313
# ### ### ######## #### #######
1414
#
15-
# Web Of Things Platform
15+
# Web Of Things Platform
1616
#
17-
# This file is part of WEIO
18-
# WEIO is free software: you can redistribute it and/or modify
19-
# it under the terms of the GNU General Public License as published by
20-
# the Free Software Foundation, either version 3 of the License, or
21-
# (at your option) any later version.
17+
# This file is part of WEIO and is published under BSD license.
2218
#
23-
# WEIO is distributed in the hope that it will be useful,
24-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26-
# GNU General Public License for more details.
19+
# Redistribution and use in source and binary forms, with or without
20+
# modification, are permitted provided that the following conditions are met:
21+
# 1. Redistributions of source code must retain the above copyright
22+
# notice, this list of conditions and the following disclaimer.
23+
# 2. Redistributions in binary form must reproduce the above copyright
24+
# notice, this list of conditions and the following disclaimer in the
25+
# documentation and/or other materials provided with the distribution.
26+
# 3. All advertising materials mentioning features or use of this software
27+
# must display the following acknowledgement:
28+
# This product includes software developed by the WeIO project.
29+
# 4. Neither the name of the WeIO nor the
30+
# names of its contributors may be used to endorse or promote products
31+
# derived from this software without specific prior written permission.
2732
#
28-
# You should have received a copy of the GNU General Public License
29-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
33+
# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY
34+
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36+
# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY
37+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
40+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
42+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3043
#
31-
# Authors :
44+
# Authors :
3245
# Uros PETREVSKI <uros@nodesign.net>
3346
# Drasko DRASKOVIC <drasko.draskovic@gmail.com>
3447
#
3548
###
3649

50+
3751
import os, signal, sys, platform, subprocess, datetime
3852

3953
from tornado import web, ioloop, iostream, gen

handlers/loginHandler.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
###
2+
#
3+
# WEIO Web Of Things Platform
4+
# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC
5+
# All rights reserved
6+
#
7+
# ## ## ######## #### #######
8+
# ## ## ## ## ## ## ##
9+
# ## ## ## ## ## ## ##
10+
# ## ## ## ###### ## ## ##
11+
# ## ## ## ## ## ## ##
12+
# ## ## ## ## ## ## ##
13+
# ### ### ######## #### #######
14+
#
15+
# Web Of Things Platform
16+
#
17+
# This file is part of WEIO and is published under BSD license.
18+
#
19+
# Redistribution and use in source and binary forms, with or without
20+
# modification, are permitted provided that the following conditions are met:
21+
# 1. Redistributions of source code must retain the above copyright
22+
# notice, this list of conditions and the following disclaimer.
23+
# 2. Redistributions in binary form must reproduce the above copyright
24+
# notice, this list of conditions and the following disclaimer in the
25+
# documentation and/or other materials provided with the distribution.
26+
# 3. All advertising materials mentioning features or use of this software
27+
# must display the following acknowledgement:
28+
# This product includes software developed by the WeIO project.
29+
# 4. Neither the name of the WeIO nor the
30+
# names of its contributors may be used to endorse or promote products
31+
# derived from this software without specific prior written permission.
32+
#
33+
# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY
34+
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36+
# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY
37+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
40+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
42+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43+
#
44+
# Authors :
45+
# Uros PETREVSKI <uros@nodesign.net>
46+
# Drasko DRASKOVIC <drasko.draskovic@gmail.com>
47+
#
48+
###
49+
150
import base64
251
import uuid
352

handlers/signinHandler.py

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,53 @@
1-
###
1+
###
22
#
33
# WEIO Web Of Things Platform
44
# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC
55
# All rights reserved
66
#
7-
# ## ## ######## #### #######
8-
# ## ## ## ## ## ## ##
9-
# ## ## ## ## ## ## ##
10-
# ## ## ## ###### ## ## ##
11-
# ## ## ## ## ## ## ##
12-
# ## ## ## ## ## ## ##
7+
# ## ## ######## #### #######
8+
# ## ## ## ## ## ## ##
9+
# ## ## ## ## ## ## ##
10+
# ## ## ## ###### ## ## ##
11+
# ## ## ## ## ## ## ##
12+
# ## ## ## ## ## ## ##
1313
# ### ### ######## #### #######
1414
#
15-
# Web Of Things Platform
15+
# Web Of Things Platform
1616
#
17-
# This file is part of WEIO
18-
# WEIO is free software: you can redistribute it and/or modify
19-
# it under the terms of the GNU General Public License as published by
20-
# the Free Software Foundation, either version 3 of the License, or
21-
# (at your option) any later version.
17+
# This file is part of WEIO and is published under BSD license.
2218
#
23-
# WEIO is distributed in the hope that it will be useful,
24-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26-
# GNU General Public License for more details.
19+
# Redistribution and use in source and binary forms, with or without
20+
# modification, are permitted provided that the following conditions are met:
21+
# 1. Redistributions of source code must retain the above copyright
22+
# notice, this list of conditions and the following disclaimer.
23+
# 2. Redistributions in binary form must reproduce the above copyright
24+
# notice, this list of conditions and the following disclaimer in the
25+
# documentation and/or other materials provided with the distribution.
26+
# 3. All advertising materials mentioning features or use of this software
27+
# must display the following acknowledgement:
28+
# This product includes software developed by the WeIO project.
29+
# 4. Neither the name of the WeIO nor the
30+
# names of its contributors may be used to endorse or promote products
31+
# derived from this software without specific prior written permission.
2732
#
28-
# You should have received a copy of the GNU General Public License
29-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
33+
# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY
34+
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36+
# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY
37+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
40+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
42+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3043
#
31-
# Authors :
44+
# Authors :
3245
# Uros PETREVSKI <uros@nodesign.net>
3346
# Drasko DRASKOVIC <drasko.draskovic@gmail.com>
3447
#
3548
###
3649

50+
3751
import tornado
3852
import platform
3953
import subprocess

0 commit comments

Comments
 (0)