Skip to content

thatblairguy/ai-forecaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Forecaster

Silly program to turn the weather forecast into something else via a GPT.

Obtains the current weather from the US National Weather Service API (via pynws) and runs it through a local GPT to transform it into a fun format.

Setup

  1. Install ollama and install a model.
    • e.g. ollama install llama3.1:latest
  2. Copy config.sample.json to config.json.
  3. Set the email property to your email address (this is needed for the NWS API).
  4. Under the locations key, create a list of location objects:
    • Set the city key to the name state of a city.
    • Set latitude and longitude to the coordinates of the city.
    • Repeat for any additional cities.
  5. Under the ai key, set server to the system where ollama is installed.
  6. Under the ai key, set model to the same model that was installed in step 1.

The personalities key is an array of "personality" objects. For an individual object, the persona key describes the type of "person" the AI is impersonating (e.g. "Shakespearean scholar") and the style key is the writing style to use (e.g. "Shakespearean sonnet").

About

Silly weather reporter.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors