mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
changes to #828
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# use like
|
||||
# make clean; make ARGS=-DEMSESP_STANDALONE_DUMP; echo "test dump" | ./emsesp | python3 ./scripts/dump_entities.py
|
||||
# strips out lines between two markers
|
||||
# pipe a file into, for example:
|
||||
# make clean; make ARGS=-DEMSESP_STANDALONE_DUMP; echo "test dump" | ./emsesp | python3 ./scripts/dump_entities.py
|
||||
|
||||
import fileinput
|
||||
with fileinput.input() as f_input:
|
||||
|
||||
@@ -2,4 +2,8 @@
|
||||
|
||||
# creates an CSV file called "dump_entities.cvs" with all devices and their entities
|
||||
# run from top folder like `sh ./scripts/dump_entities.sh`
|
||||
make clean; make ARGS=-DEMSESP_STANDALONE_DUMP; echo "test dump" | ./emsesp | python3 ./scripts/dump_entities.py > dump_entities.csv
|
||||
rm -f dump_entities.csv
|
||||
make clean;
|
||||
make ARGS=-DEMSESP_STANDALONE_DUMP;
|
||||
echo "test dump" | ./emsesp | python3 ./scripts/dump_entities.py > dump_entities.csv
|
||||
cat dump_entities.csv
|
||||
Reference in New Issue
Block a user