Skip to content

Commit

Permalink
Merge branch 'stable' of https://github.com/marelab/esp-rfid into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
marelab committed Jun 10, 2019
2 parents d51ac43 + a9394e2 commit 8561098
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,97 @@
# Fork of ESP RFID with extended MQTT Functions
First the extended functions are documented here followed by the original descrition. The original ESP-RFID solution is already a great piece of Software, but I wanted extended functinality to integrate my RIFID-DOOR into a home automatisation over MQTT.

The full marelab solution depends on three projects:

Hardware:
* marelab ESP-DOOR or esp-rfid-relay-board (see differences here)
* marelab fork ESP-RFID (firmware)
* marelab NODE-RED ESP-RFID integration (needs the marelab fork of ESP-RFID as firmware)

This has been added so far to this fork:
* Reading all user data over MQTT
* Sending User data to RFID-DOOR/ESP-RFID over MQTT
* Sending door open command over MQTT
* Sending Sync of a RFID-DOOR (IP/Hostname) over MQTT
* Configure Sync interval over ESP-RFID GUI
* Deleting all User of a ESP-RFID device over MQTT
* NODE-RED flow & GUI to centralize managment of ESP-RFID devices & users

## Using MQTT Topics
For the MQTT communication some additional TOPICs have been internaly added. The default Topic is still configured over the WebGui. If you use more then one device all used devices should have the same <TOPIC> name configured by the WebGui. This is the used Topic hirachy:

```
(TOPIC)---+---/sync
|
+---/send
|
+---/accesslist
```

If you configured over the WebGui for example (TOPIC) = "/rfid" these topic queues can be used:
* /rfid
* /rfid/sync
* /rfid/send
* /rfid/accesslist

## Commands recv by ESP-RFID
The message format is JSON it has to include the IP of the device & the command for a message recv by the ESP-RFID firmware. These messages can be received:

### getuser
Sends all useres back over the (TOPIC)/accesslist
Json Command Format:
```
{
cmd :'getuser',
doorip :'(The ESP-RFID IP of the door to open as String)'
}
```

### listusr
Sends all useres back over (TOPIC)/send
Json Command Format:
```
{
cmd:'listusr',
doorip:'(The ESP-RFID IP of the door to open as String)'
}
```

### opendoor
Opens the Door / Magnetic Lock
Json Command Format:
```
{
cmd:'opendoor',
doorip:'(The ESP-RFID IP of the door to open as String)'
}
```

### deletusers
Delete all users. It deletes all User SPIF files.
Json Command Format:
```
{
cmd:'deletusers',
doorip:'(The ESP-RFID IP of the door to open as String)'
}
```

### adduser
Adds a User as SPIF File to the device. That can be shown/edit over the WebGUI
Json Command Format:
```
{
cmd:'adduser',
doorip:'(The ESP-RFID IP of the door to open as String)'
}
```





# Orginal RFID Description
# ESP RFID - Access Control with ESP8266, RC522 PN532 Wiegand RDM6300

[![Chat at https://gitter.im/esp-rfid/Lobby](https://badges.gitter.im/esp-rfid.svg)](https://gitter.im/esp-rfid/Lobby) [![Build Status](https://travis-ci.org/esprfid/esp-rfid.svg?branch=stable)](https://travis-ci.org/esprfid/esp-rfid) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/d475052a09bd4865bc2654f524614cba)](https://www.codacy.com/app/omersiar/esp-rfid?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=esprfid/esp-rfid&amp;utm_campaign=Badge_Grade) [![BCH compliance](https://bettercodehub.com/edge/badge/esprfid/esp-rfid?branch=stable)](https://bettercodehub.com/) [![Bountysource](https://api.bountysource.com/badge/team?team_id=242217)](https://salt.bountysource.com/checkout/amount?team=esp-rfid)
Expand Down

0 comments on commit 8561098

Please sign in to comment.