Skip to main content

Awox Mesh Light WebThing

Project description

GitHub License PyPI Fediverse

Webthings RESTful API for Awox’s “SmartLight” (SKRLm-c9-E27).

This lightbulb is supporting Bluetooth mesh.

https://peertube.mastodon.host/static/previews/058df607-2ca9-4a2c-be42-286644e5071e.jpg

USAGE

As standalone webthing

MAC=A4:C1:38:FF:FF:FF ./awox_mesh_light_single_webthing.py

curl http://localhost:8888/properties
#| {"on": true, "brightness": 50, "color": "#ffffff"}

curl -X PUT --data '{"color": "#00A000"}' \
  -H 'Content-Type: "application/json" ' \
  "http://localhost:8888/properties/color"

DEVELOP

On Mozilla IoT gateway, adapter can be run from shell using:

sudo hcitool lescan
#| LE Scan ...
#| A4:C1:38:ff:ff:ff unpaired
#| A4:C1:38:ff:ff:ff (unknown)

pip3 install --user -r requirements.txt
MAC=A4:C1:38:ff:ff:ff ./main.py

RESOURCES

Project details


Download files

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

Source Distribution

awox-mesh-light-webthing-0.0.5.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

awox_mesh_light_webthing-0.0.5-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page