Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit 304cfec

Browse files
Merge branch 'develop'
2 parents 1f2abc4 + ad763af commit 304cfec

6 files changed

Lines changed: 589 additions & 499 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [develop]
9+
schedule:
10+
- cron: '0 17 * * 0'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
# Override automatic language detection by changing the below list
21+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
22+
language: ['python']
23+
# Learn more...
24+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
with:
30+
# We must fetch at least the immediate parents so that if this is
31+
# a pull request then we can checkout the head.
32+
fetch-depth: 2
33+
34+
# If this run was triggered by a pull request event, then checkout
35+
# the head of the pull request instead of the merge commit.
36+
- run: git checkout HEAD^2
37+
if: ${{ github.event_name == 'pull_request' }}
38+
39+
# Initializes the CodeQL tools for scanning.
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v1
42+
with:
43+
languages: ${{ matrix.language }}
44+
45+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
46+
# If this step fails, then you should remove it and run the build manually (see below)
47+
- name: Autobuild
48+
uses: github/codeql-action/autobuild@v1
49+
50+
# ℹ️ Command-line programs to run using the OS shell.
51+
# 📚 https://git.io/JvXDl
52+
53+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
54+
# and modify them (or add more) to build your code if your project
55+
# uses a compiled language
56+
57+
#- run: |
58+
# make bootstrap
59+
# make release
60+
61+
- name: Perform CodeQL Analysis
62+
uses: github/codeql-action/analyze@v1

README.rst

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
Gigaset Elements API command-line interface
22
===========================================
33

4+
|Version status| |Github stars| |Github forks| |CodeQL| |Quality Gate Status| |Downloads| |BuyMeCoffee|
5+
46
gigasetelements-cli is a python based program which allows you to control your Gigaset Elements home security system.
57
It comes with an easy to use CLI (command-line interface) suitable for direct use or cron jobs.
68

7-
.. image:: https://weblog.bol.com/wp-content/uploads/2015/04/gigaset-elements.jpg
9+
.. image:: https://asset.conrad.com/media10/isa/160267/c1/-/nl/1650392_BB_00_FB/image.jpg
810
:target: https://www.gigaset-elements.com
911

10-
.. image:: https://lh3.googleusercontent.com/k8pmHPby3b76PmNXTyhhK26fp64xJjGwjVo4PmTpp4FotIcE12Na6eRBNgdKFhvlx-uI=w1920-h1080-rw-no
11-
:target: https://plus.google.com/communities/108042802009267082650
12-
1312
Installation
1413
------------
1514

