Skip to content

Commit c0e3976

Browse files
committed
Clean up Python build artifacts and improve gitignore
- Translate sw/README.md to English - Add Python build artifacts to .gitignore - Remove __pycache__, dist/, and *.egg-info directories - Remove stray doc/image file
1 parent b250973 commit c0e3976

File tree

12 files changed

+61
-301
lines changed

12 files changed

+61
-301
lines changed

.gitignore

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,29 @@
2121
_autosave-*
2222
fp-info-cache
2323
vnev
24-
sw/sensor_logs/
24+
sw/sensor_logs/
25+
26+
# Python
27+
__pycache__/
28+
*.py[cod]
29+
*$py.class
30+
*.so
31+
.Python
32+
build/
33+
develop-eggs/
34+
dist/
35+
downloads/
36+
eggs/
37+
.eggs/
38+
lib/
39+
lib64/
40+
parts/
41+
sdist/
42+
var/
43+
wheels/
44+
pip-wheel-metadata/
45+
share/python-wheels/
46+
*.egg-info/
47+
.installed.cfg
48+
*.egg
49+
PIPFILE.lock
-468 Bytes
Binary file not shown.
-20.6 KB
Binary file not shown.

dist/amsky01-1.0.0.tar.gz

-19.7 KB
Binary file not shown.

doc/image-20251113230612.jpg

-2.73 MB
Binary file not shown.

sw/README.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,83 @@
11
# AMSKY01 Software Tools
22

3-
Nástroje pro práci se senzory AMSKY01 (MLX90641, SHT4x, TSL2591).
3+
Tools for working with AMSKY01 sensors (MLX90641, SHT4x, TSL2591).
44

5-
## Nástroje pro real-time monitoring
5+
## Real-time Monitoring Tools
66

77
### `amsky01_viewer.py`
8-
GUI vizualizátor s PyQt/PyQtGraph pro zobrazení dat v reálném čase:
9-
- IR teplotní mapa z MLX90641 (12×16 pixelů)
10-
- Teplota a vlhkost ze SHT4x včetně dew pointu
11-
- Osvětlení z TSL2591 včetně SQM
12-
- Parametry senzorů (Vdd, Ta, rohy IR mapy)
8+
GUI visualizer with PyQt/PyQtGraph for real-time data display:
9+
- IR thermal map from MLX90641 (12×16 pixels)
10+
- Temperature and humidity from SHT4x including dew point
11+
- Light from TSL2591 including SQM
12+
- Sensor parameters (Vdd, Ta, IR map corners)
1313

14-
**Použití:**
14+
**Usage:**
1515
```bash
1616
python amsky01_viewer.py --port /dev/ttyACM0 --baud 115200
17-
python amsky01_viewer.py --port /dev/ttyACM0 --debug # s výpisem komunikace
17+
python amsky01_viewer.py --port /dev/ttyACM0 --debug # with communication output
1818
```
1919

20-
**Závislosti:** `pyserial`, `numpy`, `pyqtgraph`, `PyQt5`
20+
**Dependencies:** `pyserial`, `numpy`, `pyqtgraph`, `PyQt5`
2121

2222
---
2323

2424
### `amsky01_cli.py`
25-
CLI viewer s curses rozhraním + automatické logování do CSV:
26-
- Real-time zobrazení senzorových dat v terminálu
27-
- Automatické ukládání dat do CSV souborů
28-
- Rotace log souborů každých 10 minut
25+
CLI viewer with curses interface + automatic CSV logging:
26+
- Real-time sensor data display in terminal
27+
- Automatic data saving to CSV files
28+
- Log file rotation every 10 minutes
2929

30-
**Použití:**
30+
**Usage:**
3131
```bash
3232
python amsky01_cli.py --port /dev/ttyACM0 --baud 115200
3333
```
3434

35-
**Závislosti:** `pyserial`, `curses`
35+
**Dependencies:** `pyserial`, `curses`
3636

3737
---
3838

39-
## Nástroje pro analýzu logů
39+
## Log Analysis Tools
4040

4141
### `plot_logs.py`
42-
Vykreslování grafů z uložených CSV logů:
43-
- Podpora více souborů současně
44-
- Interaktivní režim s auto-refresh
45-
- Export do PNG
42+
Plot graphs from saved CSV logs:
43+
- Support for multiple files simultaneously
44+
- Interactive mode with auto-refresh
45+
- Export to PNG
4646

47-
**Použití:**
47+
**Usage:**
4848
```bash
4949
python plot_logs.py sensor_logs/latest.csv
5050
python plot_logs.py --interactive --refresh 30 sensor_logs/*.csv
5151
python plot_logs.py --output myplot.png sensor_logs/data.csv
5252
```
5353

54-
**Závislosti:** `pandas`, `matplotlib`, `numpy`
54+
**Dependencies:** `pandas`, `matplotlib`, `numpy`
5555

5656
---
5757

5858
### `plot_latest.sh`
59-
Bash wrapper pro rychlé vykreslení logů:
59+
Bash wrapper for quick log plotting:
6060
```bash
61-
./plot_latest.sh # Vykreslí nejnovější log
62-
./plot_latest.sh --all # Vykreslí všechny logy
63-
./plot_latest.sh specific.csv # Vykreslí konkrétní soubor
61+
./plot_latest.sh # Plot latest log
62+
./plot_latest.sh --all # Plot all logs
63+
./plot_latest.sh specific.csv # Plot specific file
6464
```
6565

6666
---
6767

68-
## Formát UART zpráv
68+
## UART Message Format
6969

70-
Zařízení komunikuje přes UART rychlostí 115200 baud (konfigurovatelné). Zprávy:
70+
Device communicates via UART at 115200 baud (configurable). Messages:
7171

72-
- `$thrmap,<192 hodnot>` - IR teplotní mapa (12×16 pixelů)
73-
- `$cloud,<TL>,<TR>,<BL>,<BR>,<CENTER>` - Rohy a střed IR mapy
74-
- `$cloud_meta,<Vdd>,<Ta>` - Napětí a teplota MLX90641
75-
- `$hygro,<temp>,<humidity>,<dew_point>` - Teplota, vlhkost, rosný bod
76-
- `$light,<lux>,<full>,<ir>,<gain>,<int_time>,<sqm>` - Osvětlení a SQM
72+
- `$thrmap,<192 values>` - IR thermal map (12×16 pixels)
73+
- `$cloud,<TL>,<TR>,<BL>,<BR>,<CENTER>` - Corners and center of IR map
74+
- `$cloud_meta,<Vdd>,<Ta>` - Voltage and temperature of MLX90641
75+
- `$hygro,<temp>,<humidity>,<dew_point>` - Temperature, humidity, dew point
76+
- `$light,<lux>,<full>,<ir>,<gain>,<int_time>,<sqm>` - Light and SQM
7777

7878
---
7979

80-
## Instalace závislostí
80+
## Installing Dependencies
8181

8282
```bash
8383
pip install pyserial numpy pyqtgraph PyQt5 pandas matplotlib

sw/amsky01.egg-info/PKG-INFO

Lines changed: 0 additions & 230 deletions
This file was deleted.

sw/amsky01.egg-info/SOURCES.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)