Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-mqtt-gpio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Alexander Wellbrock
python-mqtt-gpio
Commits
0cc3c194
Commit
0cc3c194
authored
Oct 17, 2020
by
Ellis Percival
Browse files
Options
Downloads
Patches
Plain Diff
Add stream config schema to config.schema.yml. Add black to makefile.
parent
b6fc4e55
Branches
Branches containing commit
Tags
v2.2.4
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+4
-0
4 additions, 0 deletions
Makefile
config.schema.yml
+67
-0
67 additions, 0 deletions
config.schema.yml
pi_mqtt_gpio/modules/__init__.py
+1
-0
1 addition, 0 deletions
pi_mqtt_gpio/modules/__init__.py
with
72 additions
and
0 deletions
Makefile
+
4
−
0
View file @
0cc3c194
schema
:
schema
:
python setup.py insert_schema
python setup.py insert_schema
$(
MAKE
)
black
black
:
black
-l
90 pi_mqtt_gpio
packages
:
clean schema sdist wheel2 wheel3
packages
:
clean schema sdist wheel2 wheel3
...
...
This diff is collapsed.
Click to expand it.
config.schema.yml
+
67
−
0
View file @
0cc3c194
...
@@ -145,6 +145,27 @@ sensor_modules:
...
@@ -145,6 +145,27 @@ sensor_modules:
required
:
no
required
:
no
default
:
yes
default
:
yes
stream_modules
:
type
:
list
required
:
no
default
:
[]
schema
:
type
:
dict
allow_unknown
:
yes
schema
:
name
:
type
:
string
required
:
yes
empty
:
no
module
:
type
:
string
required
:
yes
empty
:
no
cleanup
:
type
:
boolean
required
:
no
default
:
yes
digital_inputs
:
digital_inputs
:
type
:
list
type
:
list
required
:
no
required
:
no
...
@@ -286,6 +307,52 @@ sensor_inputs:
...
@@ -286,6 +307,52 @@ sensor_inputs:
default
:
2
default
:
2
min
:
0
min
:
0
stream_reads
:
type
:
list
required
:
no
default
:
[]
schema
:
type
:
dict
allow_unknown
:
yes
schema
:
name
:
type
:
string
required
:
yes
empty
:
no
module
:
type
:
string
required
:
yes
empty
:
no
retain
:
type
:
boolean
required
:
no
default
:
no
encoding
:
type
:
string
required
:
no
interval
:
type
:
float
required
:
no
default
:
60
min
:
0.01
stream_writes
:
type
:
list
required
:
no
default
:
[]
schema
:
type
:
dict
allow_unknown
:
yes
schema
:
name
:
type
:
string
required
:
yes
empty
:
no
module
:
type
:
string
required
:
yes
empty
:
no
logging
:
logging
:
type
:
dict
type
:
dict
required
:
no
required
:
no
...
...
This diff is collapsed.
Click to expand it.
pi_mqtt_gpio/modules/__init__.py
+
1
−
0
View file @
0cc3c194
...
@@ -91,6 +91,7 @@ class GenericSensor(object):
...
@@ -91,6 +91,7 @@ class GenericSensor(object):
"""
"""
pass
pass
class
GenericStream
(
object
):
class
GenericStream
(
object
):
"""
"""
Abstracts a generic stream interface to be implemented
Abstracts a generic stream interface to be implemented
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment