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
2d747099
Commit
2d747099
authored
5 years ago
by
Ellis Percival
Browse files
Options
Downloads
Patches
Plain Diff
Fix sensors example in readme
parent
658c14f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+25
-33
25 additions, 33 deletions
README.md
with
25 additions
and
33 deletions
README.md
+
25
−
33
View file @
2d747099
...
...
@@ -113,19 +113,33 @@ sensor_modules:
chip_addr
:
0x48
cleanup
:
no
# This optional boolean value sets whether the module's `cleanup()` function will be called when the software exits.
sensor_inputs
:
-
name
:
temperature
module
:
lm75
interval
:
15
#interval in seconds, that a value is read from the sensor and a update is published
digits
:
4
# number of digits to be round
sensor_modules
:
-
name
:
dht22
module
:
dht22
type
:
AM2302
# can be DHT11, DHT22 or AM2302
pin
:
4
-
name
:
bh1750
module
:
bh1750
i2c_bus_num
:
1
chip_addr
:
0x23
-
name
:
ds18b22
module
:
ds18b
type
:
DS18S20
address
:
000803702e49
-
name
:
hcsr04
module
:
hcsr04
pin_echo
:
27
pin_trigger
:
17
burst
:
10
# number of measurements for output of distance value in [cm]
sensor_inputs
:
-
name
:
temperature
module
:
lm75
interval
:
15
#interval in seconds, that a value is read from the sensor and a update is published
digits
:
4
# number of digits to be round
-
name
:
dht22_temperature
module
:
dht22
interval
:
10
#interval in seconds, that a value is read from the sensor and a update is published
...
...
@@ -138,38 +152,16 @@ sensor_inputs:
digits
:
4
# number of digits to be round
type
:
humidity
# Can be temperature or humidity
sensor_modules
:
-
name
:
bh1750
module
:
bh1750
i2c_bus_num
:
1
chip_addr
:
0x23
sensor_inputs
:
-
name
:
bh1750_lux
module
:
bh1750
interval
:
10
digits
:
2
sensor_modules
:
-
name
:
ds18b22
module
:
ds18b
type
:
DS18S20
address
:
000803702e49
sensor_inputs
:
-
name
:
ds18b22
module
:
ds18b22
interval
:
60
digits
:
2
sensor_modules
:
-
name
:
hcsr04
module
:
hcsr04
pin_echo
:
27
pin_trigger
:
17
burst
:
10
# number of measurements for output of distance value in [cm]
sensor_inputs
:
-
name
:
distance
module
:
hcsr04
interval
:
10
# measurement every 10s
...
...
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
register
or
sign in
to comment