From e30209edd0e0b2d9429a4daf69936370947c22dd Mon Sep 17 00:00:00 2001 From: Nikola Date: Thu, 15 Jan 2015 18:34:05 +0100 Subject: [PATCH] -- Header BSD licence added. --- __init__.py | 48 +++++++++++ handlers/__init__.py | 40 ++++++--- handlers/dashboardHandler.py | 54 +++++++----- handlers/editorHandler.py | 54 +++++++----- handlers/loginHandler.py | 49 +++++++++++ handlers/signinHandler.py | 54 +++++++----- handlers/statsHandler.py | 54 +++++++----- handlers/updaterHandler.py | 36 +++++--- handlers/userSettingsHandler.py | 54 +++++++----- handlers/weioJSPYHandler.py | 50 +++++++++++ handlers/wifiHandler.py | 36 +++++--- productionScripts/stripMe.sh | 36 +++++--- productionScripts/weioToRAM.sh | 40 ++++++--- sandbox/base64/decode.py | 50 +++++++++++ sandbox/base64/encode.py | 50 +++++++++++ sandbox/carambolaGPIO/weioGpio.py | 36 +++++--- sandbox/changeAvahiName/changeAvahiName.py | 35 +++++--- sandbox/diskSpace/diskSpace.py | 50 +++++++++++ sandbox/downloadFromTornado/download.py | 36 +++++--- sandbox/downloadFromTornado/oneShoot.py | 35 +++++--- sandbox/getESSIDname/getAPname.py | 36 +++++--- sandbox/hashableItem/test.py | 50 +++++++++++ sandbox/login/login.html | 50 +++++++++++ sandbox/login/server.py | 50 +++++++++++ sandbox/macaddress/mac.py | 49 +++++++++++ sandbox/shellCommand/command.py | 49 +++++++++++ sandbox/shellCommand/waitMe.sh | 48 +++++++++++ sandbox/stats/diskSpace.py | 49 +++++++++++ sandbox/stats/top.py | 35 +++++--- sandbox/threadSync/__init__.py | 48 +++++++++++ sandbox/threadSync/main.py | 49 +++++++++++ sandbox/topCPU/top.py | 39 ++++++--- sandbox/updateMaker/updateMaker.py | 35 +++++--- sandbox/uperReset/adc.py | 49 +++++++++++ sandbox/uperReset/adcWeio.py | 50 +++++++++++ sandbox/weioGpioSimulator/runSimulator.py | 49 +++++++++++ sandbox/weioGpioSimulator/uper.py | 49 +++++++++++ sandbox/weioGpioSimulator/weioGpio.py | 35 +++++--- sandbox/weioGpioSimulator/weioUserApi.py | 49 +++++++++++ scripts/change_boardname.sh | 48 +++++++++++ scripts/change_root_pswd.sh | 50 +++++++++++ scripts/flash_lpc_fw.py | 49 +++++++++++ scripts/generate_ssl_key.sh | 49 +++++++++++ scripts/ledBlink.py | 49 +++++++++++ scripts/migrateConfig.py | 48 +++++++++++ scripts/post_install.sh | 49 +++++++++++ scripts/pre_install.sh | 49 +++++++++++ scripts/run_weio.sh | 49 +++++++++++ scripts/softReset.sh | 49 +++++++++++ scripts/userProjectsLinking.sh | 49 +++++++++++ scripts/wifi_set_mode.sh | 49 +++++++++++ things/__init__.py | 48 +++++++++++ things/input/__init__.py | 48 +++++++++++ things/input/distance/__init__.py | 48 +++++++++++ things/input/distance/sharp_proximity.py | 49 +++++++++++ things/input/distance/srf08.py | 49 +++++++++++ things/input/environmental/Adafruit_BMP085.py | 49 +++++++++++ things/input/environmental/__init__.py | 48 +++++++++++ things/input/environmental/am2321.py | 49 +++++++++++ things/input/environmental/dht.py | 53 +++++++----- things/input/environmental/lm75.py | 49 +++++++++++ things/input/environmental/sht1x.py | 49 +++++++++++ things/input/environmental/si70xx.py | 49 +++++++++++ things/input/mechanical/__init__.py | 48 +++++++++++ things/input/mechanical/rotary_encoder.py | 49 +++++++++++ things/input/motion/__init__.py | 48 +++++++++++ things/input/motion/mpu6050.py | 50 +++++++++++ things/input/presence/__init__.py | 48 +++++++++++ things/input/touch/__init__.py | 48 +++++++++++ things/output/__init__.py | 48 +++++++++++ things/output/display/__init__.py | 48 +++++++++++ things/output/display/hd44780.py | 56 +++++++----- things/output/motor/__init__.py | 48 +++++++++++ things/output/motor/servomotor.py | 46 +++++++++- things/output/motor/stepper.py | 50 +++++++++++ things/output/power/__init__.py | 48 +++++++++++ things/output/power/powerModule.py | 38 +++++--- updateMaker/imageTools/prepareWeioFiles.py | 35 +++++--- updateMaker/imageTools/stripWeio.sh | 49 +++++++++++ updateMaker/updateMaker.py | 35 +++++--- userProjects/__init__.py | 48 +++++++++++ userProjects/helloWorld/__init__.py | 48 +++++++++++ userProjects/helloWorld/index.html | 51 +++++++++++ userProjects/helloWorld/main.py | 49 +++++++++++ userProjects/helloWorld/weioLibs.js | 49 +++++++++++ weioLib/Adafruit_I2C.py | 49 +++++++++++ weioLib/__init__.py | 41 ++++++--- weioLib/weio.py | 39 ++++++--- weioLib/weioAvahi.py | 35 +++++--- weioLib/weioClients.py | 53 +++++++----- weioLib/weioConfig.py | 36 +++++--- weioLib/weioFiles.py | 53 +++++++----- weioLib/weioGpio.py | 54 +++++++----- weioLib/weioIO.py | 49 +++++++++++ weioLib/weioIdeGlobals.py | 36 +++++--- weioLib/weioIpAddress.py | 49 +++++++++++ weioLib/weioLm75.py | 53 +++++++----- weioLib/weioParser.py | 53 +++++++----- weioLib/weioRunnerGlobals.py | 35 +++++--- weioLib/weioSPI.py | 40 ++++++--- weioLib/weioSerial.py | 49 +++++++++++ weioLib/weioSmbus.py | 37 +++++--- weioLib/weioSubprocess.py | 36 +++++--- weioLib/weioTopStats.py | 36 +++++--- weioLib/weioUnblock.py | 39 ++++++--- weioLib/weioUserApi.py | 49 +++++++++++ weioLib/weioWifiButtons.py | 35 +++++--- weioPlayer.py | 53 +++++++----- weioRunner.py | 51 +++++++++++ weioServer.py | 54 +++++++----- weioWifi/__init__.py | 41 ++++++--- weioWifi/dumpIwInfo.py | 49 +++++++++++ weioWifi/iwInfo.py | 37 +++++--- weioWifi/weioWifi.py | 35 +++++--- www/__init__.py | 48 +++++++++++ www/dashboard.html | 51 +++++++++++ www/editor.html | 51 +++++++++++ www/error404.html | 49 +++++++++++ www/libs/css/dashboard.css | 51 +++++++++++ www/libs/css/dashboard.less | 50 +++++++++++ www/libs/css/editor.css | 50 +++++++++++ www/libs/css/editor.less | 50 +++++++++++ www/libs/css/settings.css | 50 +++++++++++ www/libs/css/settings.less | 51 +++++++++++ www/libs/weio/board.js | 83 ++++++++++-------- www/libs/weio/dashboard.js | 50 +++++++---- www/libs/weio/editor.js | 86 ++++++++++--------- www/libs/weio/settings.js | 50 +++++++---- www/libs/weio/signin.js | 40 ++++++--- www/libs/weio/stats.js | 84 ++++++++++-------- www/libs/weio/updater.js | 36 +++++--- www/libs/weio/weioApi.js | 38 +++++--- www/libs/weio/wifi.js | 36 +++++--- www/libs/weioLibs.js | 50 +++++++++++ www/login.html | 50 +++++++++++ www/settings.html | 49 +++++++++++ www/signin.html | 49 +++++++++++ www/userIndex.html | 49 +++++++++++ 138 files changed, 5650 insertions(+), 854 deletions(-) diff --git a/__init__.py b/__init__.py index e69de29b..0818e71e 100644 --- a/__init__.py +++ b/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/handlers/__init__.py b/handlers/__init__.py index cac9ec0a..a5604c64 100644 --- a/handlers/__init__.py +++ b/handlers/__init__.py @@ -14,22 +14,36 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### + diff --git a/handlers/dashboardHandler.py b/handlers/dashboardHandler.py index d6a053c4..26a97d52 100755 --- a/handlers/dashboardHandler.py +++ b/handlers/dashboardHandler.py @@ -1,39 +1,53 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### + import os, signal, sys, platform, subprocess, datetime from os.path import isfile, join diff --git a/handlers/editorHandler.py b/handlers/editorHandler.py index 97b24d3a..f95ff797 100755 --- a/handlers/editorHandler.py +++ b/handlers/editorHandler.py @@ -1,39 +1,53 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### + import os, signal, sys, platform, subprocess, datetime from tornado import web, ioloop, iostream, gen diff --git a/handlers/loginHandler.py b/handlers/loginHandler.py index f9c9265d..fe45848c 100644 --- a/handlers/loginHandler.py +++ b/handlers/loginHandler.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import base64 import uuid diff --git a/handlers/signinHandler.py b/handlers/signinHandler.py index aa4ca725..42a5b05b 100755 --- a/handlers/signinHandler.py +++ b/handlers/signinHandler.py @@ -1,39 +1,53 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### + import tornado import platform import subprocess diff --git a/handlers/statsHandler.py b/handlers/statsHandler.py index 83994d1a..9aed7f6d 100644 --- a/handlers/statsHandler.py +++ b/handlers/statsHandler.py @@ -1,39 +1,53 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### + import os, signal, sys, platform from tornado import web, ioloop, iostream, gen, httpclient diff --git a/handlers/updaterHandler.py b/handlers/updaterHandler.py index 7813f781..f9a43b42 100644 --- a/handlers/updaterHandler.py +++ b/handlers/updaterHandler.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -34,6 +47,7 @@ # ### + import os, signal, sys, platform from tornado import web, ioloop, iostream, gen, httpclient diff --git a/handlers/userSettingsHandler.py b/handlers/userSettingsHandler.py index be711935..a752db1f 100644 --- a/handlers/userSettingsHandler.py +++ b/handlers/userSettingsHandler.py @@ -1,39 +1,53 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### + from os.path import isfile, join from sockjs.tornado import SockJSRouter, SockJSConnection diff --git a/handlers/weioJSPYHandler.py b/handlers/weioJSPYHandler.py index 9cd9003a..6cb8e997 100644 --- a/handlers/weioJSPYHandler.py +++ b/handlers/weioJSPYHandler.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + from weioLib.weioIO import * import json diff --git a/handlers/wifiHandler.py b/handlers/wifiHandler.py index 5820823e..986b3565 100644 --- a/handlers/wifiHandler.py +++ b/handlers/wifiHandler.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -34,6 +47,7 @@ # ### + import os, signal, sys, platform from tornado import web, ioloop, iostream, gen diff --git a/productionScripts/stripMe.sh b/productionScripts/stripMe.sh index ad2b6ef1..d2d6d51a 100755 --- a/productionScripts/stripMe.sh +++ b/productionScripts/stripMe.sh @@ -16,19 +16,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -37,6 +50,7 @@ ### + # clean old file #rm weio.tar.bz2 diff --git a/productionScripts/weioToRAM.sh b/productionScripts/weioToRAM.sh index 20be6be4..8bcaed18 100755 --- a/productionScripts/weioToRAM.sh +++ b/productionScripts/weioToRAM.sh @@ -16,19 +16,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -36,6 +49,7 @@ # ### + # decompress to RAM tar -zxvf weioStripped.tar.bz2 -C /tmp diff --git a/sandbox/base64/decode.py b/sandbox/base64/decode.py index 4544580a..6f89b913 100644 --- a/sandbox/base64/decode.py +++ b/sandbox/base64/decode.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + f = open("base.txt","r") img = f.read() img = img.split(",")[1] # split header, for example: "data:image/jpeg;base64," diff --git a/sandbox/base64/encode.py b/sandbox/base64/encode.py index 153b6ed5..1cec1c0b 100644 --- a/sandbox/base64/encode.py +++ b/sandbox/base64/encode.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + filename = "img.jpg" tag = {"jpg":"jpeg", "png":"png", "tif":"tiff", "bmp":"bmp"} diff --git a/sandbox/carambolaGPIO/weioGpio.py b/sandbox/carambolaGPIO/weioGpio.py index e0f24f4b..1b9e39cb 100644 --- a/sandbox/carambolaGPIO/weioGpio.py +++ b/sandbox/carambolaGPIO/weioGpio.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -34,6 +47,7 @@ # ### + import os def pinMode(pin, dir) : diff --git a/sandbox/changeAvahiName/changeAvahiName.py b/sandbox/changeAvahiName/changeAvahiName.py index d1354184..88774f3c 100644 --- a/sandbox/changeAvahiName/changeAvahiName.py +++ b/sandbox/changeAvahiName/changeAvahiName.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/sandbox/diskSpace/diskSpace.py b/sandbox/diskSpace/diskSpace.py index edb368bc..3ee1fc7a 100755 --- a/sandbox/diskSpace/diskSpace.py +++ b/sandbox/diskSpace/diskSpace.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + import os from collections import namedtuple diff --git a/sandbox/downloadFromTornado/download.py b/sandbox/downloadFromTornado/download.py index 8fe01897..283249d5 100755 --- a/sandbox/downloadFromTornado/download.py +++ b/sandbox/downloadFromTornado/download.py @@ -15,19 +15,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -35,6 +48,7 @@ # ### + from tornado import ioloop, httpclient import json import hashlib diff --git a/sandbox/downloadFromTornado/oneShoot.py b/sandbox/downloadFromTornado/oneShoot.py index 63f7732a..86f54a30 100755 --- a/sandbox/downloadFromTornado/oneShoot.py +++ b/sandbox/downloadFromTornado/oneShoot.py @@ -15,19 +15,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/sandbox/getESSIDname/getAPname.py b/sandbox/getESSIDname/getAPname.py index 1eada72d..be3d899b 100644 --- a/sandbox/getESSIDname/getAPname.py +++ b/sandbox/getESSIDname/getAPname.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -34,6 +47,7 @@ # ### + import os, subprocess global pathToConfig diff --git a/sandbox/hashableItem/test.py b/sandbox/hashableItem/test.py index fa14012e..aacdd8bc 100644 --- a/sandbox/hashableItem/test.py +++ b/sandbox/hashableItem/test.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + class Pin(object): def __init__(self, pin, mode): self.pin = pin diff --git a/sandbox/login/login.html b/sandbox/login/login.html index c8a4b1fd..85fccb0d 100644 --- a/sandbox/login/login.html +++ b/sandbox/login/login.html @@ -1,3 +1,53 @@ + + + diff --git a/sandbox/login/server.py b/sandbox/login/server.py index 90061d2a..5fbd000b 100644 --- a/sandbox/login/server.py +++ b/sandbox/login/server.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + import tornado.web import tornado.ioloop import tornado.httpserver diff --git a/sandbox/macaddress/mac.py b/sandbox/macaddress/mac.py index 55de5389..a7a3dd89 100644 --- a/sandbox/macaddress/mac.py +++ b/sandbox/macaddress/mac.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from uuid import getnode as get_mac mac = get_mac() diff --git a/sandbox/shellCommand/command.py b/sandbox/shellCommand/command.py index 25d71de4..96367297 100644 --- a/sandbox/shellCommand/command.py +++ b/sandbox/shellCommand/command.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import sys #import subprocess sys.path.append('/home/drasko/nodesign/weio') diff --git a/sandbox/shellCommand/waitMe.sh b/sandbox/shellCommand/waitMe.sh index 880ab209..2b4b5fbc 100755 --- a/sandbox/shellCommand/waitMe.sh +++ b/sandbox/shellCommand/waitMe.sh @@ -1,4 +1,52 @@ #!/bin/bash +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### echo "Will Sleep.." sleep 3 diff --git a/sandbox/stats/diskSpace.py b/sandbox/stats/diskSpace.py index dd227e01..4448d0b4 100755 --- a/sandbox/stats/diskSpace.py +++ b/sandbox/stats/diskSpace.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import os from collections import namedtuple diff --git a/sandbox/stats/top.py b/sandbox/stats/top.py index b0fac509..7090f7c6 100644 --- a/sandbox/stats/top.py +++ b/sandbox/stats/top.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/sandbox/threadSync/__init__.py b/sandbox/threadSync/__init__.py index e69de29b..0818e71e 100644 --- a/sandbox/threadSync/__init__.py +++ b/sandbox/threadSync/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/sandbox/threadSync/main.py b/sandbox/threadSync/main.py index 1dc96dd2..536f930b 100644 --- a/sandbox/threadSync/main.py +++ b/sandbox/threadSync/main.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import time from weioLib.weioUserApi import * diff --git a/sandbox/topCPU/top.py b/sandbox/topCPU/top.py index 945fb089..0cdced98 100644 --- a/sandbox/topCPU/top.py +++ b/sandbox/topCPU/top.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/sandbox/updateMaker/updateMaker.py b/sandbox/updateMaker/updateMaker.py index 8419e115..c0b19a9d 100755 --- a/sandbox/updateMaker/updateMaker.py +++ b/sandbox/updateMaker/updateMaker.py @@ -15,19 +15,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/sandbox/uperReset/adc.py b/sandbox/uperReset/adc.py index 3d02f68f..cdc1d844 100644 --- a/sandbox/uperReset/adc.py +++ b/sandbox/uperReset/adc.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + """ Simple ADC value reading example with IoTPy. """ diff --git a/sandbox/uperReset/adcWeio.py b/sandbox/uperReset/adcWeio.py index 489a60c4..1387185a 100644 --- a/sandbox/uperReset/adcWeio.py +++ b/sandbox/uperReset/adcWeio.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + from weioLib.weioIO import * from weioLib import weioIO from weioLib.weioGpio import WeioGpio diff --git a/sandbox/weioGpioSimulator/runSimulator.py b/sandbox/weioGpioSimulator/runSimulator.py index 05d7a2a9..2cf1866c 100644 --- a/sandbox/weioGpioSimulator/runSimulator.py +++ b/sandbox/weioGpioSimulator/runSimulator.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from weioGpio import WeioGpio from weioUserApi import * diff --git a/sandbox/weioGpioSimulator/uper.py b/sandbox/weioGpioSimulator/uper.py index b4fc1220..6a720ff8 100644 --- a/sandbox/weioGpioSimulator/uper.py +++ b/sandbox/weioGpioSimulator/uper.py @@ -1,6 +1,55 @@ #!/usr/bin/env python # encoding: utf-8 +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + __version__ = "0.02" import struct, serial, threading, Queue, time, types, os, glob, urllib, urllib2 diff --git a/sandbox/weioGpioSimulator/weioGpio.py b/sandbox/weioGpioSimulator/weioGpio.py index e9ac0891..bfa1576a 100644 --- a/sandbox/weioGpioSimulator/weioGpio.py +++ b/sandbox/weioGpioSimulator/weioGpio.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/sandbox/weioGpioSimulator/weioUserApi.py b/sandbox/weioGpioSimulator/weioUserApi.py index 9849ed68..b49d10c4 100644 --- a/sandbox/weioGpioSimulator/weioUserApi.py +++ b/sandbox/weioGpioSimulator/weioUserApi.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from __future__ import print_function from threading import Lock, RLock import sys diff --git a/scripts/change_boardname.sh b/scripts/change_boardname.sh index 4e3fa69e..87eee625 100755 --- a/scripts/change_boardname.sh +++ b/scripts/change_boardname.sh @@ -1,4 +1,52 @@ #!/bin/sh +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### BOARD=$1 diff --git a/scripts/change_root_pswd.sh b/scripts/change_root_pswd.sh index 54215115..2e9fb1c0 100755 --- a/scripts/change_root_pswd.sh +++ b/scripts/change_root_pswd.sh @@ -1,4 +1,54 @@ #!/bin/sh + +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + echo "setting root password" echo -e "$1\n$1" | passwd echo "setting weio user SMB password. Same as root password" diff --git a/scripts/flash_lpc_fw.py b/scripts/flash_lpc_fw.py index 047ab170..7528f306 100755 --- a/scripts/flash_lpc_fw.py +++ b/scripts/flash_lpc_fw.py @@ -1,4 +1,53 @@ #!/usr/bin/python +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import os, glob, urllib, urllib2, time class Upgrader: diff --git a/scripts/generate_ssl_key.sh b/scripts/generate_ssl_key.sh index 00591f60..f28344b5 100755 --- a/scripts/generate_ssl_key.sh +++ b/scripts/generate_ssl_key.sh @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + #openssl genrsa -out weioSSL.key 2048 #openssl req -new -key weioSSL.key -out weioSSL.csr diff --git a/scripts/ledBlink.py b/scripts/ledBlink.py index 8dc3523c..3235ebab 100755 --- a/scripts/ledBlink.py +++ b/scripts/ledBlink.py @@ -1,5 +1,54 @@ #!/usr/bin/python +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import sys import time import signal diff --git a/scripts/migrateConfig.py b/scripts/migrateConfig.py index ed2e07ea..2feee10a 100755 --- a/scripts/migrateConfig.py +++ b/scripts/migrateConfig.py @@ -1,4 +1,52 @@ #!/usr/bin/python +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### import json diff --git a/scripts/post_install.sh b/scripts/post_install.sh index 9cdf0520..93477768 100755 --- a/scripts/post_install.sh +++ b/scripts/post_install.sh @@ -1,4 +1,53 @@ #!/bin/sh +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + echo "This is WeIO post install procedure" # migrating old config file to the new one diff --git a/scripts/pre_install.sh b/scripts/pre_install.sh index 2a0cd1dc..0a1676eb 100755 --- a/scripts/pre_install.sh +++ b/scripts/pre_install.sh @@ -1,4 +1,53 @@ #!/bin/sh +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + echo "This is WeIO pre install procedure" # This will backup configuration file to /tmp directory and in post install procedure will copy back to /weio directory # If any changements are required for config.weio they have to be done here in this script diff --git a/scripts/run_weio.sh b/scripts/run_weio.sh index 40a5a0d0..034b3973 100755 --- a/scripts/run_weio.sh +++ b/scripts/run_weio.sh @@ -1,4 +1,53 @@ #!/bin/sh +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + # Launching WeIO application, if application crashes WeIO will rerun automaticaly # On each exit from application script checks if an update is needed diff --git a/scripts/softReset.sh b/scripts/softReset.sh index 56e6e97b..a9311719 100755 --- a/scripts/softReset.sh +++ b/scripts/softReset.sh @@ -1,4 +1,53 @@ #!/bin/sh +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + while true; do # key pressed, blocking diff --git a/scripts/userProjectsLinking.sh b/scripts/userProjectsLinking.sh index b6eba2f6..fc4b2144 100755 --- a/scripts/userProjectsLinking.sh +++ b/scripts/userProjectsLinking.sh @@ -1,4 +1,53 @@ #!/bin/sh +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + # it creates all necessary structure # TODO SD card support to be added diff --git a/scripts/wifi_set_mode.sh b/scripts/wifi_set_mode.sh index 93d4db6f..b7e7254b 100755 --- a/scripts/wifi_set_mode.sh +++ b/scripts/wifi_set_mode.sh @@ -1,4 +1,53 @@ #!/bin/sh +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + if [ $# -eq 0 ] then echo "No arguments supplied" diff --git a/things/__init__.py b/things/__init__.py index e69de29b..0818e71e 100644 --- a/things/__init__.py +++ b/things/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/input/__init__.py b/things/input/__init__.py index e69de29b..0818e71e 100644 --- a/things/input/__init__.py +++ b/things/input/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/input/distance/__init__.py b/things/input/distance/__init__.py index e69de29b..0818e71e 100644 --- a/things/input/distance/__init__.py +++ b/things/input/distance/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/input/distance/sharp_proximity.py b/things/input/distance/sharp_proximity.py index 98a86579..aaca6574 100644 --- a/things/input/distance/sharp_proximity.py +++ b/things/input/distance/sharp_proximity.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import uper, time up = uper.Uper() diff --git a/things/input/distance/srf08.py b/things/input/distance/srf08.py index 6a4318a8..2e505deb 100755 --- a/things/input/distance/srf08.py +++ b/things/input/distance/srf08.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from time import sleep from struct import unpack, pack diff --git a/things/input/environmental/Adafruit_BMP085.py b/things/input/environmental/Adafruit_BMP085.py index 42fd2a74..8fbfe2f7 100644 --- a/things/input/environmental/Adafruit_BMP085.py +++ b/things/input/environmental/Adafruit_BMP085.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import time from weioLib.Adafruit_I2C import Adafruit_I2C diff --git a/things/input/environmental/__init__.py b/things/input/environmental/__init__.py index e69de29b..0818e71e 100644 --- a/things/input/environmental/__init__.py +++ b/things/input/environmental/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/input/environmental/am2321.py b/things/input/environmental/am2321.py index f8fbe70f..26c0da4d 100755 --- a/things/input/environmental/am2321.py +++ b/things/input/environmental/am2321.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from time import sleep from struct import unpack diff --git a/things/input/environmental/dht.py b/things/input/environmental/dht.py index f6c084fd..f5b64384 100644 --- a/things/input/environmental/dht.py +++ b/things/input/environmental/dht.py @@ -1,34 +1,47 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # diff --git a/things/input/environmental/lm75.py b/things/input/environmental/lm75.py index 19f2d02a..ea1152aa 100644 --- a/things/input/environmental/lm75.py +++ b/things/input/environmental/lm75.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from struct import unpack from weioLib.weio import * diff --git a/things/input/environmental/sht1x.py b/things/input/environmental/sht1x.py index fd470a22..1d241c93 100755 --- a/things/input/environmental/sht1x.py +++ b/things/input/environmental/sht1x.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from time import sleep LOW = 0 diff --git a/things/input/environmental/si70xx.py b/things/input/environmental/si70xx.py index edf6c4bc..cf5e14c4 100644 --- a/things/input/environmental/si70xx.py +++ b/things/input/environmental/si70xx.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from struct import unpack from IoTPy.pyuper.utils import IoTPy_ThingError diff --git a/things/input/mechanical/__init__.py b/things/input/mechanical/__init__.py index e69de29b..0818e71e 100644 --- a/things/input/mechanical/__init__.py +++ b/things/input/mechanical/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/input/mechanical/rotary_encoder.py b/things/input/mechanical/rotary_encoder.py index b4c23f04..e1f4244d 100644 --- a/things/input/mechanical/rotary_encoder.py +++ b/things/input/mechanical/rotary_encoder.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from IoTPy.pyuper.interrupt import Interrupt class RotaryEncoder: diff --git a/things/input/motion/__init__.py b/things/input/motion/__init__.py index e69de29b..0818e71e 100644 --- a/things/input/motion/__init__.py +++ b/things/input/motion/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/input/motion/mpu6050.py b/things/input/motion/mpu6050.py index efbfd787..1e28e4da 100644 --- a/things/input/motion/mpu6050.py +++ b/things/input/motion/mpu6050.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + # Ported to WeIO by Uros Petrevski # Code originally was found on Bitify : # http://blog.bitify.co.uk/2013/11/reading-data-from-mpu-6050-on-raspberry.html diff --git a/things/input/presence/__init__.py b/things/input/presence/__init__.py index e69de29b..0818e71e 100644 --- a/things/input/presence/__init__.py +++ b/things/input/presence/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/input/touch/__init__.py b/things/input/touch/__init__.py index e69de29b..0818e71e 100644 --- a/things/input/touch/__init__.py +++ b/things/input/touch/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/output/__init__.py b/things/output/__init__.py index e69de29b..0818e71e 100644 --- a/things/output/__init__.py +++ b/things/output/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/output/display/__init__.py b/things/output/display/__init__.py index e69de29b..0818e71e 100644 --- a/things/output/display/__init__.py +++ b/things/output/display/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/output/display/hd44780.py b/things/output/display/hd44780.py index 7829012e..7217d890 100644 --- a/things/output/display/hd44780.py +++ b/things/output/display/hd44780.py @@ -1,35 +1,49 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : -# Paul RATHGEB +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC # ### diff --git a/things/output/motor/__init__.py b/things/output/motor/__init__.py index e69de29b..0818e71e 100644 --- a/things/output/motor/__init__.py +++ b/things/output/motor/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/output/motor/servomotor.py b/things/output/motor/servomotor.py index 1337a23c..5153465f 100644 --- a/things/output/motor/servomotor.py +++ b/things/output/motor/servomotor.py @@ -1,6 +1,50 @@ -### +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# # Authors : # Uros PETREVSKI +# Drasko DRASKOVIC +# ### ### diff --git a/things/output/motor/stepper.py b/things/output/motor/stepper.py index 1c11a8b2..6bf8b849 100644 --- a/things/output/motor/stepper.py +++ b/things/output/motor/stepper.py @@ -1,3 +1,53 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + # Stepper motor driver # Uros Petrevski, 2014 # Implemented both full step and half-step control diff --git a/things/output/power/__init__.py b/things/output/power/__init__.py index e69de29b..0818e71e 100644 --- a/things/output/power/__init__.py +++ b/things/output/power/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/things/output/power/powerModule.py b/things/output/power/powerModule.py index 06a307df..65ac2c87 100644 --- a/things/output/power/powerModule.py +++ b/things/output/power/powerModule.py @@ -14,24 +14,40 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI +# Drasko DRASKOVIC # ### + + class PowerModule: def __init__(self, port): if (port>1): diff --git a/updateMaker/imageTools/prepareWeioFiles.py b/updateMaker/imageTools/prepareWeioFiles.py index db02098c..088e7303 100755 --- a/updateMaker/imageTools/prepareWeioFiles.py +++ b/updateMaker/imageTools/prepareWeioFiles.py @@ -15,19 +15,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/updateMaker/imageTools/stripWeio.sh b/updateMaker/imageTools/stripWeio.sh index 97322bf2..b41b5fec 100755 --- a/updateMaker/imageTools/stripWeio.sh +++ b/updateMaker/imageTools/stripWeio.sh @@ -1,4 +1,53 @@ #!/bin/bash +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + cd ../../productionScripts/ bash stripMe.sh no_compression cp -r weio $1 diff --git a/updateMaker/updateMaker.py b/updateMaker/updateMaker.py index 0cb99d21..b74b6fc0 100755 --- a/updateMaker/updateMaker.py +++ b/updateMaker/updateMaker.py @@ -15,19 +15,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/userProjects/__init__.py b/userProjects/__init__.py index e69de29b..0818e71e 100755 --- a/userProjects/__init__.py +++ b/userProjects/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/userProjects/helloWorld/__init__.py b/userProjects/helloWorld/__init__.py index e69de29b..0818e71e 100755 --- a/userProjects/helloWorld/__init__.py +++ b/userProjects/helloWorld/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/userProjects/helloWorld/index.html b/userProjects/helloWorld/index.html index 8695eca0..48a81333 100755 --- a/userProjects/helloWorld/index.html +++ b/userProjects/helloWorld/index.html @@ -1,3 +1,54 @@ + + + + diff --git a/userProjects/helloWorld/main.py b/userProjects/helloWorld/main.py index f6950fde..594fbe3b 100755 --- a/userProjects/helloWorld/main.py +++ b/userProjects/helloWorld/main.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from weioLib.weioUserApi import attach def setup(): diff --git a/userProjects/helloWorld/weioLibs.js b/userProjects/helloWorld/weioLibs.js index 554bd28f..e053a444 100644 --- a/userProjects/helloWorld/weioLibs.js +++ b/userProjects/helloWorld/weioLibs.js @@ -1,3 +1,52 @@ +/** +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + require.config({ baseUrl: '../../../../libs/' }); diff --git a/weioLib/Adafruit_I2C.py b/weioLib/Adafruit_I2C.py index 7d71fb1a..bff61bd1 100755 --- a/weioLib/Adafruit_I2C.py +++ b/weioLib/Adafruit_I2C.py @@ -1,4 +1,53 @@ #!/usr/bin/python +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from weioLib import weioSmbus as smbus diff --git a/weioLib/__init__.py b/weioLib/__init__.py index cac9ec0a..0818e71e 100644 --- a/weioLib/__init__.py +++ b/weioLib/__init__.py @@ -14,22 +14,35 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI # Drasko DRASKOVIC # -### +### \ No newline at end of file diff --git a/weioLib/weio.py b/weioLib/weio.py index 5d5795bc..3e875adc 100644 --- a/weioLib/weio.py +++ b/weioLib/weio.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/weioLib/weioAvahi.py b/weioLib/weioAvahi.py index bb435c1e..7b4fa913 100644 --- a/weioLib/weioAvahi.py +++ b/weioLib/weioAvahi.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/weioLib/weioClients.py b/weioLib/weioClients.py index 7f2b14ec..4bf26086 100644 --- a/weioLib/weioClients.py +++ b/weioLib/weioClients.py @@ -1,34 +1,47 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # diff --git a/weioLib/weioConfig.py b/weioLib/weioConfig.py index 412ab3ae..e33e6a18 100644 --- a/weioLib/weioConfig.py +++ b/weioLib/weioConfig.py @@ -14,26 +14,38 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### - # configuration file import json diff --git a/weioLib/weioFiles.py b/weioLib/weioFiles.py index 0e19c18b..c1097e52 100755 --- a/weioLib/weioFiles.py +++ b/weioLib/weioFiles.py @@ -1,34 +1,47 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # diff --git a/weioLib/weioGpio.py b/weioLib/weioGpio.py index 4a8992bc..b2afd161 100755 --- a/weioLib/weioGpio.py +++ b/weioLib/weioGpio.py @@ -1,38 +1,52 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### + from time import sleep from IoTPy.pyuper.weio import WeIO from IoTPy.core.gpio import GPIO diff --git a/weioLib/weioIO.py b/weioLib/weioIO.py index 79b2c188..bd098582 100755 --- a/weioLib/weioIO.py +++ b/weioLib/weioIO.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import platform import time from weioLib.weioLm75 import WeioLm75 diff --git a/weioLib/weioIdeGlobals.py b/weioLib/weioIdeGlobals.py index d850e44f..4bba7cdc 100644 --- a/weioLib/weioIdeGlobals.py +++ b/weioLib/weioIdeGlobals.py @@ -15,19 +15,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -35,6 +48,7 @@ # ### + ### # N.B. DO NOT IMPORT ANYTHING HERE BECOSE OF CIRCULAR DEPENDENCIES!!! # (i.e. importing a module taht imports this module) diff --git a/weioLib/weioIpAddress.py b/weioLib/weioIpAddress.py index c4a5e42a..7f159a7b 100644 --- a/weioLib/weioIpAddress.py +++ b/weioLib/weioIpAddress.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import socket import urllib import re diff --git a/weioLib/weioLm75.py b/weioLib/weioLm75.py index da4d6c5e..3167037f 100755 --- a/weioLib/weioLm75.py +++ b/weioLib/weioLm75.py @@ -1,36 +1,49 @@ # LM75B thermometer driver -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # diff --git a/weioLib/weioParser.py b/weioLib/weioParser.py index 126fe306..08b3fc59 100755 --- a/weioLib/weioParser.py +++ b/weioLib/weioParser.py @@ -1,34 +1,47 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # diff --git a/weioLib/weioRunnerGlobals.py b/weioLib/weioRunnerGlobals.py index 88aa27da..7f1b11cc 100644 --- a/weioLib/weioRunnerGlobals.py +++ b/weioLib/weioRunnerGlobals.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/weioLib/weioSPI.py b/weioLib/weioSPI.py index e772b286..8920fd78 100644 --- a/weioLib/weioSPI.py +++ b/weioLib/weioSPI.py @@ -14,24 +14,40 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : -# Paul RATHGEB +# Drasko DRASKOVIC # ### + + """This module contains functions specifically written for IoTPY SPI driver """ from weioLib.weio import initSPI diff --git a/weioLib/weioSerial.py b/weioLib/weioSerial.py index 222d0002..1382ad2b 100644 --- a/weioLib/weioSerial.py +++ b/weioLib/weioSerial.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + import serial, os from weioLib.weio import initSerial diff --git a/weioLib/weioSmbus.py b/weioLib/weioSmbus.py index 9dd2092c..b874d1d1 100644 --- a/weioLib/weioSmbus.py +++ b/weioLib/weioSmbus.py @@ -14,25 +14,40 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI # Drasko DRASKOVIC # ### + + """This module is implementation of smbus specification for IoTPY i2c driver """ from weioLib.weio import initI2C diff --git a/weioLib/weioSubprocess.py b/weioLib/weioSubprocess.py index e905d36a..9e76f6c0 100644 --- a/weioLib/weioSubprocess.py +++ b/weioLib/weioSubprocess.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -34,6 +47,7 @@ # ### + import subprocess import weioUnblock diff --git a/weioLib/weioTopStats.py b/weioLib/weioTopStats.py index 7966d7a1..9415fc91 100644 --- a/weioLib/weioTopStats.py +++ b/weioLib/weioTopStats.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI @@ -34,6 +47,7 @@ # ### + from subprocess import Popen, PIPE import os diff --git a/weioLib/weioUnblock.py b/weioLib/weioUnblock.py index 7e36d2ad..ee0b4bab 100644 --- a/weioLib/weioUnblock.py +++ b/weioLib/weioUnblock.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/weioLib/weioUserApi.py b/weioLib/weioUserApi.py index fe3b12cb..b10b7606 100755 --- a/weioLib/weioUserApi.py +++ b/weioLib/weioUserApi.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from __future__ import print_function from threading import Lock, RLock import sys, os diff --git a/weioLib/weioWifiButtons.py b/weioLib/weioWifiButtons.py index b6ca0e4e..ca7369c3 100644 --- a/weioLib/weioWifiButtons.py +++ b/weioLib/weioWifiButtons.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/weioPlayer.py b/weioPlayer.py index fbeec4f6..8262d912 100644 --- a/weioPlayer.py +++ b/weioPlayer.py @@ -1,34 +1,47 @@ -### +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # diff --git a/weioRunner.py b/weioRunner.py index 75e2aaa1..8a732581 100755 --- a/weioRunner.py +++ b/weioRunner.py @@ -1,4 +1,55 @@ #!/usr/bin/python -u + +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + + from tornado import web, ioloop, options, websocket, httpserver import sys, os, logging, platform, json, signal, datetime diff --git a/weioServer.py b/weioServer.py index 6068748c..efb4f53a 100755 --- a/weioServer.py +++ b/weioServer.py @@ -1,35 +1,49 @@ #!/usr/bin/python -### + +### # # WEIO Web Of Things Platform # Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC # All rights reserved # -# ## ## ######## #### ####### -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ###### ## ## ## -# ## ## ## ## ## ## ## -# ## ## ## ## ## ## ## +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## # ### ### ######## #### ####### # -# Web Of Things Platform +# Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors : +# Authors : # Uros PETREVSKI # Drasko DRASKOVIC # diff --git a/weioWifi/__init__.py b/weioWifi/__init__.py index cac9ec0a..0818e71e 100644 --- a/weioWifi/__init__.py +++ b/weioWifi/__init__.py @@ -14,22 +14,35 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI # Drasko DRASKOVIC # -### +### \ No newline at end of file diff --git a/weioWifi/dumpIwInfo.py b/weioWifi/dumpIwInfo.py index 6ddc93a3..f91770f9 100644 --- a/weioWifi/dumpIwInfo.py +++ b/weioWifi/dumpIwInfo.py @@ -1,3 +1,52 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### + from iwInfo import * import sys, os, logging diff --git a/weioWifi/iwInfo.py b/weioWifi/iwInfo.py index 4daef649..3b53390d 100644 --- a/weioWifi/iwInfo.py +++ b/weioWifi/iwInfo.py @@ -14,26 +14,37 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI # Drasko DRASKOVIC # -# Based on `pywilist` (https://code.google.com/p/pywilist/) -# ### import os, logging diff --git a/weioWifi/weioWifi.py b/weioWifi/weioWifi.py index f6ef6c72..d3bd1593 100644 --- a/weioWifi/weioWifi.py +++ b/weioWifi/weioWifi.py @@ -14,19 +14,32 @@ # # Web Of Things Platform # -# This file is part of WEIO -# WEIO is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This file is part of WEIO and is published under BSD license. # -# WEIO is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors : # Uros PETREVSKI diff --git a/www/__init__.py b/www/__init__.py index e69de29b..0818e71e 100644 --- a/www/__init__.py +++ b/www/__init__.py @@ -0,0 +1,48 @@ +### +# +# WEIO Web Of Things Platform +# Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +# All rights reserved +# +# ## ## ######## #### ####### +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ###### ## ## ## +# ## ## ## ## ## ## ## +# ## ## ## ## ## ## ## +# ### ### ######## #### ####### +# +# Web Of Things Platform +# +# This file is part of WEIO and is published under BSD license. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the WeIO project. +# 4. Neither the name of the WeIO nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors : +# Uros PETREVSKI +# Drasko DRASKOVIC +# +### \ No newline at end of file diff --git a/www/dashboard.html b/www/dashboard.html index 04a11cf7..fd1563a5 100644 --- a/www/dashboard.html +++ b/www/dashboard.html @@ -1,3 +1,54 @@ + + + + diff --git a/www/editor.html b/www/editor.html index 9e776e02..ec955357 100644 --- a/www/editor.html +++ b/www/editor.html @@ -1,3 +1,54 @@ + + + + diff --git a/www/error404.html b/www/error404.html index 706fafdf..9fb6d8e2 100644 --- a/www/error404.html +++ b/www/error404.html @@ -1,3 +1,52 @@ + + diff --git a/www/libs/css/dashboard.css b/www/libs/css/dashboard.css index 5b98bf15..3eb6ab5a 100644 --- a/www/libs/css/dashboard.css +++ b/www/libs/css/dashboard.css @@ -1,3 +1,54 @@ +/** +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + + + @import "../bootstrap/css/bootstrap.css"; /* Import Twitter bootstrap */ diff --git a/www/libs/css/dashboard.less b/www/libs/css/dashboard.less index fefea8a4..41f5f475 100644 --- a/www/libs/css/dashboard.less +++ b/www/libs/css/dashboard.less @@ -1,3 +1,53 @@ +/** +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + + /* Import Twitter bootstrap */ @import "../bootstrap/css/bootstrap.css"; diff --git a/www/libs/css/editor.css b/www/libs/css/editor.css index 373425d7..ee420c03 100644 --- a/www/libs/css/editor.css +++ b/www/libs/css/editor.css @@ -1,3 +1,53 @@ +/** +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + + @import "../bootstrap/css/bootstrap.css"; @import "../jqtree/jqtree.css"; diff --git a/www/libs/css/editor.less b/www/libs/css/editor.less index ddfc59f7..281f7cbe 100644 --- a/www/libs/css/editor.less +++ b/www/libs/css/editor.less @@ -1,3 +1,53 @@ +/** +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + + /* Import Twitter bootstrap */ @import "../bootstrap/css/bootstrap.css"; diff --git a/www/libs/css/settings.css b/www/libs/css/settings.css index f67bac76..dc1b9ad6 100644 --- a/www/libs/css/settings.css +++ b/www/libs/css/settings.css @@ -1,3 +1,53 @@ +/** +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + + @import "../bootstrap/css/bootstrap.css"; /* Import Twitter bootstrap */ diff --git a/www/libs/css/settings.less b/www/libs/css/settings.less index 7f7bd73e..ec079b97 100644 --- a/www/libs/css/settings.less +++ b/www/libs/css/settings.less @@ -1,3 +1,54 @@ +/** +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + + + /* Import Twitter bootstrap */ @import "../bootstrap/css/bootstrap.css"; diff --git a/www/libs/weio/board.js b/www/libs/weio/board.js index 0803ec2e..b8ab9109 100644 --- a/www/libs/weio/board.js +++ b/www/libs/weio/board.js @@ -1,40 +1,51 @@ /** - * - * WEIO Web Of Things Platform - * Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC - * All rights reserved - * - * ## ## ######## #### ####### - * ## ## ## ## ## ## ## - * ## ## ## ## ## ## ## - * ## ## ## ###### ## ## ## - * ## ## ## ## ## ## ## - * ## ## ## ## ## ## ## - * ### ### ######## #### ####### - * - * Web Of Things Platform - * - * WEIO is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * WEIO is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - * This file is part of WEIO. - * - * Authors : - * Uros PETREVSKI - * Drasko DRASKOVIC - * - * - **/ +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ var boardSocket; var socketOpened = false; diff --git a/www/libs/weio/dashboard.js b/www/libs/weio/dashboard.js index 8c8c4459..ea8637a8 100755 --- a/www/libs/weio/dashboard.js +++ b/www/libs/weio/dashboard.js @@ -4,32 +4,44 @@ * Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC * All rights reserved * -* ## ## ######## #### ####### -* ## ## ## ## ## ## ## -* ## ## ## ## ## ## ## -* ## ## ## ###### ## ## ## -* ## ## ## ## ## ## ## -* ## ## ## ## ## ## ## +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## * ### ### ######## #### ####### * * Web Of Things Platform * -* WEIO is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. +* This file is part of WEIO and is published under BSD license. * -* WEIO is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. * -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * -* This file is part of WEIO. -* -* Authors : +* Authors : * Uros PETREVSKI * Drasko DRASKOVIC * diff --git a/www/libs/weio/editor.js b/www/libs/weio/editor.js index b87ecd96..1e726b0f 100755 --- a/www/libs/weio/editor.js +++ b/www/libs/weio/editor.js @@ -1,43 +1,51 @@ /** - * - * WEIO Web Of Things Platform - * Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC - * All rights reserved - * - * ## ## ######## #### ####### - * ## ## ## ## ## ## ## - * ## ## ## ## ## ## ## - * ## ## ## ###### ## ## ## - * ## ## ## ## ## ## ## - * ## ## ## ## ## ## ## - * ### ### ######## #### ####### - * - * Web Of Things Platform - * - * WEIO is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * WEIO is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - * This file is part of WEIO. - * - * Authors : - * Uros PETREVSKI - * Drasko DRASKOVIC - * - * Special thanks to : - * Marko Sutija - great help in coding frontend - * - **/ - +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ /* * SockJS object, Web socket diff --git a/www/libs/weio/settings.js b/www/libs/weio/settings.js index a778971b..8f613284 100644 --- a/www/libs/weio/settings.js +++ b/www/libs/weio/settings.js @@ -4,32 +4,44 @@ * Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC * All rights reserved * -* ## ## ######## #### ####### -* ## ## ## ## ## ## ## -* ## ## ## ## ## ## ## -* ## ## ## ###### ## ## ## -* ## ## ## ## ## ## ## -* ## ## ## ## ## ## ## +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## * ### ### ######## #### ####### * * Web Of Things Platform * -* WEIO is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. +* This file is part of WEIO and is published under BSD license. * -* WEIO is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. * -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * -* This file is part of WEIO. -* -* Authors : +* Authors : * Uros PETREVSKI * Drasko DRASKOVIC * diff --git a/www/libs/weio/signin.js b/www/libs/weio/signin.js index 11ebcc41..f9deb768 100755 --- a/www/libs/weio/signin.js +++ b/www/libs/weio/signin.js @@ -14,20 +14,32 @@ * * Web Of Things Platform * -* WEIO is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* WEIO is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -* -* This file is part of WEIO. +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Authors : * Uros PETREVSKI diff --git a/www/libs/weio/stats.js b/www/libs/weio/stats.js index b9419721..d89ce16a 100644 --- a/www/libs/weio/stats.js +++ b/www/libs/weio/stats.js @@ -1,40 +1,52 @@ /** - * - * WEIO Web Of Things Platform - * Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC - * All rights reserved - * - * ## ## ######## #### ####### - * ## ## ## ## ## ## ## - * ## ## ## ## ## ## ## - * ## ## ## ###### ## ## ## - * ## ## ## ## ## ## ## - * ## ## ## ## ## ## ## - * ### ### ######## #### ####### - * - * Web Of Things Platform - * - * WEIO is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * WEIO is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - * This file is part of WEIO. - * - * Authors : - * Uros PETREVSKI - * Drasko DRASKOVIC - * - * - **/ +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + var statSocket; var cpuViz; diff --git a/www/libs/weio/updater.js b/www/libs/weio/updater.js index d7390516..d2e8b351 100644 --- a/www/libs/weio/updater.js +++ b/www/libs/weio/updater.js @@ -14,20 +14,32 @@ * * Web Of Things Platform * -* WEIO is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. +* This file is part of WEIO and is published under BSD license. * -* WEIO is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. * -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -* -* This file is part of WEIO. +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Authors : * Uros PETREVSKI diff --git a/www/libs/weio/weioApi.js b/www/libs/weio/weioApi.js index 8e5e3555..8e0cb499 100755 --- a/www/libs/weio/weioApi.js +++ b/www/libs/weio/weioApi.js @@ -14,22 +14,34 @@ * * Web Of Things Platform * -* WEIO is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. +* This file is part of WEIO and is published under BSD license. * -* WEIO is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. * -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * -* This file is part of WEIO. -* -* Authors : +* Authors : * Uros PETREVSKI * Drasko DRASKOVIC * diff --git a/www/libs/weio/wifi.js b/www/libs/weio/wifi.js index 971c4309..630033be 100644 --- a/www/libs/weio/wifi.js +++ b/www/libs/weio/wifi.js @@ -14,20 +14,32 @@ * * Web Of Things Platform * -* WEIO is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. +* This file is part of WEIO and is published under BSD license. * -* WEIO is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. * -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -* -* This file is part of WEIO. +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Authors : * Uros PETREVSKI diff --git a/www/libs/weioLibs.js b/www/libs/weioLibs.js index ff5df13c..38999211 100644 --- a/www/libs/weioLibs.js +++ b/www/libs/weioLibs.js @@ -1,3 +1,53 @@ +/** +* +* WEIO Web Of Things Platform +* Copyright (C) 2013 Nodesign.net, Uros PETREVSKI, Drasko DRASKOVIC +* All rights reserved +* +* ## ## ######## #### ####### +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ###### ## ## ## +* ## ## ## ## ## ## ## +* ## ## ## ## ## ## ## +* ### ### ######## #### ####### +* +* Web Of Things Platform +* +* This file is part of WEIO and is published under BSD license. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* 3. All advertising materials mentioning features or use of this software +* must display the following acknowledgement: +* This product includes software developed by the WeIO project. +* 4. Neither the name WeIO nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY WEIO PROJECT AUTHORS AND CONTRIBUTORS ''AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL WEIO PROJECT AUTHORS AND CONTRIBUTORS BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Authors : +* Uros PETREVSKI +* Drasko DRASKOVIC +* +**/ + + require.config({ baseUrl: 'www/libs/' }); diff --git a/www/login.html b/www/login.html index fd976af8..bfb4a7bb 100644 --- a/www/login.html +++ b/www/login.html @@ -1,3 +1,53 @@ + + + diff --git a/www/settings.html b/www/settings.html index 44a74ec5..5142767d 100644 --- a/www/settings.html +++ b/www/settings.html @@ -1,3 +1,52 @@ + + diff --git a/www/signin.html b/www/signin.html index 2f2100b4..1c080b65 100644 --- a/www/signin.html +++ b/www/signin.html @@ -1,3 +1,52 @@ + + diff --git a/www/userIndex.html b/www/userIndex.html index 1db0a6f9..e421c81a 100644 --- a/www/userIndex.html +++ b/www/userIndex.html @@ -1,3 +1,52 @@ + +