@signalk/streams 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mdns-ws.js +1 -1
- package/package.json +1 -1
- package/pigpio-seatalk.js +5 -1
package/mdns-ws.js
CHANGED
package/package.json
CHANGED
package/pigpio-seatalk.js
CHANGED
|
@@ -29,7 +29,11 @@ import pigpio, time, signal, sys
|
|
|
29
29
|
if sys.argv[1] == "undefined":
|
|
30
30
|
gpio = 4 #Default GPIO4 if not set
|
|
31
31
|
else:
|
|
32
|
-
|
|
32
|
+
#Ggpio, info as "GPIOnn", from GUI setup. Sensing the seatalk1 (yellow wire)
|
|
33
|
+
try:
|
|
34
|
+
gpio = int(filter(str.isdigit, sys.argv[1])) #python2
|
|
35
|
+
except:
|
|
36
|
+
gpio = int("".join(filter(str.isdigit, sys.argv[1]))) #python3
|
|
33
37
|
|
|
34
38
|
if __name__ == "__main__":
|
|
35
39
|
st1read =pigpio.pi()
|