Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Tools to stream weather data from Davis weather stations.

Project description

Installation | Usage | License


A package intended the logging of weather data parameters monitored by Davis weather stations. The parameters are obtained through the reports generated at Davis WeatherLink websites, and can be streamed to a MySQL database or a specified file.


The package can be installed with pip

pip install pydavis


Through the module, the weather parameters are streamed from WeatherLink websites:

>>> from data_logging import DataLogger

By instantiating the DataLogger with an URL, the logging sequence can then be initiated and data stored according to specified format. Any logging sequence is aborted with CTRL + C.

Storing data in a MySQL database

>>> logger = DataLogger(url)
>>> logger.initiate_logging(to_table=True,

The necessary arguments are MySQL login credentials, the name of the database and the table. The logger will create the database and the table if necessary.

Storing data in a file

>>> logger = DataLogger(url)
>>> logger.initiate_logging(to_file=True,

The location including the name of the file must be passed as argument. The logger will create a new file if necessary.


MIT, see MIT license.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pydavis, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pydavis-0.1.1-py3-none-any.whl (11.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pydavis-0.1.1.tar.gz (12.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page