Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sensetecnic/pi-zigbee-relay
Scripts and configurations to send data received by a ZigBee module to WotTkit via wifi
https://github.com/sensetecnic/pi-zigbee-relay
Last synced: 13 days ago
JSON representation
Scripts and configurations to send data received by a ZigBee module to WotTkit via wifi
- Host: GitHub
- URL: https://github.com/sensetecnic/pi-zigbee-relay
- Owner: SenseTecnic
- Created: 2015-03-10T21:29:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-10T21:31:05.000Z (almost 10 years ago)
- Last Synced: 2024-03-26T17:19:28.807Z (10 months ago)
- Language: Python
- Size: 102 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
=========
WoTKit Relay
=========This is a very simple example of how to receive data from the XBee serial communications
API and relay it to the WoTKit.This example relies on a zigbee node periodically sending light and temperature readings
from its ADC pins 0 and 1Installation
============Install XBee-2.0.0
The following constants need to be configured appropriately for your setup.
APP_KEY = '21083f8935e70e56'
APP_PASSWORD = '15c14931cc27f258'URL_BASE = 'http://wotkit.sensetecnic.com/wotkit/api/sensors/'
LIGHT_SENSOR = 'office-light'
TEMP_SENSOR = 'office-temp'Running the Script
==================Change to the directory containing the code (where this README is)
execute
python wotkit-relay.py
Running the Script at boot
==========================First create a log file named 'cronlog', in our case we have created it at ```/home/pi/sensors/zigbee-relay/logs/```.
Then you can add the following line to your crontab via ```sudo crontab -e```, which will boot the
```
@reboot sudo sh /home/pi/sensors/zigbee-relay/runwotkitrelay.sh > /home/pi/sensors/zigbee-relay/logs/cronlog 2>&1 &
```Dependencies
============XBee-2.0.0