Hauptmenü

433 RPi DIY

Begonnen von camillo777, 03 Oktober 2013, 18:01:00

Vorheriges Thema - Nächstes Thema

camillo777

Hi, sorry but I really do not understand German.

I was looking different home automation gateways and I would like to try also FHEM.
The installation was really smooth, but I need some hints to start.

I have a Raspberry Pi with 433 MHz RX and an Arduino due with 433 TX.

I am using the scripts from NinjaBlocks setup to send & receive 433 packets between the arduino and the Rpi.

Now, I would like to inject these values into FHEM to be able to display for example a temperature graph or to start rules based on the codes received.

Is it possible?
Does FHEM have an API to do this?

Thank you!

Best regards,
Camillo

PeMue

Hello Camillo,

I do not know the scripts from NinjaBlocks, but from my point of view you have two possibilies:

1. You modify the scripcts that you log your data with the correct timestamp at the beginning (e.g. 2013-10-03_21:37:49), you create in fhem a dummy variable and you use fhem for displaying the graphs. All calculations you want to do is based on the files which are created by your script(s). "API" in this case would be the logging.

2. You write a fhem module which replaces the NinjaBlocks scripts and do the complete control via fhem. API in this case would be the system calls (from fhem) which would be executed by fhem (instead of the scripts).

I hope that helps a bit.

Kind regards.

Peter
RPi3Bv1.2 rpiaddon 1.66 6.0 1xHM-CC-RT-DN 1.4 1xHM-TC-IT-WM 1.1 2xHB-UW-Sen-THPL-O 0.15 1x-I 0.14OTAU  1xCUNO2 1.67 2xEM1000WZ 2xUniroll 1xASH2200 3xHMS100T(F) 1xRFXtrx 90 1xWT440H 3xTFA30.3150 5xFA21
RPi1Bv2 LCDCSM 1.63 5.8 2xMAX HKT 1xMAX RT V200KW1 Heizung Wasser

camillo777

Hi and thank you!
I was pending on option (1) because I was thinking that it could be better if the sensor send data to FHEM instead of being FHEM to ask to the sensor.
In this case, just to explain to a non german, where di I have to put the data file and what is the line formatting?

PS. You should translate everything to English so that more people could be involved. At least the forum (send message, reply message and so on). :-)

Thank you!

Camillo