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

    What Are You Doing Right Now

    Scheduled Pinned Locked Moved Water Closet
    time waster
    88.9k Posts 285 Posters 42.7m Views
    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 @JaredBusch
      last edited by

      @JaredBusch said in What Are You Doing Right Now:

      @travisdh1 said in What Are You Doing Right Now:

      @JaredBusch said in What Are You Doing Right Now:

      I hate python, but this environment thing I bought says to use it.

      pi@pi-upsmon-01:~ $ cat log_temp.py 
      from envirophat import weather
      import time
      
      curdate = time.strftime('%Y%m%d')
      filename = 'temperature_' + curdate + '.log'
      openfile = open(filename, 'a+')
      openfile.write('Temperature: ' + str(round(weather.temperature(),2)) + '     Date: ' + time.asctime(time.localtime(time.time())) + '\n')
      openfile.close()
      

      Put that in crontab to run every minute last night.

      Resulted in this.

      pi@pi-upsmon-01:~ $ cat temperature_20170616.log 
      Temperature: 29.75     Date: Fri Jun 16 00:00:02 2017
      

      Now I need to set up email alerts.

      Easier to read than mine:

      tech@tempdoor-rpi /var/log/temp $ tail temp.log
      06/16/17 11:40:01, 29.0 C, 84.2 F, 58.6%
      06/16/17 11:50:01, 29.0 C, 84.3 F, 58.5%
      06/16/17 12:00:01, 29.1 C, 84.4 F, 58.3%
      06/16/17 12:10:02, 29.2 C, 84.6 F, 58.3%
      06/16/17 12:20:01, 29.3 C, 84.7 F, 58.1%
      06/16/17 12:30:01, 29.4 C, 84.9 F, 57.9%
      06/16/17 12:40:01, 29.5 C, 85.0 F, 57.7%
      06/16/17 12:50:01, 29.6 C, 85.2 F, 57.5%
      06/16/17 13:00:01, 29.7 C, 85.4 F, 57.3%
      06/16/17 13:10:01, 29.8 C, 85.6 F, 57.1%
      

      Of course I was just after an easy to process format, which a csv can be processed by almost anything.

      What board are you using?

      This is the one I purchased.
      https://shop.pimoroni.com/products/enviro-phat

      It's an i2c temp/humidity sensor of some sort: Something like https://www.adafruit.com/product/1899

      It's the one I used way back for that DIY environment monitoring thread.

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

        @JaredBusch said in What Are You Doing Right Now:

        @travisdh1 said in What Are You Doing Right Now:

        @JaredBusch said in What Are You Doing Right Now:

        I hate python, but this environment thing I bought says to use it.

        pi@pi-upsmon-01:~ $ cat log_temp.py 
        from envirophat import weather
        import time
        
        curdate = time.strftime('%Y%m%d')
        filename = 'temperature_' + curdate + '.log'
        openfile = open(filename, 'a+')
        openfile.write('Temperature: ' + str(round(weather.temperature(),2)) + '     Date: ' + time.asctime(time.localtime(time.time())) + '\n')
        openfile.close()
        

        Put that in crontab to run every minute last night.

        Resulted in this.

        pi@pi-upsmon-01:~ $ cat temperature_20170616.log 
        Temperature: 29.75     Date: Fri Jun 16 00:00:02 2017
        

        Now I need to set up email alerts.

        Easier to read than mine:

        tech@tempdoor-rpi /var/log/temp $ tail temp.log
        06/16/17 11:40:01, 29.0 C, 84.2 F, 58.6%
        06/16/17 11:50:01, 29.0 C, 84.3 F, 58.5%
        06/16/17 12:00:01, 29.1 C, 84.4 F, 58.3%
        06/16/17 12:10:02, 29.2 C, 84.6 F, 58.3%
        06/16/17 12:20:01, 29.3 C, 84.7 F, 58.1%
        06/16/17 12:30:01, 29.4 C, 84.9 F, 57.9%
        06/16/17 12:40:01, 29.5 C, 85.0 F, 57.7%
        06/16/17 12:50:01, 29.6 C, 85.2 F, 57.5%
        06/16/17 13:00:01, 29.7 C, 85.4 F, 57.3%
        06/16/17 13:10:01, 29.8 C, 85.6 F, 57.1%
        

        Of course I was just after an easy to process format, which a csv can be processed by almost anything.

        What board are you using?

        This is the one I purchased.
        https://shop.pimoroni.com/products/enviro-phat

        The one you got looks much nicer than what I used, and about the same price or even cheaper. Gotta love progress!

        1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch
          last edited by

          My Windows 10 VM poofed.

          I think I see why...

          0_1497636409113_f4c3775c-fbbe-4522-ad6c-44320bc53f67-image.png

          Nothing showing up either..
          0_1497636455038_996e115f-4e21-4a1e-aee9-9fee2ec5c3f7-image.png

          travisdh1T 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Man is it hot out here.

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

              @JaredBusch said in What Are You Doing Right Now:

              My Windows 10 VM poofed.

              I think I see why...

              0_1497636409113_f4c3775c-fbbe-4522-ad6c-44320bc53f67-image.png

              Nothing showing up either..
              0_1497636455038_996e115f-4e21-4a1e-aee9-9fee2ec5c3f7-image.png

              Well, why'd the storage disappear? That would be an issue all right!

              JaredBuschJ 1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @travisdh1
                last edited by

                @travisdh1 said in What Are You Doing Right Now:

                @JaredBusch said in What Are You Doing Right Now:

                My Windows 10 VM poofed.

                I think I see why...

                0_1497636409113_f4c3775c-fbbe-4522-ad6c-44320bc53f67-image.png

                Nothing showing up either..
                0_1497636455038_996e115f-4e21-4a1e-aee9-9fee2ec5c3f7-image.png

                Well, why'd the storage disappear? That would be an issue all right!

                Drive is failing. did you not notice what I posted?

                I'll reboot shortly. See it if reattaches and copy it off.

                1 Reply Last reply Reply Quote 1
                • JaredBuschJ
                  JaredBusch
                  last edited by

                  Yup, reboot incoming. could not even unmount it.

                  0_1497638257640_9dd21079-9e7a-40d1-9de3-fa111650ca21-image.png

                  1 Reply Last reply Reply Quote 1
                  • JaredBuschJ
                    JaredBusch
                    last edited by

                    there we go.. time to move it and remount
                    0_1497638614676_2d6f234e-868a-4136-ac0e-7c48f368a26e-image.png

                    JaredBuschJ 1 Reply Last reply Reply Quote 1
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      It's a heat index of like 103.

                      NerdyDadN 1 Reply Last reply Reply Quote 0
                      • NerdyDadN
                        NerdyDad @scottalanmiller
                        last edited by

                        @scottalanmiller said in What Are You Doing Right Now:

                        It's a heat index of like 103.

                        But that's the heat index. Not the actual heat. More of...what it feels like, instead of what it actually is.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          Texkonc @NerdyDad
                          last edited by

                          @NerdyDad said in What Are You Doing Right Now:

                          @scottalanmiller said in What Are You Doing Right Now:

                          It's a heat index of like 103.

                          But that's the heat index. Not the actual heat. More of...what it feels like, instead of what it actually is.

                          We understand what heat index means.

                          NerdyDadN 1 Reply Last reply Reply Quote 0
                          • NerdyDadN
                            NerdyDad @Texkonc
                            last edited by

                            @Texkonc said in What Are You Doing Right Now:

                            @NerdyDad said in What Are You Doing Right Now:

                            @scottalanmiller said in What Are You Doing Right Now:

                            It's a heat index of like 103.

                            But that's the heat index. Not the actual heat. More of...what it feels like, instead of what it actually is.

                            We understand what heat index means.

                            Are yall sure? Because everybody knows

                            Texas + Summer = HOT

                            We haven't even gotten to the consistent triple digits and people are already complaining.

                            JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 1
                            • JaredBuschJ
                              JaredBusch @NerdyDad
                              last edited by

                              @NerdyDad said in What Are You Doing Right Now:

                              @Texkonc said in What Are You Doing Right Now:

                              @NerdyDad said in What Are You Doing Right Now:

                              @scottalanmiller said in What Are You Doing Right Now:

                              It's a heat index of like 103.

                              But that's the heat index. Not the actual heat. More of...what it feels like, instead of what it actually is.

                              We understand what heat index means.

                              Are yall sure? Because everybody knows

                              Texas + Summer = HOT

                              We haven't even gotten to the consistent triple digits and people are already complaining.

                              Except, June 16 != Summer.

                              1 Reply Last reply Reply Quote 0
                              • JaredBuschJ
                                JaredBusch @JaredBusch
                                last edited by

                                @JaredBusch said in What Are You Doing Right Now:

                                there we go.. time to move it and remount
                                0_1497638614676_2d6f234e-868a-4136-ac0e-7c48f368a26e-image.png

                                different random old drive installed and file moved back.

                                0_1497649215470_e0b46303-c75c-4de3-a9f7-90a1a20f8fb3-image.png

                                1 Reply Last reply Reply Quote 1
                                • scottalanmillerS
                                  scottalanmiller @NerdyDad
                                  last edited by

                                  @NerdyDad said in What Are You Doing Right Now:

                                  @Texkonc said in What Are You Doing Right Now:

                                  @NerdyDad said in What Are You Doing Right Now:

                                  @scottalanmiller said in What Are You Doing Right Now:

                                  It's a heat index of like 103.

                                  But that's the heat index. Not the actual heat. More of...what it feels like, instead of what it actually is.

                                  We understand what heat index means.

                                  Are yall sure? Because everybody knows

                                  Texas + Summer = HOT

                                  We haven't even gotten to the consistent triple digits and people are already complaining.

                                  But we've had a week of triple digit HI and it's only spring.

                                  Texans don't know hot. I lived in Nicaragua, remember?

                                  1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller
                                    last edited by

                                    My wife just asked me if you google my name, if I come up on the first page. LOL

                                    Apparently she doesn't use the Google.

                                    1 Reply Last reply Reply Quote 1
                                    • scottalanmillerS
                                      scottalanmiller
                                      last edited by

                                      Just found this...

                                      https://stratsolutions.com/author/scott-alan-miller/

                                      EddieJenningsE 1 Reply Last reply Reply Quote 0
                                      • EddieJenningsE
                                        EddieJennings @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in What Are You Doing Right Now:

                                        Just found this...

                                        https://stratsolutions.com/author/scott-alan-miller/

                                        Congrats? 😛

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • brianlittlejohnB
                                          brianlittlejohn
                                          last edited by

                                          About to install Korora on my new laptop.
                                          Had to wait until bestbuy opened to get a USB-C to USB 3.0A adapter.

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @EddieJennings
                                            last edited by

                                            @EddieJennings said in What Are You Doing Right Now:

                                            @scottalanmiller said in What Are You Doing Right Now:

                                            Just found this...

                                            https://stratsolutions.com/author/scott-alan-miller/

                                            Congrats? 😛

                                            Something like that.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 4443
                                            • 4444
                                            • 5 / 4444
                                            • First post
                                              Last post