Code:
[email protected]:~$ pcp power ? [email protected]:~$
[email protected]:~$ pcp power ? [email protected]:~$
pcp power
#!/usr/local/bin/python3 import smbus import time import subprocess # Define some constants from the datasheet ADDRESS = 0x23 # I2C-Adresse des BH1750 if ADDR is seto GND #ADDRESS = 0x5C # I2C-Adresse des BH1750 if
power=subprocess.Popen(["./status.sh","power"], stdout=subprocess.PIPE) power = power.decode('ascii') print(power) 1
subprocess.run(["./status.sh","vol"]) 55 CompletedProcess(args=['./status.sh', 'vol'], returncode=0) >>> subprocess.run(["./status.sh","power"])
busybox wget -S -O- --post-data='{"id":1,"method":"slim.request","params": [ "-", [ "players", "0", "999" ] ]}' --header 'Content-Type: application/json' http://192.168.2.109:9000/jsonrpc.js Connecting to 192.168.2.109:9000
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: