619 B
619 B
Power Consumption Logger Example
Based on this script, you can monitor power consumption and implement graph plotting.
How to Run the Script
Install Python Virtual Environment
sudo apt install virtualenv
virtualenv venv
. venv/bin/activate
Install require package
pip install grpcio-tools requests websockets protobuf
status_pb2.py 빌드
python -m grpc_tools.protoc -I ../../proto --python_out=. status.proto
Execute script
# python3 logger.py -u <username> -p <password> <address>
python3 logger.py -u admin -p password 192.168.30.5