NetThermal
Our tiny WiFi-enabled Thermal Camera
Finally, the search for a WiFi-streaming thermal camera is over. After looking far and wide, we developed NetThermal, a tiny, DIY, WiFi-enabled thermal camera, and what's best - you can build one too! Buy the kit and follow this tutorial to start streaming thermal imagery from your drone, use it as a wireless security camera around the house, or for any DIY project that requires a thermal video stream.
NetThermal - WiFi Thermal Camera Assembly
Software Setup
Initial Setup & MJPG-Streamer
Connect to your Onion's WiFi network. It will be named something like Omega-XXXX
Complete the setup at http://192.168.3.1 (username: root, password: onioneer)
Install the legacy console
From the legacy console, install the Webcam module
Go to the Terminal and type: vi /etc/config/mjpg-streamer
Make sure the file looks like this:
config mjpg-streamer 'core'
option enabled '1'
option input 'uvc'
option output 'http'
option device '/dev/video0'
option resolution '160x120'
option yuv '1'
option quality '100'
option fps '9'
option led 'auto'
option www '/www/webcam'
option port '8080'
Save and exit (use :wq command to save and exit)
Type /etc/init.d/mjpg-streamer start in your Terminal to start streaming.
Navigate to http://192.168.3.1:8080 to see the first stream from your camera.
NOTE: The colors in this test image may not look as expected, as PT does not support MJPEG and MJPEG streamer does not support YUV. Follow the instructions below to use MOTION to solve this, and provide a true-color image from the FLIR sensor.
Motion
/etc/init.d/mjpg-streamer stop
Enable 'packages': vi /etc/opkg/distfeeds.conf
opkg update
opkg install motion
cd ../
cd etc/
vi motion.conf
Edit the following lines:
framerate 9
quality 100
stream_quality 100
stream_maxrate 9
stream_localhost off
Start Motion: motion
Navigate to http://192.168.3.1/8081 to see the first stream from your camera.
You should now also notice still images being captured in your /etc folder whenever the camera detects motion!
Change color palettes using: v4l2-ctl -c lep_cid_vid_lut_select=1
References:
https://motion-project.github.io/motion_config.html
https://www.linux.com/learn/how-operate-linux-spycams-motion
https://motion-project.github.io/index.html
https://motion-project.github.io/motion_config.html#commandlineoptions
V4L Control
Enable 'packages' and 'reboot_base': vi /etc/opkg/distfeeds.conf
opkg update
opkg install v4l-utils
Use WinSCP to copy pt1.xml to Onion from https://github.com/groupgets/purethermal1-uvc-capture/blob/master/v4l2/uvcdynctrl/pt1.xml
Import the dynamic controls: uvcdynctrl -v -d /dev/video0 -i pt1.xml
Check that the controls were successfully imported: v4l2-ctl -l
Change color palettes using: v4l2-ctl -c lep_cid_vid_lut_select=1