Skip to content

Commit

Permalink
Merge branch 'release/1.0.30'
Browse files Browse the repository at this point in the history
* release/1.0.30:
  ### 1.0.30
  Fix moon phase
  README update
  Version bump
  • Loading branch information
ttscoff committed Dec 13, 2023
2 parents e732b91 + e50f2eb commit 358f852
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 1.0.30

2023-12-13 17:22

#### FIXED

- Weather.moon detection

### 1.0.29

2023-10-01 15:24
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
journal-cli (1.0.29)
journal-cli (1.0.30)
chronic (~> 0.10, >= 0.10.2)
tty-reader (~> 0.9, >= 0.9.0)
tty-which (~> 0.5, >= 0.5.0)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ This file contains a YAML definition of your journal. Each journal gets a top-le

You can include weather data automatically by setting a question type to 'weather'. In order for this to work, you'll need to define `zip` and `weather_api` keys. `zip` is just your zip code, and `weather_api` is a key from WeatherAPI.com. Sign up [here](https://www.weatherapi.com/) for a free plan, and then visit the [profile page](https://www.weatherapi.com/my/) to see your API key at the top.

You can optionally set the key `temp_in:` to `f` or `c` to control what scale is used for temperatures.

If a question type is set to `weather.forecast`, only the predicted condition, high, and low will be included in the JSON data for the question. A full printout of hourly temps will be included in the Markdown/Day One output.

If the question type is `weather.current`, only the current condition and temperature will be recorded to the JSON, and a string containing "[TEMP] and [CONDITION]" (e.g. "64 and Sunny") will be recorded to Markdown/Day One for the question.
Expand Down
1 change: 1 addition & 0 deletions lib/journal-cli/checkin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def print_answer(prompt, type, key, data)
case type
when /^(weather|forecast|moon)/
header prompt
puts type
@output << case type
when /current$/
data[key].current
Expand Down
2 changes: 1 addition & 1 deletion lib/journal-cli/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Journal
VERSION = '1.0.29'
VERSION = '1.0.30'
end
2 changes: 2 additions & 0 deletions src/_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ This file contains a YAML definition of your journal. Each journal gets a top-le

You can include weather data automatically by setting a question type to 'weather'. In order for this to work, you'll need to define `zip` and `weather_api` keys. `zip` is just your zip code, and `weather_api` is a key from WeatherAPI.com. Sign up [here](https://www.weatherapi.com/) for a free plan, and then visit the [profile page](https://www.weatherapi.com/my/) to see your API key at the top.

You can optionally set the key `temp_in:` to `f` or `c` to control what scale is used for temperatures.

If a question type is set to `weather.forecast`, only the predicted condition, high, and low will be included in the JSON data for the question. A full printout of hourly temps will be included in the Markdown/Day One output.

If the question type is `weather.current`, only the current condition and temperature will be recorded to the JSON, and a string containing "[TEMP] and [CONDITION]" (e.g. "64 and Sunny") will be recorded to Markdown/Day One for the question.
Expand Down

0 comments on commit 358f852

Please sign in to comment.