Skip to content

Commit c458fc3

Browse files
committed
0.4.0 Temperature
1 parent 808d25f commit c458fc3

File tree

20 files changed

+174
-43
lines changed

20 files changed

+174
-43
lines changed

libraries/Temperature/CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,23 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.4.0] - 2025-06-26
10+
- add discomfortIndex
11+
- add example
12+
- update unit tests
13+
- update keywords.txt
14+
- update readme.md
15+
- minor edits
16+
17+
----
18+
919
## [0.3.7] - 2023-11-12
1020
- update readme.md
1121
- renamed TEMPERATURE_VERSION => TEMPERATURE_LIB_VERSION
1222
- updated examples to show LIB version
1323
- update keywords.txt
1424
- minor edits
1525

16-
1726
## [0.3.6] - 2023-02-17
1827
- add **absoluteHumidity(TC, RH)** from relative humidity
1928
- add **boilingFahrenheit(feet)** boiling temperature Fahrenheit at height in feet.

libraries/Temperature/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2015-2024 Rob Tillaart
3+
Copyright (c) 2015-2025 Rob Tillaart
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

libraries/Temperature/examples/boilingPoint_test/boilingPoint_test.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: Demo for boiling point formula
55
// URL: https://github.com/RobTillaart/Temperature
6-
//
76

87

98
#include "temperature.h"
@@ -14,6 +13,7 @@ uint32_t stop, start;
1413
void setup()
1514
{
1615
Serial.begin(115200);
16+
Serial.println();
1717
Serial.println(__FILE__);
1818
Serial.print("TEMPERATURE_LIB_VERSION: ");
1919
Serial.println(TEMPERATURE_LIB_VERSION);
@@ -49,7 +49,7 @@ void setup()
4949
Serial.print("\n");
5050
}
5151
Serial.println();
52-
52+
5353
for (float temp = 100; temp >= 98; temp -= 0.1)
5454
{
5555
Serial.print(temp);

libraries/Temperature/examples/dewpoint_test/dewpoint_test.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// FILE: dewpoint_test.ino
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: demo
5-
// DATE: 2020-04-04
5+
// URL: https://github.com/RobTillaart/Temperature
66

77

88
#include "temperature.h"
@@ -19,6 +19,7 @@ volatile float dp;
1919
void setup()
2020
{
2121
Serial.begin(115200);
22+
Serial.println();
2223
Serial.println(__FILE__);
2324
Serial.print("TEMPERATURE_LIB_VERSION: ");
2425
Serial.println(TEMPERATURE_LIB_VERSION);
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
//
2+
// FILE: discomfortIndex_test.ino
3+
// AUTHOR: Rob Tillaart
4+
// PURPOSE: demo
5+
// URL: https://github.com/RobTillaart/Temperature
6+
7+
8+
#include "temperature.h"
9+
10+
void setup()
11+
{
12+
Serial.begin(115200);
13+
Serial.println();
14+
Serial.println(__FILE__);
15+
Serial.print("TEMPERATURE_LIB_VERSION: ");
16+
Serial.println(TEMPERATURE_LIB_VERSION);
17+
Serial.println();
18+
19+
/*
20+
for (int RH = 10; RH < 100; RH += 10)
21+
{
22+
for (int TC = 10; TC <= 50; TC += 5)
23+
{
24+
float DI = discomfortIndex(TC, RH);
25+
float TT = DI2Celsius(DI, RH);
26+
27+
Serial.print(RH);
28+
Serial.print('\t');
29+
Serial.print(TC);
30+
Serial.print('\t');
31+
Serial.print(DI, 1);
32+
Serial.print('\t');
33+
Serial.print(TT - TC, 1);
34+
Serial.println();
35+
}
36+
Serial.println();
37+
}
38+
*/
39+
40+
// print MATRIX
41+
Serial.print(" RH\t");
42+
for (int RH = 10; RH < 100; RH += 5)
43+
{
44+
Serial.print(RH);
45+
Serial.print('\t');
46+
}
47+
Serial.println();
48+
Serial.println("TC");
49+
50+
for (int TC = 10; TC <= 50; TC += 5)
51+
{
52+
Serial.print(TC);
53+
Serial.print('\t');
54+
for (int RH = 10; RH < 100; RH += 5)
55+
{
56+
float DI = discomfortIndex(TC, RH);
57+
Serial.print(DI, 1);
58+
Serial.print('\t');
59+
}
60+
Serial.println();
61+
}
62+
Serial.println();
63+
64+
Serial.print("\nDone...");
65+
}
66+
67+
68+
void loop()
69+
{
70+
}
71+
72+
73+
// -- END OF FILE --

libraries/Temperature/examples/heatindexC_table/heatindexC_table.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// FILE: heatindexC_table.ino
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: demo
5-
// DATE: 2020-04-04
5+
// URL: https://github.com/RobTillaart/Temperature
66

77

88
#include "temperature.h"
@@ -14,6 +14,7 @@ volatile float hi;
1414
void setup()
1515
{
1616
Serial.begin(115200);
17+
Serial.println();
1718
Serial.println(__FILE__);
1819
Serial.print("TEMPERATURE_LIB_VERSION: ");
1920
Serial.println(TEMPERATURE_LIB_VERSION);

libraries/Temperature/examples/heatindexC_test/heatindexC_test.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// FILE: heatindexC_test.ino
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: demo - test average performance per call in micros.
5-
// DATE: 2020-04-04
5+
// URL: https://github.com/RobTillaart/Temperature
66

77

88
#include "temperature.h"
@@ -17,6 +17,7 @@ volatile float hi;
1717
void setup()
1818
{
1919
Serial.begin(115200);
20+
Serial.println();
2021
Serial.println(__FILE__);
2122
Serial.print("TEMPERATURE_LIB_VERSION: ");
2223
Serial.println(TEMPERATURE_LIB_VERSION);

libraries/Temperature/examples/heatindex_table/heatindex_table.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// FILE: heatindex_table.ino
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: demo
5-
// DATE: 2020-04-04
5+
// URL: https://github.com/RobTillaart/Temperature
66

77

88
#include "temperature.h"
@@ -14,6 +14,7 @@ volatile float hi;
1414
void setup()
1515
{
1616
Serial.begin(115200);
17+
Serial.println();
1718
Serial.println(__FILE__);
1819
Serial.print("TEMPERATURE_LIB_VERSION: ");
1920
Serial.println(TEMPERATURE_LIB_VERSION);

libraries/Temperature/examples/heatindex_test/heatindex_test.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// FILE: heatIndex_test.ino
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: demo
5-
// DATE: 2020-04-04
5+
// URL: https://github.com/RobTillaart/Temperature
66

77

88
#include "temperature.h"
@@ -16,6 +16,7 @@ volatile float hi;
1616
void setup()
1717
{
1818
Serial.begin(115200);
19+
Serial.println();
1920
Serial.println(__FILE__);
2021
Serial.print("TEMPERATURE_LIB_VERSION: ");
2122
Serial.println(TEMPERATURE_LIB_VERSION);

libraries/Temperature/examples/humidex_table/humidex_table.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// FILE: humidex_table.ino
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: demo
5-
// DATE: 2020-04-05
5+
// URL: https://github.com/RobTillaart/Temperature
66

77

88
#include "temperature.h"
@@ -11,6 +11,7 @@
1111
void setup()
1212
{
1313
Serial.begin(115200);
14+
Serial.println();
1415
Serial.println(__FILE__);
1516
Serial.print("TEMPERATURE_LIB_VERSION: ");
1617
Serial.println(TEMPERATURE_LIB_VERSION);

0 commit comments

Comments
 (0)