pyobs_weather.weather.stations.McDonaldTelnet

class McDonaldTelnet(host: str = 'weather.as.utexas.edu', port: int = 55410, *args, **kwargs)[source]

The McDonaldTelnet weather station reads current weather information via telnet.

Creates a new McDonald weather station accessed via telnet.

Parameters
  • host – Host to connect to.

  • port – Port to connect to.

create_sensors()[source]

Entry point for creating sensors for this station.

These sensors are created:

  • temp

  • skytemp

  • windspeed

  • rain

update()[source]

Entry point for updating sensor values for this station.

This method connects to the Mt. Locke weather server via telnet and extracts the latest values.