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 -
@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-phatIt'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.
-
@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-phatThe one you got looks much nicer than what I used, and about the same price or even cheaper. Gotta love progress!
-
My Windows 10 VM poofed.
I think I see why...
Nothing showing up either..
-
Man is it hot out here.
-
@JaredBusch said in What Are You Doing Right Now:
My Windows 10 VM poofed.
I think I see why...
Nothing showing up either..
Well, why'd the storage disappear? That would be an issue all right!
-
@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...
Nothing showing up either..
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.
-
Yup, reboot incoming. could not even unmount it.
-
there we go.. time to move it and remount
-
It's a heat index of like 103.
-
@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.
-
@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.
-
@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.
-
@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.
-
@JaredBusch said in What Are You Doing Right Now:
there we go.. time to move it and remount
different random old drive installed and file moved back.
-
@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?
-
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.
-
Just found this...
-
-
About to install Korora on my new laptop.
Had to wait until bestbuy opened to get a USB-C to USB 3.0A adapter.