Stop my room too hot through AppleScript + USB thermometer?

So, I am an encoder, I am doing PHP, JavaScript and Objective-C. I am currently working on the website for quite some time and, being 16, actually have no “office” except a table in my bedroom ... Therefore, I spend quite a bit of time in my room coding this website and I have little problem.

My bedroom is in the back of our house, with windows facing the West, so in the afternoon the sun shines in the windows, heating the room. Right now, when I print this, it is 28.5 degrees C, but it is getting as hot as 32, which is also too inconvenient for work.

Being a kind of geek, I wonder if it’s possible, or perhaps get a USB thermometer or the like that is Mac compatible, and then use AppleScript to detect when the temperature reaches a certain level. If, for example, up to 23 degrees, I would like to see a Growl notification saying: “Open a small window”, 25 degrees “Open both large windows”, and 28 degrees “Open all windows and door”, for example ...

I think it would be pretty neat, even if I were the only person who ever used it! So, is this possible, and where can I get a USB thermometer (if they even exist ...)? eBay? I also understand that this question is not directly related to programming, but I really did not know where else to ask it ... so is the programming question an opportunity to get data from USB devices via AppleScript? - there that will do.

Hurrah!

Jack

PS For all of you hardcore Arizona or Texans or something else, I live in the UK, and temperatures like 30 degrees make us leave;)

+4
source share
3 answers

Cheers Matee, there are many of them rickey 'ol USB thermometers up on Amazon and eBay and much more, as well as Google Shopping for about $ 15 (thats right about 22 of your pounds, for you because of the pond, a coincidence that 1.2 times twice the weight of the original XBox). In any case, with regard to the code, I would bet that you have a slightly sticky gate. Since the eye may wander, AppleScript does not support much hardware integration, it's more like a macro, right? Don’t think that I’m all talking and no trousers, although if I’m not a lawyer in the Baraka’s room, I did it for the donkey. The parent company (God will save the king) can implement it in the next release, but I would promise that they will leave us with a canary in a coal mine. Whatever you say, I'm just a man in clapham omnibus, anyway, the compilation of this commentary was correct royal. You British take care of her;)

-Look at the announcement

+4
source

You will not be able to directly monitor your USB device using applescript. Even if you can directly access the usb outputs, you do not know how to convert signals to temperature. However, if the device is Mac compatible, it will come with thermometer software ... and you can control this software with applescript. A quick Google search showed this, and he says the software is available for Apple. http://practsol.com/thummac.htm

+2
source

Answer a little late here, but right now, in Texas, I have my nephew who is digging a 60-inch hole X 16in X 4 feet right outside my home office. In it I will put a 40-foot copper pipe radiator. This will be the “core” of the geothermal loop to cool my mac. Yes, it is wildly watercooled, because the mods make me exceed TDP (this is MacPro1,1), but even before that my office got uncomfortably hot. Now it just makes my computer shut down when I try to encode a video. Not good.

In the UK, you should be able to do the same thing (well, at least cool your room) with just a ground loop, a cheap pump, and a fan with a copper pipe rolled up behind it. My project finished me very expensive because of its complexity and mistakes, but a simple system for cooling a room should cost less than £ 150-200, and, of course, this is a DIY project that you and your dad could do.

One of the main reasons for this is the cost of electricity (cooling) saved for me, literally a few hundred dollars a year. And this is green cooling. But the biggest reason is that I learned in the last 3 months.

Talk to your dad about this. It was fun and would be a good project for a young Scottish engineer!

+1
source

Source: https://habr.com/ru/post/1314673/


All Articles