How to determine a new Femweb connection

Begonnen von Luc115, 09 Juni 2016, 21:23:58

Vorheriges Thema - Nächstes Thema

Luc115

Hi,

Is there a way to find out if a new connection is made to Fhemweb? I want to get the IP of the device (peer) that connects.
Eventmonitor does not record an event when a new connection is made. Is there another way to trigger an action ?

Luc
Raspberry Pi 2xB/1xB+/1xB2;
38xDS18B20 (5V via mosfet) on 1-Wire GPIO4-bus; TSL2561 over I2C0 and I2C1 bus and P82B715 based range extender;
RF 433 transmitter on GPIO;
Dutch Smart Meter readings via TTL->USB to Fhem/ECMD; NanoCul/HM

rudolfkoenig

There will be no event generated when a new connection is established, you have to poll for devices of "TYPE=FHEMWEB" e.g. with list, end evaluate the result.

Luc115

Raspberry Pi 2xB/1xB+/1xB2;
38xDS18B20 (5V via mosfet) on 1-Wire GPIO4-bus; TSL2561 over I2C0 and I2C1 bus and P82B715 based range extender;
RF 433 transmitter on GPIO;
Dutch Smart Meter readings via TTL->USB to Fhem/ECMD; NanoCul/HM