@@ -19,13 +18,17 @@ For easy installation including dependencies simply run below command (with elev
1918

2019
[-] *pip install gigasetelements-cli*
2120

22-
**GITHUB** - [https://github.com/dynasticorpheus/gigaset-elements]
21+
**GITHUB** - [https://github.com/dynasticorpheus/gigasetelements-cli]
22+
23+
[1] *git clone -b develop https://github.com/dynasticorpheus/gigasetelements-cli*
2324

24-
[1] *git clone https://github.com/dynasticorpheus/gigaset-elements.git*
25+
[2] install *dependencies*, pip install -r requirements.txt (with elevated privileges if needed)
2526

26-
[2] install *dependencies*, see requirements.txt
27+
[3] *python setup.py install --force* (or run from source using wrapper ./gigasetelements-cli.py)
2728

28-
[3] *python setup.py install* (or run from source using wrapper ./gigasetelements-cli.py)
29+
**GITHUB** - [https://github.com/dynasticorpheus/gigasetelements-cli] [RECOMMENDED]
30+
31+
[1] *pip install git+https://github.com/dynasticorpheus/gigasetelements-cli@develop*
2932

3033

3134
Features
@@ -43,7 +46,6 @@ Features
4346
* Show custom rules (button/plug)
4447
* Switch plug on/off
4548
* Set alarm trigger delay
46-
* Domoticz home automation system support
4749

4850
Usage
4951
-----
@@ -128,15 +130,14 @@ To do
128130
* Improve overall code
129131
* Replicate all functionality from app and/or website ... a long list
130132
* Support for gigaset elements button
131-
* Support for domoticz home automation system
132133

133134

134135
Notes
135136
-----
136137
Been ages since I have coded and python is new for me so in other words be kind :)
137138

138139

139-
Donate
140+
Donation Hall of Fame
140141
------
141142
A lot of time & effort goes into making gigasetelements-cli so if you like it you might want to consider buying me a :beer: :)
142143

@@ -151,7 +152,26 @@ A lot of time & effort goes into making gigasetelements-cli so if you like it yo
151152
* *Joshua T*
152153
* *Auke C*
153154
* *RPC B*
155+
* *Silke H*
156+
* *Frank M*
157+
* *Max G*
158+
* *Andreas G*
154159

155160
License
156161
-------
157162
GPL2
163+
164+
.. |Version status| image:: https://img.shields.io/pypi/v/gigasetelements-cli.svg
165+
:target: https://pypi.python.org/pypi/gigasetelements-cli/
166+
.. |Downloads| image:: https://img.shields.io/pypi/dm/gigasetelements-cli.svg
167+
:target: https://pypi.python.org/pypi/gigasetelements-cli/
168+
.. |CodeQL| image:: https://github.com/dynasticorpheus/gigasetelements-cli/actions/workflows/codeql-analysis.yml/badge.svg
169+
:target: https://github.com/dynasticorpheus/gigasetelements-cli/actions/workflows/codeql-analysis.yml
170+
.. |Github forks| image:: https://img.shields.io/github/forks/dynasticorpheus/gigasetelements-cli.svg
171+
:target: https://github.com/dynasticorpheus/gigasetelements-cli/network/members/
172+
.. |Github stars| image:: https://img.shields.io/github/stars/dynasticorpheus/gigasetelements-cli.svg
173+
:target: https://github.com/dynasticorpheus/gigasetelements-cli/stargazers/
174+
.. |BuyMeCoffee| image:: https://camo.githubusercontent.com/cd005dca0ef55d7725912ec03a936d3a7c8de5b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275792532306d6525323061253230636f666665652d646f6e6174652d79656c6c6f772e737667
175+
:target: https://buymeacoffee.com/dynasticorpheus/
176+
.. |Quality Gate Status| image:: https://sonarcloud.io/api/project_badges/measure?project=dynasticorpheus_gigasetelements-cli&metric=alert_status
177+
:target: https://sonarcloud.io/summary/new_code?id=dynasticorpheus_gigasetelements-cli/

gigasetelements-cli.conf.template

Lines changed: 22 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,44 @@
22
#
33
# Note: command-line options override below values
44
#
5-
# On POSIX configuration file is automatically read from below locations:
6-
# ~/.gigasetelements-cli
5+
# The configuration file is automatically read from below locations:
6+
#
7+
# POSIX
8+
# ~/.gigasetelements-cli/gigasetelements-cli.conf
79
# /etc/gigasetelements-cli.conf
810
# /usr/etc/gigasetelements-cli.conf
911
# /usr/local/etc/gigasetelements-cli.conf
1012
# /opt/etc/gigasetelements-cli.conf
13+
#
14+
# OS X
15+
# ~/Library/Application Support/gigasetelements-cli/gigasetelements-cli.conf
16+
#
17+
# WINDOWS
18+
# %APPDATA%\gigasetelements-cli\gigasetelements-cli.conf
19+
1120

1221
[accounts]
1322

1423
# username (email) in use with my.gigaset-elements.com
15-
username: first.last@domain.com
24+
username=first.last@domain.com
1625

1726
# password in use with my.gigaset-elements.com
18-
password: mybigsecret
27+
password=mybigsecret
1928

20-
# add token to enable pushbullet notification (optional)
21-
pbtoken: z9FaKeSCKQDi2cmPUSHB62aiXx5I57eiujTOKENfS34
29+
# access token to enable pushbullet notifications (optional)
30+
# notify=z9FaKeSCKQDi2cmPUSHB62aiXx5I57eiujTOKENfS34
2231

2332

2433
[options]
2534

2635
# set modus {home,away,custom} (optional)
27-
modus: home
28-
29-
# suppress urllib3 warnings {true,false} (optional)
30-
nowarning: true
31-
32-
[domoticz]
33-
34-
# domoticz server ip address (required)
35-
ip: 127.0.0.1
36-
37-
# domoticz server port (required)
38-
port: 8080
39-
40-
# domoticz user name (optional)
41-
username:
42-
43-
# domoticz password (optional)
44-
password:
45-
46-
# domoticz idx sensor pairing (required)
47-
48-
# 1. Go to Domoticz GUI
49-
# 2. Add hardware - dummy
50-
# 3. Create a virtual sensor - type Alert for basestation (remember the idx number)
51-
# 4. Create a virtual sensor - type Manual Light/Switch for each motion/door/window/siren/plug/button/camera (remember their idx numbers)
52-
# 5. Set Off Delay to 2 seconds for virtual sensors linked to motion, button or camera
53-
# 6. Run "gigasetelements-cli -ss" to get sensor ids and match them with the their respective idx in domoticz
54-
# 7. Run "gigasetelements-cli -a" to get camera sensor id. Use the 12 uppercase digits in stream url. This MAC address can also be found on the back of the camera.
36+
# modus=home
5537

56-
# example motion/door/window/siren/plug
57-
# 123FC4577H: 99
38+
# disable SSL/TLS certificate verification {yes,no} (optional)
39+
# insecure=no
5840

59-
# example basestation id
60-
# F32A76C4DHJ1B743A0E0D74EFD2375D1: 98
41+
# suppress urllib3 warnings {yes,no} (optional)
42+
# silent=no
6143

62-
# example camera id
63-
# 7C2G30873SED: 97
44+
# Don't periodically check PyPI to determine whether a new version of gigasetelements-cli is available for download {yes,no} (optional)
45+
# noupdate=no

0 commit comments

Comments
 (0)