Find a file
Stefan Seegel 7aa238d029 clean up & project reorganisation
installable pythonmodule
2020-01-22 22:09:15 +01:00
apps clean up & project reorganisation 2020-01-22 22:09:15 +01:00
RaspyRFM clean up & project reorganisation 2020-01-22 22:09:15 +01:00
.gitignore clean up & project reorganisation 2020-01-22 22:09:15 +01:00
connair.py corrected links 2017-03-05 22:42:34 +01:00
culemu.py clean up & project reorganisation 2020-01-22 22:09:15 +01:00
emoncms.py auto detect twin module 2018-04-24 00:15:14 +02:00
fs20tx.py auto detect twin module 2018-04-24 00:15:14 +02:00
influx.py added influx & mqtt features 2020-01-07 06:25:22 +00:00
LICENCE.txt Create LICENCE.txt 2017-02-03 11:12:48 +01:00
maxrx.py clean up & decoding 2020-01-18 19:09:51 +00:00
README.md clean up & project reorganisation 2020-01-22 22:09:15 +01:00
rfm69.py fix LNAGain setting 2020-01-20 21:30:36 +00:00
setup.py clean up & project reorganisation 2020-01-22 22:09:15 +01:00
spitest.py add api test 2018-04-26 22:44:49 +00:00

Python module & examples for RaspyRFM

RaspyRFM

#Installation

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

import RasyRFM
rfm = RaspyRFM.RaspyRFM()
rfm.SetParams(
        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
)

connair.py

emulate a gateway for controlling RC sockets via the app power-switch. Compatible to "Brennenstuhl Brematic", Intertechno "ITGW-433", "ConnAir" see https://power-switch.eu/

emoncms.py

receive lacrosse-sensors with the RaspyRFM and post them to the open energy monitor, see https://openenergymonitor.org/

fs20tx.py

controlling FS20 RX sockets

sudo ./fs20tx <housecode> <address> <command>

intertechno.py

controlling remote control sockets

rcpulse <HOUSECODE A-P> <GROUP 1-4> <CHANNEL 1-4> on|off #control old intertechno sockets
rcpulse <12 symbols tristate code> #control old intertechno sockets
rcpulse <26 bit address 0|1> <1 goup bit 0|1> <4 bit unit 0|1> on|off #control intertechno self learning
rcpulse <32 bit code 0|1> #control intertechno and compatible (HAMA, REV)
rcpulse <5 DIP 0|1> <channel 1-4> on|off #control Brennenstuhl RC1000 
usage example:
./rcpulse A 1 1 on
./rcpulse 0000FFFF0FFF
./rcpulse 11110000111100001111000010 0 1110 on
./rcpulse 11110000111100001111000010010000

lacrosse.py

receiving lacrosse temperature sensors IT29-T, IT35-T, ...

sudo ./lacrosse.py
RFM69 found on CS 1
INIT COMPLETE
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'}

Product

Module RaspbyRFM Seegel Systeme