Skip to content

Commit c0ceb42

Browse files
committed
updated readme
1 parent 51eba62 commit c0ceb42

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

.gitignore

-5
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@ cython_debug/
144144

145145
### VisualStudioCode ###
146146
.vscode/*
147-
!.vscode/settings.json
148-
!.vscode/tasks.json
149-
!.vscode/launch.json
150-
!.vscode/extensions.json
151147
*.code-workspace
152148

153149
# Local History for Visual Studio Code
@@ -159,4 +155,3 @@ cython_debug/
159155
.ionide
160156

161157
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python
162-
.vscode/settings.json

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
Paradox Spectra 1738 Serial to Home Assistant MQTT Integration
1+
# Paradox Spectra 1738 Serial to MQTT
22

33
This Python script was made to run on Raspberry Pi B+ connected to the serial port of the Paradox Spectra 1738 alarm panel.
44

5-
Usage:
6-
7-
docker build -t paradox .
8-
9-
docker run -d --network host --device /dev/ttyAMA0:/dev/ttyAMA0 --restart always paradox
5+
## Running with docker
6+
* Set the IP address or hostname of your MQTT broker in the file config.yaml
7+
* Build the image
8+
`docker build -t paradox2mqtt .`
9+
* Run the container
10+
`docker run -d --device /dev/ttyAMA0:/dev/ttyAMA0 --restart=unless-stopped paradox2mqtt`
11+
12+
config.yaml can be mounted to /usr/src/app/config.yaml at the run command (`-v $(pwd)/config.yaml:/usr/src/app/config.yaml`) to apply a modified configuration without rebuilding the image.

paradox2mqtt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ def main():
133133

134134

135135
if __name__ == '__main__':
136-
main()
136+
main()

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pyyaml==5.4
22
pyserial==3.5
3-
paho-mqtt==1.5
3+
paho-mqtt==1.5

0 commit comments

Comments
 (0)