Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Penguidom
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
domotika
Penguidom
Commits
ac3280c7
Commit
ac3280c7
authored
7 years ago
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix license headers
parent
8e84257a
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
130 additions
and
40 deletions
+130
-40
clean.sh
clean.sh
+4
-4
init.sh
init.sh
+11
-12
__init__.py
penguidom/__init__.py
+22
-0
ikap.py
penguidom/ikap.py
+4
-4
imodules.py
penguidom/imodules.py
+5
-4
penguidom.py
penguidom/penguidom.py
+4
-4
pluggable.py
penguidom/pluggable.py
+22
-0
__init__.py
penguidom/plugins/__init__.py
+5
-4
__init__.py
penguidom/plugins/paradox/__init__.py
+22
-0
paradox.py
penguidom/plugins/paradox/paradox.py
+22
-0
__init__.py
penguidom/singleton/__init__.py
+4
-4
penguidomd
penguidomd
+5
-4
No files found.
clean.sh
View file @
ac3280c7
#!/bin/bash
#!/bin/bash
###########################################################################
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
unixmedia
.it>
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
nexlab
.it>
#
#
# Penguidom System
Controller Daemon "penguidomd"
# Penguidom System
client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
#
# This file is part of penguidom
d
.
# This file is part of penguidom.
#
#
# penguidom
d
is free software: you can redistribute it and/or modify
# penguidom is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
...
...
This diff is collapsed.
Click to expand it.
init.sh
View file @
ac3280c7
#!/bin/bash
#!/bin/bash
###########################################################################
###########################################################################
# Copyright (c) 2011-2014 Unixmedia S.r.l. <info@unixmedia.it>
# Copyright (c) 2018- Franco (nextime) Lanza <franco@nexlab.it>
# Copyright (c) 2011-2014 Franco (nextime) Lanza <franco@unixmedia.it>
#
#
#
Domotika System Controller Daemon "domotikad" [http://trac.unixmedia.it
]
#
Penguidom System client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom
]
#
#
# This file is part of
domotikad
.
# This file is part of
penguidom
.
#
#
#
domotikad
is free software: you can redistribute it and/or modify
#
penguidom
is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
...
@@ -23,16 +22,16 @@
...
@@ -23,16 +22,16 @@
##############################################################################
##############################################################################
### BEGIN INIT INFO
### BEGIN INIT INFO
# Provides:
domotika
d
# Provides:
penguidom
d
# Required-Start: $syslog $remote_fs
mysql
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# X-Interactive: yes
# X-Interactive: yes
# Should-Start: $network
# Should-Start: $network
# Should-Stop: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Default-Stop: 0 1 6
# Short-Description: Start and stop
Domotika
# Short-Description: Start and stop
Penguidomd
# Description:
Domotika is an home automation
system
# Description:
Linux client support for Domotika
system
### END INIT INFO
### END INIT INFO
#if [ -f /usr/lib/bindhack.so ] ; then
#if [ -f /usr/lib/bindhack.so ] ; then
...
@@ -40,10 +39,10 @@
...
@@ -40,10 +39,10 @@
# export BIND_SRC=192.168.181.1
# export BIND_SRC=192.168.181.1
#fi
#fi
cd
/home/
domotika
cd
/home/
penguidom
./
domotika
d
$@
./
penguidom
d
$@
if
[
x
"
$1
"
=
x
"stop"
]
;
then
if
[
x
"
$1
"
=
x
"stop"
]
;
then
chk
=
$(
pgrep
"
domotika
d"
)
chk
=
$(
pgrep
"
penguidom
d"
)
if
[
x
"
$chk
"
!=
x
""
]
;
then
if
[
x
"
$chk
"
!=
x
""
]
;
then
kill
-9
$chk
>
/dev/null 2>&1
kill
-9
$chk
>
/dev/null 2>&1
fi
fi
...
...
This diff is collapsed.
Click to expand it.
penguidom/__init__.py
View file @
ac3280c7
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@nexlab.it>
#
# Penguidom System client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
# This file is part of penguidom.
#
# penguidom 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 program 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
This diff is collapsed.
Click to expand it.
penguidom/ikap.py
View file @
ac3280c7
###########################################################################
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
unixmedia
.it>
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
nexlab
.it>
#
#
# Penguidom System
Controller Daemon "penguidomd"
# Penguidom System
client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
#
# This file is part of penguidom
d
.
# This file is part of penguidom.
#
#
# penguidom
d
is free software: you can redistribute it and/or modify
# penguidom is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
...
...
This diff is collapsed.
Click to expand it.
penguidom/imodules.py
View file @
ac3280c7
###########################################################################
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
unixmedia
.it>
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
nexlab
.it>
#
#
# Penguidom System
Controller Daemon "penguidomd"
# Penguidom System
client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
#
# This file is part of penguidom
d
.
# This file is part of penguidom.
#
#
# penguidom
d
is free software: you can redistribute it and/or modify
# penguidom is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
##############################################################################
##############################################################################
from
zope.interface
import
Interface
,
Attribute
from
zope.interface
import
Interface
,
Attribute
from
zope.interface
import
implements
from
zope.interface
import
implements
from
twisted.python
import
reflect
from
twisted.python
import
reflect
...
...
This diff is collapsed.
Click to expand it.
penguidom/penguidom.py
View file @
ac3280c7
###########################################################################
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
unixmedia
.it>
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
nexlab
.it>
#
#
# Penguidom System
Controller Daemon "penguidomd"
# Penguidom System
client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
#
# This file is part of penguidom
d
.
# This file is part of penguidom.
#
#
# penguidom
d
is free software: you can redistribute it and/or modify
# penguidom is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
...
...
This diff is collapsed.
Click to expand it.
penguidom/pluggable.py
View file @
ac3280c7
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@nexlab.it>
#
# Penguidom System client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
# This file is part of penguidom.
#
# penguidom 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 program 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
import
logging
import
logging
import
os
,
sys
import
os
,
sys
import
imodules
,
plugins
import
imodules
,
plugins
...
...
This diff is collapsed.
Click to expand it.
penguidom/plugins/__init__.py
View file @
ac3280c7
###########################################################################
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
unixmedia
.it>
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
nexlab
.it>
#
#
# Penguidom System
Controller Daemon "penguidomd"
# Penguidom System
client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
#
# This file is part of penguidom
d
.
# This file is part of penguidom.
#
#
# penguidom
d
is free software: you can redistribute it and/or modify
# penguidom is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
##############################################################################
##############################################################################
# This is a twisted plugin directory
# This is a twisted plugin directory
try
:
try
:
from
twisted.plugin
import
pluginPackagePaths
from
twisted.plugin
import
pluginPackagePaths
...
...
This diff is collapsed.
Click to expand it.
penguidom/plugins/paradox/__init__.py
View file @
ac3280c7
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@nexlab.it>
#
# Penguidom System client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
# This file is part of penguidom.
#
# penguidom 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 program 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
from
paradox
import
Paradox
from
paradox
import
Paradox
plugin
=
Paradox
()
plugin
=
Paradox
()
This diff is collapsed.
Click to expand it.
penguidom/plugins/paradox/paradox.py
View file @
ac3280c7
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@nexlab.it>
#
# Penguidom System client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
# This file is part of penguidom.
#
# penguidom 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 program 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
from
penguidom
import
imodules
from
penguidom
import
imodules
from
zope.interface
import
implements
from
zope.interface
import
implements
from
twisted.plugin
import
IPlugin
from
twisted.plugin
import
IPlugin
...
...
This diff is collapsed.
Click to expand it.
penguidom/singleton/__init__.py
View file @
ac3280c7
###########################################################################
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
unixmedia
.it>
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
nexlab
.it>
#
#
# Penguidom System
Controller Daemon "penguidomd"
# Penguidom System
client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
#
# This file is part of penguidom
d
.
# This file is part of penguidom.
#
#
# penguidom
d
is free software: you can redistribute it and/or modify
# penguidom is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
...
...
This diff is collapsed.
Click to expand it.
penguidomd
View file @
ac3280c7
#!/usr/bin/env python
#!/usr/bin/env python
###########################################################################
###########################################################################
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
unixmedia
.it>
# Copyright (c) 2018- Franco (nextime) Lanza <franco@
nexlab
.it>
#
#
# Penguidom System
Controller Daemon "penguidomd"
# Penguidom System
client Daemon "penguidomd" [https://git.nexlab.net/domotika/Penguidom]
#
#
# This file is part of penguidom
d
.
# This file is part of penguidom.
#
#
# penguidom
d
is free software: you can redistribute it and/or modify
# penguidom is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#
#
##############################################################################
##############################################################################
from
twisted.internet
import
epollreactor
from
twisted.internet
import
epollreactor
epollreactor
.
install
()
epollreactor
.
install
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment