semvec/pypi-packages huggingface dataset:
xinabox-SW01 0.0.5
BME280 Environmental Sensor
Requires Python: >=3.6

[![GitHub Issues](https://img.shields.io/github/issues/xinabox/Python-SW01.svg)](https://github.com/xinabox/Python-SW01/issues)
![GitHub Commit](https://img.shields.io/github/last-commit/xinabox/Python-SW01)
![Maintained](https://img.shields.io/maintenance/yes/2020)
![Build status badge](https://github.com/xinabox/Python-SW01/workflows/Python/badge.svg)
![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)

# Python-SW01

The SW01 xChip is equipped with a weather sensor that is capable of measuring the temperature, humidity and atmospheric pressure. It is based on the BME280 manufactured by Bosch.

The humidity sensor provides an extremely fast responce time for fast context awareness application and high overall accuracy over a wide temperature range.

The pressure sensor is an absolute barometric pressure sensor with extremely high accuracy and resolution.

The integrated temperature sensor has been optimized for lowest noise and highest resolution. Its output is used for temperature compensation of the pressure and humidity sensors and can also be used for estimation of the ambient temperature.

# Usage

## Mu-editor
Download [Mu-editor](https://github.com/xinabox/mu-editor/releases/tag/v1.1.0a2)

### CW01 and CW02
- Use [XinaBoxUploader](https://github.com/xinabox/XinaBoxUploader/releases/latest) and flash MicroPython to the CW01/CW02.
- Download Python packages from the REPL with the following code:
    ```python
    import network
    import upip
    sta_if = network.WLAN(network.STA_IF)
    sta_if.active(True)
    sta_if.connect("ssid", "password")
    upip.install("xinabox-SW01")
    ```

### CC03, CS11 and CW03
- Download the .UF2 file for CC03/CS11/CW03 [CircuitPython](https://circuitpython.org/board/xinabox_cs11/) and flash it to the board.
- TO DO

### MicroBit
- TO DO

## Raspberry Pi

Requires Python 3
```
pip3 install xinabox-SW01
```

# Example
```python
from xCore import xCore
from xSW01 import xSW01

SW01 = xSW01()

while True:
    print(SW01.values())
    xCore.sleep(1000)
```
wxgbot 3.0
企业微信机器人发送消息

# wxgbot

用于发送企业微信机器人消息，如文本、图片、文件
是对微信机器人的简单封装，其他可参考腾讯企业微信官网说明
https://work.weixin.qq.com/help?person_id=1&doc_id=13376&helpType=undefined

## 安装
可以直接 `pip` 安装
> pip install wxgbot

### 举例
```text
from wxgbot.send_msg import *
#test_bot是群机器人的key
test_bot = r"**********************************"
coment = r"牛逼哄哄带闪电！"
#发送文本消息
send_text(text = coment,bot = test_bot)      #bot是群机器人的key
#发送其他消息
send_markdown(text,bot)        #text是markdown语法的，
send_img(file_path,bot)        #file_path是文件路径
send_file(file_path,bot)
```