Added domoticz ct
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' , 'collabora' , 'jellyfin' ]
|
String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' , 'collabora' , 'jellyfin', 'domoticz' ]
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'LXCBuilder' }
|
agent { label 'LXCBuilder' }
|
||||||
|
|||||||
@@ -901,6 +901,13 @@ files:
|
|||||||
variants:
|
variants:
|
||||||
- pihole
|
- pihole
|
||||||
|
|
||||||
|
#FileForDomoticz
|
||||||
|
- path: /opt/Setup
|
||||||
|
generator: copy
|
||||||
|
source: CT-Files/domoticz
|
||||||
|
variants:
|
||||||
|
- domoticz
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
manager: apt
|
manager: apt
|
||||||
update: true
|
update: true
|
||||||
@@ -1052,6 +1059,20 @@ packages:
|
|||||||
variants:
|
variants:
|
||||||
- jellyfin
|
- jellyfin
|
||||||
|
|
||||||
|
#domoticz pkgs
|
||||||
|
- packages:
|
||||||
|
- git
|
||||||
|
- curl
|
||||||
|
- python3-dev
|
||||||
|
- cron
|
||||||
|
- libudev-dev
|
||||||
|
- libsqlite3-0
|
||||||
|
- libcurl4
|
||||||
|
- libusb-0.1
|
||||||
|
action: install
|
||||||
|
variants:
|
||||||
|
- domoticz
|
||||||
|
|
||||||
repositories:
|
repositories:
|
||||||
- name: sources.list
|
- name: sources.list
|
||||||
url: |-
|
url: |-
|
||||||
@@ -1125,7 +1146,8 @@ actions:
|
|||||||
rm /opt/Setup/Scripts/Init.sh
|
rm /opt/Setup/Scripts/Init.sh
|
||||||
variants:
|
variants:
|
||||||
- mysql
|
- mysql
|
||||||
- pihole
|
- pihole
|
||||||
|
- domoticz
|
||||||
|
|
||||||
- trigger: post-packages
|
- trigger: post-packages
|
||||||
action: |-
|
action: |-
|
||||||
|
|||||||
13
CT-Files/domoticz/Configs/domoticz.service
Normal file
13
CT-Files/domoticz/Configs/domoticz.service
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Domoticz Home Automation
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/opt/domoticz/domoticz -www 8080 -sslwww 0 -syslog
|
||||||
|
Username=domoticz
|
||||||
|
Group=domoticz
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
5
CT-Files/domoticz/Configs/setupVars.conf
Normal file
5
CT-Files/domoticz/Configs/setupVars.conf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Dest_folder=/opt/domoticz
|
||||||
|
Enable_http=true
|
||||||
|
HTTP_port=8080
|
||||||
|
Enable_https=false
|
||||||
|
HTTPS_port=443
|
||||||
24
CT-Files/domoticz/Scripts/Init.sh
Normal file
24
CT-Files/domoticz/Scripts/Init.sh
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Adding service user
|
||||||
|
adduser --system --shell /bin/bash --group --disabled-password --home /home/domoticz domoticz
|
||||||
|
#Crating folders
|
||||||
|
mkdir /opt/domoticz /etc/domoticz
|
||||||
|
|
||||||
|
#Extracting aplication
|
||||||
|
tar -C /opt/domoticz -xf /opt/Setup/domoticz.tgz
|
||||||
|
rm -rf /opt/Setup/domoticz.tgz
|
||||||
|
|
||||||
|
#Installing custom theme
|
||||||
|
git clone https://git.bprieshof.nl/DarkTheme/dark-th3me-BrammpCustom.git /opt/domoticz/www/styles/dark-th3me-BrammpCustom
|
||||||
|
|
||||||
|
#Moving config in place
|
||||||
|
mv /opt/Setup/Configs/setupVars.conf /etc/domoticz/setupVars.conf
|
||||||
|
|
||||||
|
#Install service file and enable on boot
|
||||||
|
mv /opt/Setup/Configs/domoticz.service /etc/systemd/system/domoticz.service
|
||||||
|
chmod +x /etc/systemd/system/domoticz.service
|
||||||
|
ln -s /etc/systemd/system/domoticz.service /etc/systemd/system/multi-user.target.wants/domoticz.service
|
||||||
|
|
||||||
|
#Set permissions
|
||||||
|
chown -R domoticz:domoticz /opt/domoticz
|
||||||
|
chown -R domoticz:domoticz /etc/domoticz
|
||||||
BIN
CT-Files/domoticz/domoticz.tgz
Normal file
BIN
CT-Files/domoticz/domoticz.tgz
Normal file
Binary file not shown.
10
Readme.md
10
Readme.md
@@ -25,12 +25,14 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new
|
|||||||
| pihole | Debian | Pihole CT |
|
| pihole | Debian | Pihole CT |
|
||||||
| colabora | Debian | ColaboraOffice WebService (CODE version) |
|
| colabora | Debian | ColaboraOffice WebService (CODE version) |
|
||||||
| jellyfin | Debian | Jellyfin in-home streaming server |
|
| jellyfin | Debian | Jellyfin in-home streaming server |
|
||||||
|
| domoticz | Debian | Domoticz home automation service |
|
||||||
| gitea | Alpine | Gitea server |
|
| gitea | Alpine | Gitea server |
|
||||||
| nginx | Alpine | Nginx server for reverse-proxy use |
|
| nginx | Alpine | Nginx server for reverse-proxy use |
|
||||||
| ddns | Alpine | DDNS client configured for OVH/OVH-Cloud |
|
| ddns | Alpine | DDNS client configured for OVH/OVH-Cloud |
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
Domoticz
|
**Begin original list**
|
||||||
|
|
||||||
Hass+Mqtt
|
Hass+Mqtt
|
||||||
Z2mqtt+zw2mqtt
|
Z2mqtt+zw2mqtt
|
||||||
SMB
|
SMB
|
||||||
@@ -51,7 +53,7 @@ Docker
|
|||||||
MailBackup*
|
MailBackup*
|
||||||
FileShelter/transfer.sh
|
FileShelter/transfer.sh
|
||||||
WS(x2go-xfce)
|
WS(x2go-xfce)
|
||||||
|
**End original list**
|
||||||
|
|
||||||
|
|
||||||
# Container Setup
|
# Container Setup
|
||||||
@@ -87,4 +89,6 @@ Then select the created credential and click save
|
|||||||
# colabora
|
# colabora
|
||||||
* Update the configuration in /etc/loolwsd/loolwsd.xml and reload the service `systemctl restart loolwsd`
|
* Update the configuration in /etc/loolwsd/loolwsd.xml and reload the service `systemctl restart loolwsd`
|
||||||
# jellyfin
|
# jellyfin
|
||||||
* To set-up the system follow the inital set-up wizard on http://<ip>:8096
|
* To set-up the system follow the inital set-up wizard on http://<ip>:8096
|
||||||
|
# domoticz
|
||||||
|
* Avalible on http://<ip>:8080
|
||||||
@@ -13,4 +13,5 @@ GetResource () {
|
|||||||
#PhpMyadmin for mysql variant
|
#PhpMyadmin for mysql variant
|
||||||
GetResource mysql phpmyadmin.tar.gz https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-english.tar.gz
|
GetResource mysql phpmyadmin.tar.gz https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-english.tar.gz
|
||||||
GetResource nginx nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub
|
GetResource nginx nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub
|
||||||
GetResource nginx acmesh.tar.gz https://codeload.github.com/acmesh-official/acme.sh/tar.gz/master
|
GetResource nginx acmesh.tar.gz https://codeload.github.com/acmesh-official/acme.sh/tar.gz/master
|
||||||
|
GetResource domoticz domoticz.tgz https://releases.domoticz.com/releases/release/domoticz_linux_x86_64.tgz
|
||||||
Reference in New Issue
Block a user