Skip to content

Commit e50eb99

Browse files
authored
update build-CI, library.json, readme, license, minor edits (#9)
1 parent 6a6c1f7 commit e50eb99

File tree

13 files changed

+31
-29
lines changed

13 files changed

+31
-29
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2021 Rob Tillaart
3+
Copyright (c) 2017-2022 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

README.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Temperature
1010

11-
Arduino library with dewPoint, humidex, heatIndex and windchill functions.
11+
Arduino library with dewPoint, humidex, heatIndex and wind-chill functions.
1212

1313

1414
## Description
@@ -25,32 +25,32 @@ DHT22 or Sensirion, to make a weather station application.
2525

2626
### Conversion
2727

28-
- **float Fahrenheit(float celsius)** idem.
29-
- **float Celsius(float fahrenheit)** idem.
30-
- **float Kelvin(float celsius)** idem.
28+
- **float Fahrenheit(float Celsius)** idem.
29+
- **float Celsius(float Fahrenheit)** idem.
30+
- **float Kelvin(float Celsius)** idem.
3131

3232

3333
### DewPoint, humidex
3434

35-
- **float dewPoint(float celsius, float humidity)** idem.
36-
- **float dewPointFast(float celsius, float humidity)** idem.
37-
- **float humidex(float celsius, float dewPoint)** idem.
35+
- **float dewPoint(float Celsius, float humidity)** idem.
36+
- **float dewPointFast(float Celsius, float humidity)** idem.
37+
- **float humidex(float Celsius, float dewPoint)** idem.
3838

3939

4040
### heatIndex
4141

42-
- **float heatIndex(float fahrenheit, float humidity)** idem.
43-
- **float heatIndexC(float celsius, float humidity)** idem.
42+
- **float heatIndex(float Fahrenheit, float humidity)** idem.
43+
- **float heatIndexC(float Celsius, float humidity)** idem.
4444

4545

4646
### WindChill
4747

4848
Wind speed @ 10 meter, if **convert** is true => wind speed will be converted to 1.5 meter
4949
else ==> formula assumes wind speed @ 1.5 meter
5050

51-
- **float WindChill_F_mph(float fahrenheit, float milesPerHour, bool convert = true)**
52-
- **float WindChill_C_kmph(float celcius, float kilometerPerHour, bool convert = true)**
53-
- **float WindChill_C_mps(float celsius, float meterPerSecond, bool convert = true)**
51+
- **float WindChill_F_mph(float Fahrenheit, float milesPerHour, bool convert = true)**
52+
- **float WindChill_C_kmph(float Celsius, float kilometerPerHour, bool convert = true)**
53+
- **float WindChill_C_mps(float Celsius, float meterPerSecond, bool convert = true)**
5454

5555

5656
## Operations
@@ -65,6 +65,7 @@ See examples for typical usage.
6565

6666
# Future
6767

68+
- improve documentation
6869
- expand number of formulas
6970
-
7071

examples/dewpoint_test/dewpoint_test.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//
22
// FILE: dewpoint_test.ino
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.0
54
// PURPOSE: demo
65
// DATE: 2020-04-04
76

@@ -16,6 +15,7 @@ uint32_t duration2;
1615
float maxError;
1716
volatile float dp;
1817

18+
1919
void setup()
2020
{
2121
Serial.begin(115200);

examples/heatindexC_table/heatindexC_table.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//
22
// FILE: heatindexC_table.ino
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.0
54
// PURPOSE: demo
65
// DATE: 2020-04-04
76

@@ -11,6 +10,7 @@
1110

1211
volatile float hi;
1312

13+
1414
void setup()
1515
{
1616
Serial.begin(115200);

examples/heatindexC_test/heatindexC_test.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//
22
// FILE: heatindexC_test.ino
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.0
54
// PURPOSE: demo
65
// DATE: 2020-04-04
76

@@ -14,6 +13,7 @@ uint32_t duration1;
1413

1514
volatile float hi;
1615

16+
1717
void setup()
1818
{
1919
Serial.begin(115200);

examples/heatindex_table/heatindex_table.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//
22
// FILE: heatindex_table.ino
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.0
54
// PURPOSE: demo
65
// DATE: 2020-04-04
76

@@ -11,6 +10,7 @@
1110

1211
volatile float hi;
1312

13+
1414
void setup()
1515
{
1616
Serial.begin(115200);

examples/heatindex_test/heatindex_test.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
//
22
// FILE: heatIndex_test.ino
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.0
54
// PURPOSE: demo
65
// DATE: 2020-04-04
7-
//
6+
87

98
#include "temperature.h"
109

@@ -13,6 +12,7 @@ uint32_t duration1;
1312

1413
volatile float hi;
1514

15+
1616
void setup()
1717
{
1818
Serial.begin(115200);

examples/humidex_table/humidex_table.ino

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//
22
// FILE: humidex_table.ino
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.0
54
// PURPOSE: demo
65
// DATE: 2020-04-05
76

examples/humidex_test/humidex_test.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//
22
// FILE: humidex_test.ino
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.0
54
// PURPOSE: demo
65
// DATE: 2020-04-05
76

@@ -14,6 +13,7 @@ uint32_t duration1;
1413

1514
volatile float hi;
1615

16+
1717
void setup()
1818
{
1919
Serial.begin(115200);

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/Temperature"
1717
},
18-
"version": "0.2.4",
18+
"version": "0.2.5",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*",

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Temperature
2-
version=0.2.4
2+
version=0.2.5
33
author=Rob Tillaart <rob.tillaart@gmail.com>
44
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
55
sentence=Library with weather related functions.

temperature.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
#pragma once
22
//
33
// FILE: temperature.h
4-
// VERSION: 0.2.4
5-
// PURPOSE: temperature functions
4+
// VERSION: 0.2.5
5+
// DATE: 2015-03-29
6+
// PURPOSE: collection temperature functions
67
//
78
// HISTORY:
89
// 0.1.0 2015-03-29 initial version
910
// 0.1.1 2017-07-26 double to float (issue #33)
1011
// 0.2.0 2020-04-04 #pragma once, removed WProgram.h, readme.md, comments
1112
// replaced obsolete links with new ones,
1213
// tested and removed some code
13-
// 0.2.1 2020-05-26 added windchill formulas
14+
// 0.2.1 2020-05-26 added wind-chill formulas
1415
// 0.2.2 2020-06-19 fix library.json
1516
// 0.2.3 2020-08-27 fix #5 order of functions, typo, fixed 1 example
1617
// 0.2.4 2021-01-08 Arduino-CI + unit tests
18+
// 0.2.5 2021-12-28 Arduino-CI, library.json, readme.md, license, minor edits
1719

1820

19-
#define TEMPERATURE_VERSION (F("0.2.4"))
21+
#define TEMPERATURE_VERSION (F("0.2.5"))
2022

2123

2224
inline float Fahrenheit(float celsius)

test/unit_test_001.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@
4040

4141
unittest_setup()
4242
{
43+
fprintf(stderr, "TEMPERATURE_VERSION: %s\n", (char *) TEMPERATURE_VERSION);
4344
}
4445

46+
4547
unittest_teardown()
4648
{
4749
}
4850

4951

5052
unittest(test_conversion)
5153
{
52-
fprintf(stderr, "TEMPERATURE_VERSION: %s\n", (char *) TEMPERATURE_VERSION);
53-
5454
assertEqualFloat(-40, Fahrenheit(-40), 0.001);
5555
assertEqualFloat(-40, Celsius(-40), 0.001);
5656
assertEqualFloat(273.15, Kelvin(0), 0.001);

0 commit comments

Comments
 (0)