2021-03-08 16:19:11 +01:00
|
|
|
Prerequisito
|
|
|
|
|
Installare VLC (testato con versione 3.0.6)
|
|
|
|
|
installare python (3.9.x va bene, sviluppato sulla 3.9.2)
|
|
|
|
|
|
|
|
|
|
istruzioni su come installare:
|
|
|
|
|
creare una cartella e installare il virtualenv (es. C:\Users\User\Documents\python\webcam>"c:\Program Files\Python39\python.exe" -m venv env)
|
|
|
|
|
attivare il virtualenv e installare i prerequisiti:
|
|
|
|
|
C:\Users\User\Documents\python\webcam>env\Scripts\activate.bat
|
|
|
|
|
C:\Users\User\Documents\python\webcam>pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
copiare lo script nella dir "webcam"
|
|
|
|
|
|
|
|
|
|
Per farla partire allo startup
|
|
|
|
|
Windows logo key + R, scrivi shell:startup
|
|
|
|
|
creare un icona con:
|
|
|
|
|
command line C:\Users\User\Documents\python\webcam\env\Scripts\python.exe -m flask run --host=0.0.0.0
|
|
|
|
|
start in
|
|
|
|
|
C:\Users\User\Documents\python\webcam\
|
|
|
|
|
|
|
|
|
|
|
2021-02-24 08:15:59 +01:00
|
|
|
Wwebhook per telecamera. Progetto fatto per Angelo.
|
|
|
|
|
in pratica tramite ESP8266 (easyesp) se uno preme un bottone, sul PC esce in primo piano una finestra che mostra una IP cam.
|
|
|
|
|
|
|
|
|
|
Il sito con lo schema
|
|
|
|
|
https://community.blynk.cc/t/problem-using-physical-4-buttons-using-nodemcu-esp8266-to-switch-relays/36361/3
|
|
|
|
|
|
2021-03-08 16:19:11 +01:00
|
|
|
|
2021-02-24 08:15:59 +01:00
|
|
|
|
|
|
|
|
Rule su ESP:
|
|
|
|
|
----------------------
|
|
|
|
|
On Bottone#State=1 do
|
|
|
|
|
SendToHTTP 192.168.123.102,5000,/webhook
|
|
|
|
|
endon
|
|
|
|
|
----------------------
|
|
|
|
|
|
2021-02-24 08:19:15 +01:00
|
|
|
per la config di "bottone" vedi png.
|