semvec/pypi-packages huggingface dataset:
lifesospy-mqtt 0.11.6
MQTT client to report state of LifeSOS security system and devices.
Requires Python: >=3.5.3

LifeSOS MQTT Client
===================

.. image:: https://badge.fury.io/py/lifesospy-mqtt.svg
    :target: https://badge.fury.io/py/lifesospy-mqtt
.. image:: https://readthedocs.org/projects/lifesospy-mqtt/badge/?version=latest
    :target: http://lifesospy-mqtt.readthedocs.org/en/latest/?badge=latest
    :alt: Documentation Status

This application provides an MQTT client that interfaces with
`LifeSOS <http://lifesos.com.tw>`__ alarm systems, sensors and switches.
It will publish the state of all devices to an MQTT broker, which can
then be consumed by any application that provides MQTT support, such as
Home Assistant or OpenHAB. It will also subscribe to topics on the
broker that allow the control of the alarm system (eg. arm, disarm) and
turn on/off any attached switches.

It was written for & tested with the LS-30 model, though it should also
work on the LS-10/LS-20 models. Note that in some markets, they may also
be labelled under the name of the distributor; eg. SecurePro in
Australia, WeBeHome in northern Europe.

For a quickstart and configuration help, please refer to the `ReadTheDocs <http://lifesospy-mqtt.readthedocs.io>`__ site.
wwo-hist 0.0.7
This package is used to retrieve and transform historical weather data from www.worldweatheronline.com into pandas dataframe and csv.

# WorldWeatherOnline historical weather data API wrapper

[![Downloads](https://pepy.tech/badge/wwo-hist)](https://pepy.tech/project/wwo-hist)

This package is used to retrieve and transform historical weather data from www.worldweatheronline.com into pandas dataframe and csv.

You can get API key for free (free trial 500 requests/key/day for 60 days, as of 30-May-2019).

example API explorer: https://www.worldweatheronline.com/developer/premium-api-explorer.aspx


**Input**: api_key, location_list, start_date, end_date, frequency

**Output**: location_name.csv

**Output column names**: date_time, maxtempC, mintempC, totalSnow_cm, sunHour, uvIndex, uvIndex, moon_illumination, moonrise, moonset, sunrise, sunset, DewPointC, FeelsLikeC, HeatIndexC, WindChillC, WindGustKmph, cloudcover, humidity, precipMM, pressure, tempC, visibility, winddirDegree, windspeedKmph


#### Install the package:
```
pip install wwo-hist
```

#### Import package
```python
from wwo_hist import retrieve_hist_data
```

#### Set working directory to store output csv file(s)
```python
import os
os.chdir(".\YOUR_PATH")
```


#### Example code
```python
frequency=3
start_date = '11-DEC-2018'
end_date = '11-MAR-2019'
api_key = 'YOUR_API_KEY'
location_list = ['singapore','california']

hist_weather_data = retrieve_hist_data(api_key,
                                location_list,
                                start_date,
                                end_date,
                                frequency,
                                location_label = False,
                                export_csv = True,
                                store_df = True)
```

#### Parameters:


**api_key**: *string*

(Premium/ free trial) API key from https://www.worldweatheronline.com/developer/api/


**location_list**: *list of string*

US Zipcode, UK Postcode, Canada Postalcode, IP address, Latitude/Longitude (decimal degree) or city name


**start_date**: *string*

Preferred date format: 'dd-mmm-yyyy'


**end_date**: *string*

Preferred date format: 'dd-mmm-yyyy'


**frequency**: *integer*

1, 3, 6, 12, 24

1 hourly, 3 hourly, 6 hourly, 12 hourly (day/night) or 24 hourly (day average)


**location_label**: *bool*, default = False

If True, all column names will have city name as prefix.


**export_csv**: *bool*, default = True

If False, no csv file will be exported to current directory.


**store_df**: *bool*, default = False

If True, retrieved dataframe(s) will be stored as list in the work space.


#### Console view
![IPython](/doc/screenshots/Example_01.PNG)


#### Output file
![CSV file](/doc/screenshots/Example_02.PNG)