You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
devdesk b1a7baae19 bug fix 3 months ago
examples hertz inverted 3 months ago
src bug fix 3 months ago
.env.example add .env.example 3 months ago
.gitignore git ignore .env 3 months ago
Cargo.lock web interface 3 months ago
Cargo.toml web interface 3 months ago
README.md almost live, but horrible hack for stream capture, and not live ffmpeg, just live save of images 3 months ago
cvview.py add c to temp value 4 months ago
decode.py rewrite to use scapy.all.sniff callback parameter, better, still sucks 3 months ago
in.pcap decoder 5 months ago
listen.py almost live, but horrible hack for stream capture, and not live ffmpeg, just live save of images 3 months ago
live_vid.sh rename and include comment in live playback utilty 3 months ago
replay.py remove indicatif, add dotenv, write to stdout, gst to v4lsink, usable with ffplay, still some hiccups, not cpu related 3 months ago
requirements.txt requirements: add maturin 4 months ago
run_dhcp_server.sh try to run a dhcp server 4 months ago
run_live.sh turn into an executable instead of a library 3 months ago
run_live_debug.sh add command line options and temperature calibration 3 months ago
rustdecode.sh add rustdecode.sh 4 months ago
start.sh start.sh sets mtu and sends the start packet 3 months ago
test2.py add missing test2.py 4 months ago
test_rust.py almost live, but horrible hack for stream capture, and not live ffmpeg, just live save of images 3 months ago
thermal.mp4 almost live, but horrible hack for stream capture, and not live ffmpeg, just live save of images 3 months ago

README.md

Thermal decoder

https://telavivmakers.org/tamiwiki/projects/thermalcam

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:

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

Rust lib usage

if you don't already have a virtualenv. Linux specific, adjust to your OS.

virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
(cd thermaldecoder; maturin develop -r)
python test_rust.py