-
ESTRUTURA DE PASTAS: /seu-projeto ├── app.py (O código Python enviado anteriormente) └── /templates └── index.html (O código HTML/JS enviado anteriormente)
-
REQUISITOS (INSTALAÇÃO): Abra o terminal na pasta do projeto e execute:
pip install flask flask-socketio
-
COMO EXECUTAR:
- No terminal, execute: python app.py
- O terminal dirá: "Running on http://0.0.0.0:5000"
- MANTENHA O TERMINAL ABERTO.
-
COMO VISUALIZAR:
- Abra seu navegador (Chrome, Edge ou Firefox).
- Acesse o endereço: http://localhost:5000
- Você verá a tabela vazia "Leituras em Tempo Real".
-
COMO TESTAR O RECEBIMENTO (Via Terminal): Para simular o leitor enviando dados, use este comando:
curl -X POST http://127.0.0.1:5000/webhook/TesteAntena -H "Content-Type: application/json" -d "[{"reading_epc_hex":"ABC123", "reading_reader_name":"Leitor_Alpha"}]"
-
COPIAR DADOS:
- Clique no botão verde "Copiar para Excel" no topo da página.
- Abra o Excel e pressione Ctrl+V.
-
Notifications
You must be signed in to change notification settings - Fork 0
tiagogd/webhookrfid
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Webhook para receber leituras das antenas RFID
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published