2020-01-22 22:09:15 +01:00
|
|
|
# Python module & examples for RaspyRFM
|
|
|
|
![RaspyRFM](img/raspberry-rfm69-ii_6_z4.jpg?raw=true "RasyRFM")
|
|
|
|
|
|
|
|
#Installation
|
|
|
|
```sh
|
|
|
|
sudo su
|
|
|
|
apt-get install git-core python-dev
|
|
|
|
apt-get install python-pip
|
|
|
|
|
|
|
|
cd <downloaded RaspyRFM code> #folder in which setup.py is located
|
|
|
|
pip install -e .
|
|
|
|
```
|
|
|
|
|
|
|
|
#Using python module and set parameters
|
|
|
|
```python
|
|
|
|
import RasyRFM
|
2020-02-11 21:45:46 +01:00
|
|
|
rfm = RaspyRFM(1, RFM69)
|
|
|
|
rfm.set_params(
|
2020-01-22 22:09:15 +01:00
|
|
|
Freq = 868.300, #MHz center frequency
|
|
|
|
ModulationType = rfm69.FSK, #modulation
|
|
|
|
Datarate = 9.992, #kbit/s baudrate
|
|
|
|
Deviation = 19.042, #kHz frequency deviation
|
|
|
|
SyncPattern = [0xc6, 0x26, 0xc6, 0x26], #syncword
|
|
|
|
Bandwidth = 100, #kHz bandwidth
|
|
|
|
RssiThresh = -105, #dBm RSSI threshold
|
|
|
|
TXPower = 13, #dBm
|
|
|
|
Preamble = 2, #bytes
|
|
|
|
)
|
|
|
|
```
|
2018-04-20 19:44:35 +02:00
|
|
|
|
2018-04-24 00:17:25 +02:00
|
|
|
## connair.py
|
2020-01-22 22:09:15 +01:00
|
|
|
emulate a gateway for controlling RC sockets via the app power-switch. Compatible to "Brennenstuhl Brematic", Intertechno "ITGW-433", "ConnAir"
|
2018-04-24 00:17:25 +02:00
|
|
|
see https://power-switch.eu/
|
2018-04-20 19:44:35 +02:00
|
|
|
|
2018-04-24 00:17:25 +02:00
|
|
|
## emoncms.py
|
2020-01-22 22:09:15 +01:00
|
|
|
receive lacrosse-sensors with the RaspyRFM and post them to the open energy monitor, see https://openenergymonitor.org/
|
2018-04-24 00:17:25 +02:00
|
|
|
|
2020-12-05 23:37:35 +01:00
|
|
|
## Receive and send 433 MHz RC remote controls
|
2020-02-11 21:45:46 +01:00
|
|
|
```sh
|
|
|
|
./rcpulse.py
|
2020-12-05 23:37:35 +01:00
|
|
|
./rcpulse.py -p intertechno -i 47612 -u 1 -a on
|
|
|
|
./rcpulse.py -p logilight -i 76123 -u 1 -a on
|
|
|
|
./rcpulse.py -p pilota -i 1234 -g 1 -u 1 -a on
|
2020-02-11 21:45:46 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Receive 868 MHz ELV FS20 RC remote controls
|
|
|
|
```sh
|
|
|
|
./rcpulse -f 868.35
|
|
|
|
```
|
|
|
|
|
2018-04-20 19:44:35 +02:00
|
|
|
## lacrosse.py
|
2020-01-22 22:09:15 +01:00
|
|
|
receiving lacrosse temperature sensors IT29-T, IT35-T, ...
|
2017-03-05 22:54:34 +01:00
|
|
|
```sh
|
2018-04-24 00:17:25 +02:00
|
|
|
sudo ./lacrosse.py
|
|
|
|
RFM69 found on CS 1
|
2017-03-05 22:51:03 +01:00
|
|
|
INIT COMPLETE
|
2018-04-24 00:17:25 +02:00
|
|
|
Waiting for sensors...
|
|
|
|
La crosse {'batlo': False, 'AFC': 94, 'init': False, 'T': (19.6, 'C'), 'RSSI': -105, 'RH': (60, '%'), 'ID': '68'}
|
|
|
|
La crosse {'batlo': False, 'AFC': -118, 'init': False, 'T': (19.5, 'C'), 'RSSI': -98, 'RH': (60, '%'), 'ID': '78'}
|
|
|
|
La crosse {'batlo': False, 'AFC': 6, 'init': False, 'T': (20.4, 'C'), 'RSSI': -87, 'RH': (58, '%'), 'ID': 'e4'}
|
|
|
|
La crosse {'batlo': False, 'AFC': 114, 'init': False, 'T': (19.7, 'C'), 'RSSI': -86, 'RH': (57, '%'), 'ID': '24'}
|
|
|
|
La crosse {'batlo': False, 'AFC': 52, 'init': False, 'T': (19.5, 'C'), 'RSSI': -58, 'RH': (60, '%'), 'ID': '68'}
|
|
|
|
La crosse {'batlo': False, 'AFC': 14, 'init': False, 'T': (20.5, 'C'), 'RSSI': -97, 'RH': (56, '%'), 'ID': '4'}
|
|
|
|
La crosse {'batlo': False, 'AFC': 308, 'init': False, 'T': (19.5, 'C'), 'RSSI': -103, 'RH': (60, '%'), 'ID': '68'}
|
|
|
|
La crosse {'batlo': False, 'AFC': 376, 'init': False, 'T': (19.7, 'C'), 'RSSI': -103, 'RH': (57, '%'), 'ID': '24'}
|
2017-03-05 22:54:34 +01:00
|
|
|
```
|
2018-04-20 19:44:35 +02:00
|
|
|
|
|
|
|
## Product
|
2018-04-24 00:17:25 +02:00
|
|
|
[Module RaspbyRFM Seegel Systeme](http://www.seegel-systeme.de/produkt/raspyrfm-ii/)
|