Questions tagged [temperature]

A simple definition of temperature is that it is a measure of heat dissipation, This tag can include programming related questions like temperature conversion, temperature detection through device sensors etc.

The temperature of a device is a quantitative measure which indicates how hot or cold the device is, temperature sensitive sensors can be used to make an alarming signal and can be programmed in various programming languages. It is measured by detection of heat radiation by a temperature sensing material, which may be then calibrated in any of various temperature scales, Celsius, Fahrenheit, Kelvin, etc.

Usage of Tag temperature

The tag temperature on stackoverflow can be used to ask questions related to programming a device or application, to sense temperature of a room/device. Tag temperature should be only used for questions related to programming, Please do not ask here questions related to physics or thermodynamics.

624 questions
3
votes
1 answer

Temperature Class in Ruby from TestFirst.org

I'm trying to solve a temperature problem in Ruby at TestFirst.org. My goal is to write code to work with test as shown below. Here is the test spec: require "10_temperature_object" describe Temperature do describe "can be constructed with an…
Guy
  • 79
  • 2
  • 12
3
votes
1 answer

NvCplGetThermalSettings call to nvcpl.dll returns false (C++)

I'm trying to retrieve GPU temperature information using the code below (not mine; slightly modified), but get a 'false' return when I attempt to call the .dll function, nvCplGetThermalSettings: HINSTANCE lib = LoadLibraryA("nvcpl.dll"); if(lib) { …
Matt
  • 65
  • 6
3
votes
3 answers

Java Swing JTextField - Only Numbers

I am making a small java Swing Applet that converts temperatures: TempConvert.java Here is my code: package swing; import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; /** Celcius to Fahrenheit Converter *…
Oliver Ni
  • 2,606
  • 7
  • 29
  • 44
3
votes
3 answers

Obtain Battery temperature in IOS programatically

How can I obtain the temperature of the Battery in IOS programatically. Also are there any API's in IOS that would give us any information on the Battery Manufacturer etc. Currently I am able to obtain the Battery level and charging status . Wanted…
sim
  • 249
  • 7
  • 17
3
votes
0 answers

DS9097E and DS18B20 temperature reading in C#

I have built an adapter DS9097E and connected to it DS18B20 digital thermometer. On the internet you can find examples of applications in Delphi and C that reads the temperature from this device. I'm trying to write it in C#. At the beginning I was…
szakal
  • 31
  • 1
  • 5
3
votes
3 answers

Arduino temperature sensor

I am trying to build a small program with arduino using a temperature-sensor. I thought I knew how to do it but I'm getting some weird outputs. Here is my code: int sensorPin = 0; void setup() { Serial.begin(9600); } void loop() { int…
Green_qaue
  • 3,561
  • 11
  • 47
  • 89
3
votes
4 answers

Where is a commercially usable dataset of temperature by zipcode by month?

Lots of web sites offer this data (see http://www.google.com/search?hl=en&q="average+temperature"+by+zip+code) but I don't see the dataset they are using. I looked at the national weather service for a bit (see for example…
dfrankow
  • 20,191
  • 41
  • 152
  • 214
2
votes
1 answer

3D Heat Equation in MATLAB

I am trying to model in MATLAB the temperature distribution inside a rectangular prism with boundary and initial conditions and heat equation I was trying to visualize 2D slices in the 3D shape. However, the simulation takes too long and when I try…
Orkiel
  • 31
  • 2
2
votes
2 answers

Need both Celsius and Fahrenheit with WeatherKit

I have a weather app that tells the temperature in Celsius and Fahrenheit at the same time. I'd like to use WeatherKit, but I'm having trouble rounding Celsius down to no decimal places. I can do it with Fahrenheit with .formatted because I'm based…
BenG94
  • 23
  • 5
2
votes
0 answers

Getting Temperature Values on LEPTON 3.5

Hi I am trying to get temperature from my thermal camera, which is Lepton 3.5 radiometric. Currently, I am having a reading of pixel values array from the mask rectangle. The code goes like this: heatmap_gray = cv2.cvtColor(frame,…
RChristan
  • 21
  • 1
2
votes
2 answers

Fetch Windows system temperature with Java

I wrote a small hack that uses Java JNA and TCP sockets to transmit battery information from a Windows 7 system to other systems on my network, and I'd now like to add thermal monitoring functionality to it. Is it possible to monitor system thermal…
Jashank Jeremy
  • 360
  • 1
  • 4
  • 14
2
votes
1 answer

Issues plotting vertical profiles with depth (or elevation) on the y axis in R using ggplot2

I collected temperature and dissolved oxygen (DO) vertical profiles (from water surface to bottom) during my field surveys in a lake. I am trying to do some data exploration/viz to figure out how to use my data. I am trying to plot all my sites in…
FishyFishies
  • 301
  • 3
  • 14
2
votes
0 answers

MassFlowSource pumping into ClosedVolume has no effect to pressure and temperature of volume in Dymola, why?

I am working a bit with Dymola now, however, while pumping (-5°C) a pulsing input of max. 100 kg/s starting at 0 kg/s into a closed volume (20°C), same medium, it has no effect to the pressure or temperature of this volume. The simulation shows that…
Cyanblue
  • 21
  • 3
2
votes
1 answer

How to properly calculate temperature advection with metpy, error with units

I'm kinda new with Metpy. I've been trying to calculate the temperature advection with Metpy but it's been unsuccessful. Since I'm new with this package, I don't understand why needs to have units to work properly. When I calculate temperature…
2
votes
0 answers

How to get the current color temperature of the camera in real time?

I need to implement the light source matching function of Sidus Link APP. The function is to open the camera preview and display the color temperature in real time. This is the related picture of the function: 1 2 3 I don’t have any ideas, and I…
Jin
  • 31
  • 2