Hi,
inspired by zmtrigger.blogspot and ESP8266-Tiny-Door-and-Window-Sensor I got to work with a project. It is basicly an ESP-01 with magnetic switches.
Now, seems rather cumbersome to me that I have to recompile my sensors for every monitor reconfiguration.
Is there a better way to reach my monitors?
Perhaps storing the events in a database and feed them to ZMTrigger from there?
Or can monitor be reassigned their ids?
Thanks,
Using ZMTrigger with ESP8266, MonitorID is problematic
Re: Using ZMTrigger with ESP8266, MonitorID is problematic
I am thinking of using an MQTT broker and a php MQTT client that can trigger ZMTrigger. Maybe via a database store. Is this a bad idea?
Re: Using ZMTrigger with ESP8266, MonitorID is problematic
I use a CM19a USB X10 transceiver that communicates with remote wireless motion detectors, (http://www.thex10shop.com/product/x10-h ... ion-sensor) I use a PERL daemon to poll the CM19a (Python driver) for activity....once any motion is detected the PERL script sends the command to begin recording an event due to motion detection via zmTrigger.pl. This method gives me motion detection in the dark and lowers the CPU loads tremendously ..allowing more cameras......I had ZM sending back signals to the CM19a to activate X10 light switches to turn on flood lights.
I have had so far excellent reliable results using this method.
I have had so far excellent reliable results using this method.
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Using ZMTrigger with ESP8266, MonitorID is problematic
Yes, there is a better way. You should continue reading the next chapter of my blog called "Using Wifi Manager":Sigge wrote: ↑Sun Dec 10, 2017 8:46 pm Hi,
inspired by zmtrigger.blogspot and ESP8266-Tiny-Door-and-Window-Sensor I got to work with a project. It is basicly an ESP-01 with magnetic switches.
Now, seems rather cumbersome to me that I have to recompile my sensors for every monitor reconfiguration.
http://zmtrigger.blogspot.com/p/wifiman ... brary.html
It lets you redefine all the relevant parameters you might want to change, even the wifi network the esp8266 connects to.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Using ZMTrigger with ESP8266, MonitorID is problematic
Simply brilliant Knnniggett! Flashed and trying it out now.
Having some trouble booting with gpio2 low. Looking into a hardware solution for this.
Was thinking of the possibility of reconfigure thru the web-server. Like I think you write in the ToDo. But then again, if I reconfigure anything, I am likely physically at the location and wifi reconfiguration is possible.
rockedge, thanks, will definitely look into that solution as well. Looks interesting!
Having some trouble booting with gpio2 low. Looking into a hardware solution for this.
Was thinking of the possibility of reconfigure thru the web-server. Like I think you write in the ToDo. But then again, if I reconfigure anything, I am likely physically at the location and wifi reconfiguration is possible.
rockedge, thanks, will definitely look into that solution as well. Looks interesting!
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Using ZMTrigger with ESP8266, MonitorID is problematic
Recommend you thank the guy who wrote the Arduino compatible, Wifi Manager. I don't remember how I found that project, but it is really amazing how well it works. Keep us posted. I'd like to hear how it goes.
Note that it has been a while since I've played with an ESP8266 and the Wifi Manager (been playing with Moteinos over 900MHz lately). At the time it was still under active development. Consequently, I would not be surprised if my blog no longer agrees completely with the project. I'm sure some things have changed for the better.
Note that it has been a while since I've played with an ESP8266 and the Wifi Manager (been playing with Moteinos over 900MHz lately). At the time it was still under active development. Consequently, I would not be surprised if my blog no longer agrees completely with the project. I'm sure some things have changed for the better.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Using ZMTrigger with ESP8266, MonitorID is problematic
I have solved the problem temporarily by using GPIO0 as ground. This means that I only have one input. I keep woring on a stratup buffer that allows me to use both GPIO:s as inputs.
Reference:
https://www.forward.com.au/pfod/ESP8266 ... index.html
Reference:
https://www.forward.com.au/pfod/ESP8266 ... index.html
- Attachments
-
- ESP8266_GPIO_INPUTS.jpg (80.62 KiB) Viewed 3175 times