p1 reader
v1.0.1
네덜란드 발전기의 P1 리더
GitHub 문제의 기능을 사용하여 모든 문제에 대한 도움을 요청하십시오.
Usage: [options] [command]
Options:
-? | -h | --help Show help information
Commands:
debug Show debug information
influxdb Write to influxdb
Use " [command] --help" for more information about a command.
Usage: debug [options]
Options:
-? | -h | --help Show help information
--port Serial port to read from (Example: "/dev/ttyUSB0")
--baudrate Baudrate to read serial port with (Example: 115200 or 9600)
--stopbits Stopbits to read serial port with (Example: 1)
--databits Databits to read serial port with (Example: 7 or 8)
--parity Databits to read serial port with (Example: 1 (Even) or 0 (None))
Usage: influxdb [options]
Options:
-? | -h | --help Show help information
--logging Log level to display (0 = Verbose, 1 = Debug, 2 = Information, 3 = Warning, 4 = Error, 5 = Fatal)
--port Serial port to read from (Example: "/dev/ttyUSB0")
--baudrate Baudrate to read serial port with (Example: 115200 or 9600)
--stopbits Stopbits to read serial port with (Example: 1)
--databits Databits to read serial port with (Example: 7 or 8)
--parity Databits to read serial port with (Example: 1 (Even) or 0 (None))
--influxhost InfluxDB server host
--influxdatabase InfluxDB database name
--influxusername InfluxDB database username
--influxpassword InfluxDB database password
포함 된 게시 프로필을 사용하여 폴더에 게시하십시오. Linux-Arm 폴더에서 내용을 복사하십시오.
라즈베리에서 다음 명령을 실행하십시오
sudo nano /etc/rc.local
배경에서 실행할 응용 프로그램과 함께 새 라인을 추가하십시오 (&). 예:
/home/pi/linux-arm/P1ReaderApp influxdb --port /dev/ttyUSB0 --baudrate 115200 --stopbits 1 --databits 7 --parity 1 --influxhost http://<ip>:<port> --influxdatabase p1 --influxusername <username> --influxpassword <password> &