semvec/pypi-packages huggingface dataset:
lywsd03mmc 0.1.0
Xiaomi Mijia LYWSD03MMC sensor library
Requires Python: >=3.6

# LYWSD03MMC 

A Python library for working with Xiaomi Mijia LYWSD03MMC bluetooth temperature and humidity sensors.

Updating the firmware on the devices is *not* required.

This package is built on top of the lywsd02 package, which may include additional useful information.

## Installation

This relies on bluepy installed via python pip, which itself needs libglib2 to install:
```
sudo apt-get install python3-pip libglib2.0-dev
```

The LYWSD03MMC package can then be installed from [PyPi](https://pypi.org/project/lywsd03mmc/), using the following command:

```
pip3 install lywsd03mmc
```

## Finding the MAC address of the devices
From the Xiaomi Home app:
1. Go into the details of the device
2. Click on the three dots to get into the settings
3. Click "About" (near the top of the list)
4. And make a note of the MAC address shown.

It is also possible to find the addresses of all devices by running `sudo hcitool lescan` and looking for devices labelled "LYWSD03MMC"

## Tools

Two helper commands are distributed here:

### `lywsd03mmc` - Current data

This shows the current temperature, humidity and battery level of the device.

Example usage: 
`lywsd03mmc A4:C1:38:12:34:56`

### `lywsd03mmc2csv` - Export history

This exports the history to a CSV file, containing the maximum and minimum temperature and humidity for each hour there is data for.

This can be very slow, and may take up to about 10 minutes to download all the data from the device.

Example usage: 
`lywsd03mmc2csv A4:C1:38:12:34:56 --output data.csv`

## Library Usage

The library interface closely matches the [LYWSD02](https://github.com/h4/lywsd02) package, with the following changes:

* Setting the time has been removed
* Battery data is available from the main data export
* An extra option has been included to estimate the time the device was started
* History data times are calculated based on the start time of the device

### Connecting and retrieving information

Here's an example of getting the basic information out of the device:

```
from lywsd03mmc import Lywsd03mmcClient
client = Lywsd03mmcClient("A4:C1:38:12:34:56")

data = client.data
print('Temperature: ' + str(data.temperature))
print('Humidity: ' + str(data.humidity))
print('Battery: ' + str(data.battery))
print('Display units: ' + client.units)
```

### History

Times given in the history output are for the end of the hour in which data was recorded.

Downloading the history data can take a significant amount of time (up to about 10 minutes).

A property is available on the client to output data from each record retrieved, to allow you to see the progress:

```
# Create the client
from lywsd03mmc import Lywsd03mmcClient
client = Lywsd03mmcClient("A4:C1:38:12:34:56")

# Enable history output
client.enable_history_progress = True

# Retrieve the history data
history = client.history_data
```


## Troubleshooting

### Failed to connect to peripheral

Check you are connecting to the correct MAC address, and are in range of the device.

If those are correct, this can normally be fixed by retrying the connection.
ezcad 0.2.6
Easy computer-aided design

EZCAD
=====

A tool for data visualization and analysis, geophysical and beyond.

<https://ezcad.org>

![main window](examples/mainwindow.png)

Maintainer
----------

  * Ezcad Team  <ezcad.dev@gmail.com>

Installation
------------
* From PyPI: `pip install ezcad`

The pip install should work in Windows and Mac.
In Linux, you may download the built tarball
and unpack to the site-packages folder of your python installation path,
you may install the dependencies by `pip install -r requirements.txt`.
The download address is <https://pypi.org/project/ezcad/>

Documentation
-------------

<https://ezcad.org/documentation/>

Support
-------

<https://ezcad.org/support/>
pyHelialux 0.1.1
A library to communicate with with Juwel's HeliaLux Controller

# pyHelialux

Python library to control (and get information from) Juwel's Helialux Smart Controller.

## Suppored features
* Get current state of the controller
  * `currentProfile`
  * `currentWhite`
  * `currentBlue`
  * `currentGreen`
  * `currentRed`
  * `manualColorSimulationEanbled`
  * `manualDaytimeSimulationEnabled`
  * `deviceTime`
* Enable and disable manual color simulation
* Set the brightness of the channels manually

## Example code
```
import helialux
from time import sleep

c = helialux.Controller(url="http://192.168.1.100")
print(c.get_status())

print("Start manual")
c.start_manual_color_simulation(duration=5) # enable it for 5 minutes (defaults to 60)

sleep(2)
print("just blue")
c.set_manual_color(white=0, blue=100, green=0, red = 0)

sleep(2)
print("just white")
c.set_manual_color(white=100, blue=0, green=0, red = 0)

sleep(2)
print("off")
c.set_manual_color(white=0, blue=0, green=0, red = 0)
sleep(2)
print("Stop manual")
c.stop_manual_color_simulation()
```


[Buy me a coffee :)](https://paypal.me/MaartenHoogendoorn)
random-id 1.0.1
A simple, flexible random ID generator.
Requires Python: >=3.5

# Random ID

[![Build Status](https://travis-ci.com/AlexiWolf/random_id.svg?branch=main)](https://travis-ci.com/AlexiWolf/random_id)

A simple, flexible random ID generator.

## Installation

```
pip install random_id
```

## Basic Usage

### Importing

```Python
from random_id import *
```

Or

```Python
from random_id import random_id
```

### Generating IDs

Call with no arguments for default settings.

```Python
random_id()
# -> 'Y4M460zrRMqRuv'
```

Default IDs are 14 characters long and contain lower/uppercase ascii letters and numbers only (to be URL-safe.)

You can also customize the length and the character set used.

```Python
random_id(length=4)
# -> 'Dl3d'

random_id(character_set="abc")
# -> 'bbacabccaaacab'

random_id(length=8, character_set=string.digits)
# -> '27244839'
```

## License

Copyright (C) 2020 AlexiWolf

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.