×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Writing dslr temperature

6 months 3 weeks ago
Paul K
Junior Boarder
Junior Boarder
Posts: 25
More
Topic Author
Writing dslr temperature #48079
Hello, I would like to know if it is possible to add a function to write the temperature from the dslr sensor of the camera to the name of the fit file? How for example is this done in APT on Windows?

Please Log in or Create an account to join the conversation.

6 months 3 weeks ago 6 months 3 weeks ago by Ihoujin.
Ihoujin
Platinum Boarder
Platinum Boarder
Posts: 904
Karma: 3
More
Writing dslr temperature #48086
The temperature is logged in the EXIF metadata, but is generally not shown by photo editing software. It would have to be read and added to the file name.
Currently I know of only a couple tools to access that information: ExifTool by Phil Harvey, a command line application for Windows, with a GUI made separately for it. And, EXIFlog which I have not used yet, but is evidently based on ExifTool.

INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Adafruit Motor Hat shield
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
The following user(s) said Thank You Paul K

Please Log in or Create an account to join the conversation.

6 months 3 weeks ago
knro
Administrator
Administrator
Posts: 8192
Karma: 51
Writing dslr temperature #48098
It's already implemented in the INDI driver. Maybe it only works for some cameras?

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Please Log in or Create an account to join the conversation.

6 months 3 weeks ago
Paul K
Junior Boarder
Junior Boarder
Posts: 25
More
Topic Author
Writing dslr temperature #48101
Hello! I did not notice such an opportunity. I have a Canon 1100d.

Please Log in or Create an account to join the conversation.

6 months 3 weeks ago
Copello
Senior Boarder
Senior Boarder
Posts: 63
Karma: 1
More
Writing dslr temperature #48107
Hi there,

as Jasem said, it is already implemented in gphoto2 driver.
During build process it is checked whether the used libraw library supports the functionality
CHECK_STRUCT_HAS_MEMBER("libraw_imgother_t" CameraTemperature "libraw/libraw_types.h" HAVE_LIBRAW_CAMERA_TEMPERATURE LANGUAGE C)
if (HAVE_LIBRAW_CAMERA_TEMPERATURE)
  set(LIBRAW_CAMERA_TEMPERATURE 1)
  message(STATUS "Found CameraTemperature in 'libraw/libraw_types.h'")
endif ()

CHECK_STRUCT_HAS_MEMBER("libraw_imgother_t" SensorTemperature "libraw/libraw_types.h" HAVE_LIBRAW_SENSOR_TEMPERATURE LANGUAGE C)
if (HAVE_LIBRAW_SENSOR_TEMPERATURE)
  set(LIBRAW_SENSOR_TEMPERATURE 1)
  message(STATUS "Found SensorTemperature in 'libraw/libraw_types.h'")
endif ()

If libraw supports this functionality and the temperature information is also available and embedded in the DSLR RAW file, then it is read out
if (lib_raw.imgdata.other.SensorTemperature > -273.15f)
        gphoto->last_sensor_temp = lib_raw.imgdata.other.SensorTemperature;
else if (lib_raw.imgdata.other.CameraTemperature > -273.15f)
        gphoto->last_sensor_temp = lib_raw.imgdata.other.CameraTemperature;

and provided in the INDI framework, for e.g. save it as a FIT keyword.
if (isTemperatureSupported)
                {
                    double cameraTemperature = static_cast<double>(gphoto_get_last_sensor_temperature(gphotodrv));
                    if (fabs(cameraTemperature - TemperatureN[0].value) > 0.01)
                    {
                        // Check if we are getting bogus temperature values and set property to alert
                        // unless it is already set
                        if (cameraTemperature < MINUMUM_CAMERA_TEMPERATURE)
                        {
                            if (TemperatureNP.s != IPS_ALERT)
                            {
                                TemperatureNP.s = IPS_ALERT;
                                IDSetNumber(&TemperatureNP, nullptr);
                            }
                        }
                        else
                        {
                            TemperatureNP.s = IPS_OK;
                            TemperatureN[0].value = cameraTemperature;
                            IDSetNumber(&TemperatureNP, nullptr);
                        }
                    }
                }
The following user(s) said Thank You Paul K

Please Log in or Create an account to join the conversation.

6 months 3 weeks ago
Vox45
Expert Boarder
Expert Boarder
Posts: 96
More
Writing dslr temperature #48119
I come from Backyard OES where I found that feature really useful. I could not find this feature in Ekos and thought that was because I was saving as FIT files and not using the native RAW format of my Canon 1000D (CR2 files)

In BYOE I got files named like this : Light_0012_ISO800_300s__18C_M57.CR2 where "18C" is the temperature in Celsius.

I would love to see this implemented in Ekos :)

"Some people are so poor, all they have is money"
SW Black Diamond 80ED | SW150MAK | Newton SW 200/1000 | Orion 50mm Guider with Helical Focuser |Sirius EQ-G Rowan Belt Mode
Canon 1000D moded | ZWO ASI185MC | Baader Mark III Zoom
INDI | Stellarmate on RPI3B+ | Stellarium | Pixinsight

Please Log in or Create an account to join the conversation.

Time to create page: 0.456 seconds