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
2
votes
2 answers

Group rows of values above and below specific threshold in R

I have a data frame of furnace temperature logged over time. I would like to determine when the temperature begins increasing (furnace turns on) and when temperature starts decreasing (furnace turns off). I want to group temperatures above and below…
finc
  • 49
  • 3
2
votes
3 answers

Using C isdigit for error checking

While using the boolean check for the int num this loop doesn't work. The lines after it go unrecognized. Enter and integer like 60 and it just closes. Did I use isdigit wrong? int main() { int num; int loop = -1; while (loop ==-1) …
TwoRoses
  • 51
  • 3
  • 7
2
votes
0 answers

Calculate daily (and nightly) variables from hourly dataset using R

I have a data.frame (df1) of times (POSIXct), hourly minimum temperatures (Tmin) and hourly maximum temperatures (Tmax). I also have a data.frame (df2) of daily sunrise and sunset times. I would like to calculate average Tmin and Tmax for every…
Texanum
  • 23
  • 4
2
votes
0 answers

Reading CPU temperature with assembly

Hi i was wondering how could i read the CPU's temperature. I tried putting 0x19C in the ECX register and then calling rdmsr (to get IA32_THERM_STATUS) but the destination registries (EDX:EAX) are empty. I am using Pure64 operating system.
2
votes
1 answer

How can I get CPU temperature in Python? Assuming that I have Windows 32-bits

I have tried with psutil library using sensors_temperatures(), but it is giving me an AttributeError. Here is my code: import…
Samir Ahmane
  • 830
  • 7
  • 22
2
votes
1 answer

How to spoof cpu temperature for a VirtualBox guest?

I am following some tutorials for writing Windows drivers and testing my results on a VirtualBox guest. One of the tutorials involves using the Win32 IOCTL to pass basic information about CPU core temperature to a user-mode application. I don't want…
JSON Brody
  • 736
  • 1
  • 4
  • 23
2
votes
0 answers

Simulation of non-stationary, hourly temperature data with auto.arima in R creates explosive process

The Problem I am working on simulating a yearly series of hourly temperature data in R. The created time series should inherit characteristics of past years temperatures. Also, its important that the simulation inhabits the yearly and daily…
Julia_2019
  • 21
  • 1
2
votes
2 answers

Impossible to get cpu temperature

I have a problem with my current linux, anything I try to get temperatures through bash doesn't work. I've tried lm-sensors, all I get is gpu temp and cpu_fan (and wrong, always says 0 RPM) In /sys/class/thermal, cores are named cooling_deviceX and…
Zawz
  • 31
  • 4
2
votes
1 answer

Multiple thermocouples on raspberry pi - NAN reading when in electrical contact

I have 2 K-type thermocouples running on individual MAX31855 boards on a Raspberry Pi 3. The MAX31855 boards share a CLK pin but have separate CS and DO pins, similar to the set up given here: Multiple thermocouples on raspberry pi Everything works…
rhys_j
  • 21
  • 2
2
votes
1 answer

How to describe the temperature with Schema.org?

I want to use Schema.org (with JSON-LD) to label the value in the temperature sensor / to describe the temperature attribute (unit). I can not find an explanation of the temperature at Schema.org. I get the sensor value through MQTT, here is the…
jiki
  • 25
  • 1
  • 9
2
votes
2 answers

Temperature curve in R

I'd like to create two temperature curves in one plot. My Dataframe looks like this: temp <- read.table(text = " Time Temp1 Temp2 1 00:00 18.62800 18.54458 2 00:10 …
Takujaki
  • 23
  • 3
2
votes
2 answers

Android thermometer

Is it possible to implement a thermometer in Android? How? I know that the BatteryManager can give you the battery temperature with BatteryManager.EXTRA_TEMPERATURE, but I'm not sure if this can be used to somewhat accurately measure the external…
hpique
  • 119,096
  • 131
  • 338
  • 476
2
votes
2 answers

Conversion Between Fahrenheit and Celsius ISSUE

i have this problem from a beginning c sharp book this for conversion between Fahrenheit and Celsius. private void button1_Click(object sender, EventArgs e) { float fahr, cel; if (Celsius.Checked == true) { fahr =…
user527825
  • 23
  • 1
  • 5
2
votes
1 answer

Room temperature monitor software

There are lots of tools to see your CPU etc temperature, but I'm looking for a tool to monitor your room temperature. I don't know if my PC have the hardware to do this, but maybe it's build in? Thanks
Ruben
  • 8,956
  • 14
  • 63
  • 102
2
votes
3 answers

Convert temperature data from sensor to celsius degree

I have a sensor named LSM303DLHC ,it have 2 temp register but I can't figure it out how to convert it to degrees Celsius. 2 Reg is: TEMP_OUT_H_M register // high reg TEMP11 | TEMP10 | TEMP9 | TEMP8 | TEMP7 | TEMP6 | TEMP5 | TEMP4 …
dante
  • 984
  • 3
  • 10
  • 24