ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    DIY Environment Monitoring

    IT Discussion
    5
    44
    7.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • travisdh1T
      travisdh1 @travisdh1
      last edited by

      @travisdh1 said in DIY Environment Monitoring:

      @travisdh1 said in DIY Environment Monitoring:

      @thwr said in DIY Environment Monitoring:

      @travisdh1 said in DIY Environment Monitoring:

      @thwr said in DIY Environment Monitoring:

      @travisdh1 said in DIY Environment Monitoring:

      Temp monitoring is working great. My daily log

      tech@tempdoor-rpi ~ $ tail /var/log/temp/dailytemp.log
      07/11/16, 77.70
      07/12/16, 72.56
      07/13/16, 73.67
      07/14/16, 73.14
      07/15/16, 73.13
      07/16/16, 72.83
      07/17/16, 71.27
      07/18/16, 71.45
      

      When I went in the room last week to adjust the air conditioner and the door sensor pieces were glued together instead of the door and door frame. Need to get that glued on properly and then get it logging that as well. We have a security camera in the room as well, would be nice to grab a picture from it each time someone opens the door.

      Easy, write a script that is monitoring an input pin. You could use a Reed switch for example. Basically a magnetic switch.

      Oh, the door monitor script is working great via a very small python script. Just need to get the little sucker mounted properly.

      tech@tempdoor-rpi ~/bin $ cat door.py
      import datetime
      import time
      import RPi.GPIO as io
      io.setmode(io.BCM)
      door_pin = 6
      io.setup(door_pin, io.IN, pull_up_down=io.PUD_UP) #Activate door sensor using the pull up resistor
      while True:
          if io.input(door_pin):
                  print ('DOOR ALARM!'), datetime.datetime.now().strftime("%H:%M %Y-%m-%d")
          time.sleep(0.5)
      

      So your problem is getting an image? USB or IP cam?

      IP cam, cheap TrendNet TV-IP672PI. Haven't looked at the camera side yet to see how difficult that will be.

      Hoping I can just grab a picture with wget or curl.

      Looks like it does support RTSP, so I should be able to work with that 🙂

      travisdh1T 1 Reply Last reply Reply Quote 1
      • travisdh1T
        travisdh1 @travisdh1
        last edited by

        cvlc rtsp://192.168.0.13:554/play1.sdp --rtsp-user=someluser --rtsp-pwd=somepassword --sout=file/ps:/mnt/gluststor/secvid/test.mpg -Vdummy
        

        Grabs the video camera feed and records it without any X11 installed 🙂 Now all I have to do is figure out how I want to work the file storage and it's good to go.

        1 Reply Last reply Reply Quote 1
        • hobbit666H
          hobbit666
          last edited by

          Could this be monitored by Zabbix??

          Might do one myself if it can 😄

          scottalanmillerS travisdh1T 2 Replies Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @hobbit666
            last edited by

            @hobbit666 said in DIY Environment Monitoring:

            Could this be monitored by Zabbix??

            Might do one myself if it can 😄

            If you have sensors, yes.

            1 Reply Last reply Reply Quote 0
            • travisdh1T
              travisdh1 @hobbit666
              last edited by travisdh1

              @hobbit666 said in DIY Environment Monitoring:

              Could this be monitored by Zabbix??

              Might do one myself if it can 😄

              Yes. For Zabbix you'd just install the client.

              I'm having the sensors drop their information into /var/log with the idea that it would be very easy to integrate with log shipping or Splunk/splunk like programs.

              1 Reply Last reply Reply Quote 0
              • hobbit666H
                hobbit666
                last edited by

                Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                gjacobseG travisdh1T 2 Replies Last reply Reply Quote 1
                • gjacobseG
                  gjacobse @hobbit666
                  last edited by

                  @hobbit666 said in DIY Environment Monitoring:

                  Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                  you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                  travisdh1T 1 Reply Last reply Reply Quote 1
                  • travisdh1T
                    travisdh1 @hobbit666
                    last edited by

                    @hobbit666 said in DIY Environment Monitoring:

                    Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                    Water sensors are the simplest sensors you can possibly make, literally just two wires. It's crazy to see what companies charge for those. $50 for a piece of plastic that holds two wires, the only requirement is that the two wires never touch. So those are really super cheap and easy to add onto a Pi/Arduino.

                    If you want a network connection for each of them, then a Pi is going to be easier to deal with than adding that to an Arduino.

                    I just took a quick look, and zabbix-agent is included in the Raspbian repo.

                    1 Reply Last reply Reply Quote 2
                    • travisdh1T
                      travisdh1 @gjacobse
                      last edited by

                      @gjacobse said in DIY Environment Monitoring:

                      @hobbit666 said in DIY Environment Monitoring:

                      Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                      you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                      You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                      gjacobseG 1 Reply Last reply Reply Quote 2
                      • gjacobseG
                        gjacobse @travisdh1
                        last edited by

                        @travisdh1 said in DIY Environment Monitoring:

                        @gjacobse said in DIY Environment Monitoring:

                        @hobbit666 said in DIY Environment Monitoring:

                        Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                        you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                        You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                        They are something I have been looking at, but have no idea how to use.. I have no issue with concocting things,.. but seemingly no ability to program it.... I want to so some work with them,.. and replace the (self moderated) job of an alarm system and have a hybrid system.

                        travisdh1T 1 Reply Last reply Reply Quote 1
                        • travisdh1T
                          travisdh1 @gjacobse
                          last edited by

                          @gjacobse said in DIY Environment Monitoring:

                          @travisdh1 said in DIY Environment Monitoring:

                          @gjacobse said in DIY Environment Monitoring:

                          @hobbit666 said in DIY Environment Monitoring:

                          Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                          you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                          You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                          They are something I have been looking at, but have no idea how to use.. I have no issue with concocting things,.. but seemingly no ability to program it.... I want to so some work with them,.. and replace the (self moderated) job of an alarm system and have a hybrid system.

                          Well, if you go with a Raspberry Pi with an i2c temperature and humidity sensor, and door/window alarm, I've already got all the code you need right here.

                          gjacobseG thwrT 2 Replies Last reply Reply Quote 1
                          • gjacobseG
                            gjacobse @travisdh1
                            last edited by

                            @travisdh1 said in DIY Environment Monitoring:

                            @gjacobse said in DIY Environment Monitoring:

                            @travisdh1 said in DIY Environment Monitoring:

                            @gjacobse said in DIY Environment Monitoring:

                            @hobbit666 said in DIY Environment Monitoring:

                            Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                            you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                            You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                            They are something I have been looking at, but have no idea how to use.. I have no issue with concocting things,.. but seemingly no ability to program it.... I want to so some work with them,.. and replace the (self moderated) job of an alarm system and have a hybrid system.

                            Well, if you go with a Raspberry Pi with an i2c temperature and humidity sensor, and door/window alarm, I've already got all the code you need right here.

                            That will be a good start,... but the number if windows and doors,.. i really need something smaller,..

                            travisdh1T 2 Replies Last reply Reply Quote 0
                            • travisdh1T
                              travisdh1 @gjacobse
                              last edited by

                              @gjacobse said in DIY Environment Monitoring:

                              @travisdh1 said in DIY Environment Monitoring:

                              @gjacobse said in DIY Environment Monitoring:

                              @travisdh1 said in DIY Environment Monitoring:

                              @gjacobse said in DIY Environment Monitoring:

                              @hobbit666 said in DIY Environment Monitoring:

                              Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                              you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                              You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                              They are something I have been looking at, but have no idea how to use.. I have no issue with concocting things,.. but seemingly no ability to program it.... I want to so some work with them,.. and replace the (self moderated) job of an alarm system and have a hybrid system.

                              Well, if you go with a Raspberry Pi with an i2c temperature and humidity sensor, and door/window alarm, I've already got all the code you need right here.

                              That will be a good start,... but the number if windows and doors,.. i really need something smaller,..

                              Get a Pi Zero and just directly solder the sensors to it, rather than going with the breakout style connector I used.

                              1 Reply Last reply Reply Quote 2
                              • travisdh1T
                                travisdh1 @gjacobse
                                last edited by

                                @gjacobse said in DIY Environment Monitoring:

                                @travisdh1 said in DIY Environment Monitoring:

                                @gjacobse said in DIY Environment Monitoring:

                                @travisdh1 said in DIY Environment Monitoring:

                                @gjacobse said in DIY Environment Monitoring:

                                @hobbit666 said in DIY Environment Monitoring:

                                Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                                you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                                You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                                They are something I have been looking at, but have no idea how to use.. I have no issue with concocting things,.. but seemingly no ability to program it.... I want to so some work with them,.. and replace the (self moderated) job of an alarm system and have a hybrid system.

                                Well, if you go with a Raspberry Pi with an i2c temperature and humidity sensor, and door/window alarm, I've already got all the code you need right here.

                                That will be a good start,... but the number if windows and doors,.. i really need something smaller,..

                                If you can run wires to each window/door, a single Pi Zero will be able to run ~10 of those sensors. It could have up to 17 connected, but it would never be able to supply enough power for all of them.

                                Side note, if I remember correctly, those sensors only draw power when they are open (the two pieces of the sensor are separated). Still, wouldn't want a security system that could be burned out just by opening all the doors and windows.

                                gjacobseG 2 Replies Last reply Reply Quote 0
                                • thwrT
                                  thwr @travisdh1
                                  last edited by

                                  @travisdh1 said in DIY Environment Monitoring:

                                  @gjacobse said in DIY Environment Monitoring:

                                  @travisdh1 said in DIY Environment Monitoring:

                                  @gjacobse said in DIY Environment Monitoring:

                                  @hobbit666 said in DIY Environment Monitoring:

                                  Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                                  you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                                  You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                                  They are something I have been looking at, but have no idea how to use.. I have no issue with concocting things,.. but seemingly no ability to program it.... I want to so some work with them,.. and replace the (self moderated) job of an alarm system and have a hybrid system.

                                  Well, if you go with a Raspberry Pi with an i2c temperature and humidity sensor, and door/window alarm, I've already got all the code you need right here.

                                  The best sensors i've found looking at the price and features/precision are

                                  • Temperature: Maxim DS18B20 digital Dallas 1wire ($2 at amazon with 2m cable and steel immersion sleeve)
                                  • Humidity: DHT22 ($2-4). Not the best around, but you can easily spend like 10-100 times the price for others
                                  1 Reply Last reply Reply Quote 1
                                  • gjacobseG
                                    gjacobse @travisdh1
                                    last edited by

                                    @travisdh1 said in DIY Environment Monitoring:

                                    @gjacobse said in DIY Environment Monitoring:

                                    @travisdh1 said in DIY Environment Monitoring:

                                    @gjacobse said in DIY Environment Monitoring:

                                    @travisdh1 said in DIY Environment Monitoring:

                                    @gjacobse said in DIY Environment Monitoring:

                                    @hobbit666 said in DIY Environment Monitoring:

                                    Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                                    you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                                    You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                                    They are something I have been looking at, but have no idea how to use.. I have no issue with concocting things,.. but seemingly no ability to program it.... I want to so some work with them,.. and replace the (self moderated) job of an alarm system and have a hybrid system.

                                    Well, if you go with a Raspberry Pi with an i2c temperature and humidity sensor, and door/window alarm, I've already got all the code you need right here.

                                    That will be a good start,... but the number if windows and doors,.. i really need something smaller,..

                                    If you can run wires to each window/door, a single Pi Zero will be able to run ~10 of those sensors. It could have up to 17 connected, but it would never be able to supply enough power for all of them.

                                    Side note, if I remember correctly, those sensors only draw power when they are open (the two pieces of the sensor are separated). Still, wouldn't want a security system that could be burned out just by opening all the doors and windows.

                                    There lies the rub.. That is how the guy wired the sensors to begin with. There are 8 zones in the alarm panel zone one is a continuous run to three different doors on two different floors. Zone four is every window (14) and door (3) in the rest of the first floor. And there is a break some where in that line...

                                    travisdh1T 1 Reply Last reply Reply Quote 0
                                    • gjacobseG
                                      gjacobse @travisdh1
                                      last edited by

                                      @travisdh1 @thwr

                                      I'd like to run window/door with temp motion and glass in each room.

                                      But - Sometimes I don't get what I want...

                                      thwrT 1 Reply Last reply Reply Quote 1
                                      • thwrT
                                        thwr @gjacobse
                                        last edited by

                                        @gjacobse said in DIY Environment Monitoring:

                                        @travisdh1 @thwr

                                        I'd like to run window/door with temp motion and glass in each room.

                                        But - Sometimes I don't get what I want...

                                        So human body tracking / detection or do I get you wrong?

                                        gjacobseG 1 Reply Last reply Reply Quote 0
                                        • travisdh1T
                                          travisdh1 @gjacobse
                                          last edited by

                                          @gjacobse said in DIY Environment Monitoring:

                                          @travisdh1 said in DIY Environment Monitoring:

                                          @gjacobse said in DIY Environment Monitoring:

                                          @travisdh1 said in DIY Environment Monitoring:

                                          @gjacobse said in DIY Environment Monitoring:

                                          @travisdh1 said in DIY Environment Monitoring:

                                          @gjacobse said in DIY Environment Monitoring:

                                          @hobbit666 said in DIY Environment Monitoring:

                                          Thinking maybe having 2-3 sensors for different parts of the room then feed them into zabbix and alert if 1 goes over x. hmmmm see if I can get some cheap now and the sensors and some cables.

                                          you should be able to do that with no issues... have a look at the ESP8266 chip as an option for that.

                                          You made me look, Adafruit is at it again. HUZZAH ESP8266 Wifi, enough pins to make a useful control module, and can use the Arduino IDE to program the thing. So much win with that one.

                                          They are something I have been looking at, but have no idea how to use.. I have no issue with concocting things,.. but seemingly no ability to program it.... I want to so some work with them,.. and replace the (self moderated) job of an alarm system and have a hybrid system.

                                          Well, if you go with a Raspberry Pi with an i2c temperature and humidity sensor, and door/window alarm, I've already got all the code you need right here.

                                          That will be a good start,... but the number if windows and doors,.. i really need something smaller,..

                                          If you can run wires to each window/door, a single Pi Zero will be able to run ~10 of those sensors. It could have up to 17 connected, but it would never be able to supply enough power for all of them.

                                          Side note, if I remember correctly, those sensors only draw power when they are open (the two pieces of the sensor are separated). Still, wouldn't want a security system that could be burned out just by opening all the doors and windows.

                                          There lies the rub.. That is how the guy wired the sensors to begin with. There are 8 zones in the alarm panel zone one is a continuous run to three different doors on two different floors. Zone four is every window (14) and door (3) in the rest of the first floor. And there is a break some where in that line...

                                          Gag me. Every window in the same "zone"? I'd throw a hissy fit if it was supposed to be a professional install.

                                          I'd probably have a different "controller" in each room with the logs shipped to a central location.

                                          1 Reply Last reply Reply Quote 0
                                          • gjacobseG
                                            gjacobse @thwr
                                            last edited by

                                            @thwr said in DIY Environment Monitoring:

                                            @gjacobse said in DIY Environment Monitoring:

                                            @travisdh1 @thwr

                                            I'd like to run window/door with temp motion and glass in each room.

                                            But - Sometimes I don't get what I want...

                                            So human body tracking / detection or do I get you wrong?

                                            LOL - nothing that serious. Temp is for just how the house is heated / cooled. Motion and glass for entry detetction, as a option to the windows.

                                            thwrT 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post