# Weather Station

## Overview

`pocs weather` offers some basic commands for interacting with the running weather station service.&#x20;

## Commands

### `status`

Get the most recent weather reading.

```
(conda-pocs)  panoptes@panoptes  pocs weather status
```

### `restart`

Restart the weather (`supervisorctrl`) service. Use if getting errors with the other commands.

```
(conda-pocs)  panoptes@panoptes  pocs weather restart
```

## Configuration

The configuration will depend exactly on how you set up the [Weather Station](/build/hardware/weather-station.md)hardware but the config key is in `environment.weather` either way. For a remote weather station you will have a url (i.e. `environment.weather.url`) and for a locally attached weather station a serial port (i.e. `environment.weather.serial_port`).

See the weather station config variables at [aag-weather](https://github.com/panoptes/aag-weather) documentation for details about setting the safety thresholds and heater settings.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.projectpanoptes.org/build/software/pocs-command-line/weather-station.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
