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.
- Install ollama and install a model.
- e.g.
ollama install llama3.1:latest
- e.g.
- Copy
config.sample.jsontoconfig.json. - Set the
emailproperty to your email address (this is needed for the NWS API). - Under the
locationskey, create a list of location objects:- Set the
citykey to the name state of a city. - Set
latitudeandlongitudeto the coordinates of the city. - Repeat for any additional cities.
- Set the
- Under the
aikey, setserverto the system where ollama is installed.- If ollama is not installed on the same machine as the AI Forecaster program, you'll need to configure ollama to accept external connections
- Under the
aikey, setmodelto 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").