---
title: Historical weather for Journal CLI
date: 2023-09-30 11:11
slug: historical-weather-for-journal-cli
categories:
- Code
tags:
- journaling
- weather
- journal-cli
---

[Journal]: https://brettterpstra.com/projects/journal-cli/ "Journal"

![fullmoon-rb.jpg](https://brettterpstra.com/uploads/2023/09/fullmoon-rb.jpg)

I pushed a couple updates to [Journal], my command line journaling tool today.

As a reminder, you can add a natural language argument to your journal command which will set the date of the entry, e.g. `journal mood "yesterday 8pm"`. This allows you to create entries in post with historical data you might have missed. One thing that it didn't do well, though, is to get the _correct_ weather for any weather type questions in the journal when using past dates. This latest update is able to get historical weather data and insert it correctly in the entry. No changes required for the user, just enter a past date and Journal will figure it out.

Second, I've noticed my mood and sleep shifts with the moon phase. I'm not into astrology or anything, but that seemed like useful data to track and start to draw better conclusions from. So now a question type of `weather.forecast` will include the moon phase as a `moon_phase` key, and you can use `weather.moon` to get just the moon phase for its own entry. The forecast in Markdown will also now include the moon phase.

That's it, just tying up some loose ends. Journal is working pretty well for me to collect data and provide my therapist with detailed mood/behavior information. Let me know if there's anything it doesn't do that might help you out!

The latest version can be installed with `gem install journal-cli`. Visit the [Journal] project page for more info.

## Journal

Project: [Journal](https://brettterpstra.com/projects/journal-cli.md)

- [Historical weather for Journal CLI](https://brettterpstra.com/2023/09/30/historical-weather-for-journal-cli.md): 2023-09-30
- [Journal updates with weather types and conditional questions](https://brettterpstra.com/2023/09/20/journal-updates-with-weather-types-and-conditional-questions.md): 2023-09-20
- [Journal and integrations](https://brettterpstra.com/2023/09/11/journal-and-integrations.md): 2023-09-11
- [Important Journal CLI updates](https://brettterpstra.com/2023/09/07/important-journal-cli-updates.md): 2023-09-07
- [Journal, a CLI for journaling](https://brettterpstra.com/2023/09/06/journal-a-cli-for-journaling.md): 2023-09-06

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
