thermalcam_decoder/README.md

39 lines
790 B
Markdown
Raw Normal View History

2023-12-26 00:06:38 +02:00
### Thermal decoder
2024-02-14 21:33:40 +02:00
https://telavivmakers.org/tamiwiki/projects/thermalcam
2023-12-29 17:06:22 +02:00
### Starting the stream
#### Enable jumbo frames
```
sudo ip link set eth0 mtu 9000
```
#### Send start packet
You need to send a special packet.
Sending it via sudo because of raw sockets:
```bash
sudo ./venv/bin/python ./replay.py
```
To send it you need the capability to open sockets in raw mode, but that does not work well with scripts (see [1]
[1] setcap for executables, not helpful for python scripts:
```
setcap cap_net_raw,cap_net_admin=eip ./replay.py
```
2023-12-29 17:06:22 +02:00
### Rust lib usage
# if you don't already have a virtualenv. Linux specific, adjust to your OS.
```bash
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
(cd thermaldecoder; maturin develop -r)
python test_rust.py
```