1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
| > git log -L :OpenWeather:get_weather/openweather.py
commit a5c823508c27be6e47f07e692c457908216fe48d (HEAD -> main, tag: 1.1.1, origin/main)
Author: Christopher Tyler <christophertyler@proton.me>
Date: Sun Mar 26 20:23:29 2023 -0500
Release 1.1.0 (#40)
# Overview
Minor release to update some of the development tooling and do some minor
features.
# Features
* Added: Application name to PostgreSQL connection string.
* Added: Update to use Python 3.11 features.
* Added: Command line option to get the software version.
* Added: Software version to save in database.
* Changed: Switch to standard library tomllib.
* Changed: Removed json config file.
* Changed: Switch from poetry to flit and pip-chill.
Co-authored-by: Christopher Tyler <christophertyler@engineer.com>
Co-authored-by: Christopher Tyler <ctyler@dmimail.com>
Reviewed-on: http://192.168.0.113:3000/Personal/get_weather/pulls/40
diff --git a/get_weather/openweather.py b/get_weather/openweather.py
--- /dev/null
+++ b/get_weather/openweather.py
@@ -0,0 +29,96 @@
+class OpenWeatherMap:
+ """To interface with OpenWeatherMap's API.
+
+ This class will make API calls to get JSON data from OpenWeatherMap.
+ """
+
+ latitude: float = 0
...
|