mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
This commit is contained in:
@@ -5,5 +5,5 @@
|
||||
rm -f dump_entities.csv
|
||||
make clean
|
||||
make ARGS=-DEMSESP_STANDALONE
|
||||
echo "test entity_dump" | ./emsesp | python3 ./scripts/dump_entities.py > dump_entities.csv
|
||||
echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py > dump_entities.csv
|
||||
cat dump_entities.csv
|
||||
10
scripts/dump_telegrams.sh
Executable file
10
scripts/dump_telegrams.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# creates an CSV file called "dump_telegrams.cvs" with all devices and their telegrams
|
||||
# run from top folder like `sh ./scripts/dump_telegrams.sh`
|
||||
rm -f dump_telegrams.csv
|
||||
# make clean
|
||||
# make
|
||||
make ARGS=-DEMSESP_STANDALONE
|
||||
echo "test telegram_dump" | ./emsesp | python3 ./scripts/strip_csv.py > dump_telegrams.csv
|
||||
cat dump_telegrams.csv
|
||||
@@ -1,8 +1,5 @@
|
||||
# strips out lines between two markers
|
||||
# pipe a file into, for example:
|
||||
# make clean; make; echo "test entity_dump" | ./emsesp | python3 ./scripts/dump_entities.py > dump_entities.csv
|
||||
# see dump_entities.sh
|
||||
|
||||
# pipe a file into, for example: 'cat x | python3 strip_csv.py'
|
||||
import fileinput
|
||||
with fileinput.input() as f_input:
|
||||
inRecordingMode = False
|
||||
Reference in New Issue
Block a user