News for hackers. Stuff that matters.
Re:1980s Amiga has been running the AC and heat in 19 school... by samfisher83 on Sunday December 16, 2018 @09:29AM (#18693158)
In the article it says the system was programmed by a highschool student 30 years ago. Now the replacement cost is 1.5-2 million.
Re:1980s Amiga has been running the AC and heat in 19 school... by pp19dd on Sunday December 16, 2018 @10:21AM (#18693415)
So much to say about this. One is the optics of employing students three decades ago, another is the remarkable faith they put into one at the time - which appears to have been well founded. Today, this sort of thing would never happen.

But overall, I get the feeling that people today are afraid of things they can't vendor out, things they can't replace cookie-cutter style. Sometimes that concern is justified, when you think in terms of support spanning decades, but overall I see it as a vertical integration of bureaucracy all around us.

It's not just this control system, it's everything. Was it Caltrans that hit a modernization roadblock because the agency hand-built railway sensors and circuits around that same time and now can't find replacement parts because people don't build things in-shop anymore?

Re:1980s Amiga has been running the AC and heat in 19 school... by coldtea on Sunday December 16, 2018 @02:06PM (#18694552)
>So much to say about this. One is the optics of employing students three decades ago, another is the remarkable faith they put into one at the time - which appears to have been well founded. Today, this sort of thing would never happen.

What remarkable faith? It's a program to start/stop AC/heat units based on temperatyre readings, not to send people to Mars.

A talented high school student can write one today, and do it with a Rasberry Pi and for much less than $1 million (more like 5-10K).

Not as a student, but as a temp in a secondary education unit, I maintained and updated the payroll system used to pay ~50 schools and over 1000 teachers every month. It was a VB/MS SQL thing written by another temp a few years earlier, but it did the job.

Re:1980s Amiga has been running the AC and heat in 19 school... by pp19dd on Sunday December 16, 2018 @03:15PM (#18694948)
Rhetorical question: were you a licensed CPP, CPA or an actuary when you were a temp in your secondary education unit? That's literally my point.

Yes, these things can all be done by amateurs. By tinkerers. We all here know it. We've done it. You've done it. Simple devices with telemetry and some logic. Simple programs that do complex things in the aggregate. Take it to your back yard, and either one of us or a highschool student could make a traffic light cheaper than $250,000 - $500,000 per intersection (WA state estimate). But neither one of us could build, install and maintain a quarter million of them, and I think you'd be hard-pressed to mobilize an army of nerds to make it scalable.

Yeah, for all we know a PE was involved in oversight of the project. That's an unknown that TV reporters didn't dig into and should have, because I think the story would discover a much more relaxed time.

But if one wasn't involved, I'm saying it took faith on behalf of the administration to assume responsibility for risk in backing this project, whether consciously considered or not. And there are risks with electrical projects beyond the computers, namely things catching on fire. What were the safeguards here? What if a logic error burned out a fan? What if someone hesitated to use the radios during a regular comm window out of habit and there was a medical emergency?

Faith here was well-founded because obviously nothing burned down and no one died. But who today would accept that risk without going to a licensed professional?

Re:1980s Amiga has been running the AC and heat in 19 school... by coldtea on Sunday December 16, 2018 @04:04PM (#18695233)
>Rhetorical question: were you a licensed CPP, CPA or an actuary when you were a temp in your secondary education unit? That's literally my point.

Well, in the real world it didn't matter at all.

The payroll sheets were then sent to the state's revenue service so that teachers would get paid. If there was an issue, the revenue service would spot it.

Occasionally there were a few slips, because this or that law regarding teacher compensation, insurance contributions etc changed 2-3 times a year. We'd just calculate the differences and issue correction invoices to compensate. At worst a teacher would get a month's salary when they shouldn't (e.g. they have stopped working, but the school didn't notify in time), and then have to give it back.

>Yes, these things can all be done by amateurs. By tinkerers. We all here know it. We've done it. You've done it. Simple devices with telemetry and some logic. Simple programs that do complex things in the aggregate. Take it to your back yard, and either one of us or a highschool student could make a traffic light cheaper than $250,000 - $500,000 per intersection (WA state estimate). But neither one of us could build, install and maintain a quarter million of them, and I think you'd be hard-pressed to mobilize an army of nerds to make it scalable.

The story is not for "a quarter million" of traffic lights, though (which would require tons of money, installations, construction work, big material orders, etc), but about an AC/heat controller for a school district.

Such things as the latter, a "tinkerer" can often do much better, faster, and more effectively than some "specialized" firm.

>But if one wasn't involved, I'm saying it took faith on behalf of the administration to assume responsibility for risk in backing this project, whether consciously considered or not. And there are risks with electrical projects beyond the computers, namely things catching on fire. What were the safeguards here? What if a logic error burned out a fan?

The student didn't install the AC/Heat units themselves.

And the school could always have a "licensed professional" come and check the student's program for correctness, for 1/10th or less of the cost of a 1.2 million dollar replacement, how about that?

Re:1980s Amiga has been running the AC and heat in 19 school... by pp19dd on Sunday December 16, 2018 @04:43PM (#18695452)
BTW, I wasn't against the idea of a right-sized approach, or against your previous work. Very much in favor of both those things. Your work obviously did very well. So did this automation 30 years ago. My whole original remark is about a temporal dimension, which is why I brought up the lights to anchor them to today.

Back then, you could do things more freely with less capable and available hardware. Different environment. Concept of computers was scratching the surface of what they could do for us, and people didn't have a notion of liabilities. And yes, the student didn't install the HVAC systems, but how did tele-operated harwdware interface with it? They didn't have echo dots and knockoff power plugs back then.

Today, you have all that available hardware but can't realistically do things as freely. Suffice it to say that the environment has clammed up on all fronts for an amateur to enter an industry. In some cases rightfully so (only experts for surgeries, plumbing and wiring for me please). In others, egregiously wrong barriers. For example, commonly the first thing that happens in a public institution or agency is that the losing bidder files FOIA requests trying to litigate why their solution was passed up and by whom, including copies of correspondence between them. Imagine having to deal with that dimension.

Back to traffic lights: for something so rudimentary yet so vital, it costs millions of dollars for a handful of intersections, and they're everywhere. Nearly a prime candidate for a four raspberry pi solution, right? You'd think someone would have attempted it.

Re:1980s Amiga has been running the AC and heat in 19 school... by coldtea on Sunday December 16, 2018 @05:43PM (#18695707)
>Today, you have all that available hardware but can't realistically do things as freely. Suffice it to say that the environment has clammed up on all fronts for an amateur to enter an industry. In some cases rightfully so (only experts for surgeries, plumbing and wiring for me please). In others, egregiously wrong barriers.

I agree, and I think that's the key insight in all this. For some things the extra legislation, rules etc make sense. In many other cases, they complicate things, and can even end up delivering not just a costlier but also a less effective outcome (e.g. the 100M government website when a 2-3M one made by a small team would do better).

Re:1980s Amiga has been running the AC and heat in 19 school... by 1996 on Sunday December 16, 2018 @06:14PM (#18695841)
I agree with your statement. 49% of the costs are about cover-your-ass. 49% of the costs are about mass production something that doesn't need mass production.

The rest is the actual cost of the product.

Re:1980s Amiga has been running the AC and heat in 19 school... by ValleZ on Sunday December 16, 2018 @03:31PM (#18695050)
Seems you have to much faith in licensed professionals.
Re:1980s Amiga has been running the AC and heat in 19 school... by pryce on Sunday December 16, 2018 @04:34PM (#18695398)
I didn't take the earlier point as a hagiographic endorsement of licensed professionals, so much as a comment on the changing mindsets of the people making these hiring decisions, and how over several decades that has moved from a sort of cowboy "anything-goes" approach towards a far more risk-averse one.

Outside of interesting questions like whether amateur tinkerers and hobbyists can be as reliable as professionals are other (also interesting) questions like "what factors drive the way institutions and corporations perceive and react to risk?"

Re:1980s Amiga has been running the AC and heat in 19 school... by codezero on Sunday December 16, 2018 @04:46PM (#18695470)
Where I lived, school could shut down for a week if the heat wasn’t working right. That has a huge financial impact.
Re:1980s Amiga has been running the AC and heat in 19 school... by tnecniv on Sunday December 16, 2018 @09:55PM (#18696618)
> What remarkable faith? It's a program to start/stop AC/heat units based on temperatyre readings, not to send people to Mars.

> A talented high school student can write one today, and do it with a Rasberry Pi and for much less than $1 million (more like 5-10K).

Yes, writing a bang-bang controller would be trivial. Even some kind of PID controller wouldn't be too hard for an enterprising high schooler to try.

What makes the professional systems valuable is that they can build much more accurate models of how the building heats and cools. These models depend on the building's geometry, usage patterns, outside climate, etc., and are notoriously hard to produce. However, they can produce meaningful savings over long time periods since they ultimately use less energy due to the quality model.

Re:1980s Amiga has been running the AC and heat in 19 school... by ams6110 on Sunday December 16, 2018 @10:26PM (#18696719)
Those accurate energy-saving models IMO fall apart because they keep buildings just a bit uncomfortably warm or cool, leading everyone to bring in plug-in space heaters, dehumidifiers, and fans. One other trick in the summertime when the central operations folks have decided that the building is cool enough but everyone is sweating, is to bring in a space heater and put it under the thermostat.
Re:1980s Amiga has been running the AC and heat in 19 school... by pp19dd on Sunday December 16, 2018 @11:24PM (#18696883)
Ah, but it's not always done for comfort optimization.

Older electrical meters weren't all that accurate, especially for larger systems - that's true even today. They're analog as an only option of measurement due to incredible amounts of power going through them (too noisy for hall effect sensors). Large buildings are reactive loads to the grid, almost like an inductor. Anyhow, older meters picked up velocity for usage calculations.

Some A/C controllers carefully modeled how fast the power meters accelerated as an instrument, then used that information against them, throttling and ramping power use to slow the measurements down, basically causing under-metering.

Saved USPS millions a year in power bills.

Re:1980s Amiga has been running the AC and heat in 19 school... by wrs on Sunday December 16, 2018 @12:26PM (#18693997)
Three (oh crap, closer to four) decades ago our high school minicomputer (DG Nova 2) handled all the grade reporting, class and athletics schedules, and alumni development mailings — all programmed and operated by a few students, in BASIC no less. It was a rare and invaluable experience to be essentially a trusted professional at that age.
Re:1980s Amiga has been running the AC and heat in 19 school... by zbaylin on Sunday December 16, 2018 @01:12PM (#18694237)
I worked for my local school district (second largest one in Georgia) and wrote production software while in high school. Much of it is still in use. That was only two years ago.
Re:1980s Amiga has been running the AC and heat in 19 school... by iamgopal on Sunday December 16, 2018 @12:54PM (#18694157)
Every company and government try to build wall of laws, standards, compliance, safety etc to save their ass and also so that they can loot it from inside.
Re:1980s Amiga has been running the AC and heat in 19 school... by Shacklz on Sunday December 16, 2018 @03:50PM (#18695149)
> so that they can loot it from inside.

That's one way to view it, another point of view would be that all those people whose jobs we're automating away still get to work somewhere doing something.

Re:1980s Amiga has been running the AC and heat in 19 school... by appleiigs on Sunday December 16, 2018 @11:21AM (#18693686)
They should get their students to build the replacement.
Re:1980s Amiga has been running the AC and heat in 19 school... by drdeadringer on Sunday December 16, 2018 @12:10PM (#18693918)
And not pay them 1.5-2 million [minus hardware], I wager.
Re:1980s Amiga has been running the AC and heat in 19 school... by dsamarin on Sunday December 16, 2018 @01:58PM (#18694496)
How about 20 raspberry pis connected to the Internet and pay them 2 thousand?
Re:1980s Amiga has been running the AC and heat in 19 school... by Groxx on Sunday December 16, 2018 @04:49PM (#18695484)
And then explain why their heater hacked the entire network, or helped DDoS the governor's site during an election? Probably not the best idea to hook things like this up to the internet.
Re:1980s Amiga has been running the AC and heat in 19 school... by topkai22 on Sunday December 16, 2018 @11:41AM (#18693776)
My guess is that the cost is mostly at the edge (needing to update the thermostats, control systems, communications systems and other HVAC equipment at the 19 campuses) not the software.
Re:1980s Amiga has been running the AC and heat in 19 school... by rvense on Sunday December 16, 2018 @10:06AM (#18693334)
They should just get the same guy to redo it with a Pi or a second-hand laptop.
Re:1980s Amiga has been running the AC and heat in 19 school... by pcdoodle on Sunday December 16, 2018 @11:53AM (#18693837)
This would shit the bed in less than a year. Pi will corrupt the sd card after a few ungraceful shut downs.
Re:1980s Amiga has been running the AC and heat in 19 school... by giobox on Sunday December 16, 2018 @01:49PM (#18694449)
This is a good reason to USB boot a Pi (yes, they’ve supported this for ages now) - no one should SD card boot a Pi in a production style environment, given the well documented card corruption issues.

Read only file systems on the SD boot volume are another solution, but this can cause other headaches (obviously) or may not be appropriate for the software you intend to run.

Re:1980s Amiga has been running the AC and heat in 19 school... by asix66 on Sunday December 16, 2018 @02:19PM (#18694641)
I have a RPi connected to my sprinkler solenoid valves via an OpenSprinklerPi board. It’s running the SIP [1] controller and a custom garage door plugin [2] I wrote.

It’s been running 24/7 in my garage since 2014. YMMV I guess?

[1] https://github.com/Dan-in-CA/SIP [2] https://github.com/andersix/sip_garage_plugin

Re:1980s Amiga has been running the AC and heat in 19 school... by PavlovsCat on Sunday December 16, 2018 @12:28PM (#18694007)
Run an Amiga emulator on it, never shut down! And because it's cheap, run that three times, and have an emulated gameboy sound the alarm if one of the three stops responding, or delivers a different answer than the other two.

Getting it all into a software state that can easily be transferred to "something that runs Linux and this emulator that requires next to nothing" certainly seems sensible at any rate.

Re:1980s Amiga has been running the AC and heat in 19 school... by kup0 on Wednesday December 19, 2018 @09:36AM (#18715824)
Have been running a Pi 24/7 for quite some time now with zero corruption.

Samsung EVO SD card, have multiple times rebooted by pulling the power (which is not ideal) because of unrelated issues that were due to some OS problems (SSH doesn't respond, etc) without a problem, but haven't had to do that in a long while after changing the OS and getting NIC stuff set up properly.

I have seen that the majority of SD corruption that happens tends to be in situations where Pis are being run under-powered off of a USB hub or something similar instead of a wall-plug.

I believe with a decent-quality SD card, and properly powering the Pi, the chances of SD corruption are relatively low. That said, I would prefer a USB3, SATA, NVME, or even eMMC interface, but the Pi has worked remarkably well for me. USB2 booting the Pi is always a backup option if my luck takes a turn for the worse

Re:1980s Amiga has been running the AC and heat in 19 school... by blhack on Sunday December 16, 2018 @01:00PM (#18694176)
I have a PI in an interactive art installation that gets power cycled pretty freaking often, and so far the card has held up.

It is something I worry about though.

Re:1980s Amiga has been running the AC and heat in 19 school... by lostlogin on Sunday December 16, 2018 @01:37PM (#18694392)
Can you just duplicate the card and use that image as a backup? I’ve stashed a few away like this but pcdoodle’s suggested solution sounds a lot more elegant.
Re:1980s Amiga has been running the AC and heat in 19 school... by giobox on Sunday December 16, 2018 @01:55PM (#18694487)
This is actually more difficult than you’d expect in some ways. The vast majority of card cloning guides will advise you to use the ‘dd’ command line utility, which makes an exact replica of the card, including the free space.

Unfortunately not all SD cards, even if advertised as the same capacity, are exactly the same size. If your replacement card is just 1 byte smaller your dd clone won’t restore - the “free” space has to fit into the target card as well.

Long story short - most popular methods of cloning microSD cards for the Pi only ensure the ability to restore to a larger SD card, not necessarily one of the same advertized size.

For sure there are workarounds, but it’s not as straightforward as you might assume. Personally I’m much more a fan of other tools such as rsync or version control etc for cloning data to and from Pi projects.

The better answer is just to USB boot the Pi anyway - they’ve supported this for a while now, no card corruption issues to mitigate.

Re:1980s Amiga has been running the AC and heat in 19 school... by lostlogin on Sunday December 16, 2018 @03:46PM (#18695134)
Thanks for this. I need to change what I’m doing.
Re:1980s Amiga has been running the AC and heat in 19 school... by blhack on Tuesday December 18, 2018 @05:49PM (#18711343)
rsyncing the entire root file tree should be good enough.
Re:1980s Amiga has been running the AC and heat in 19 school... by nijave on Sunday December 16, 2018 @06:13PM (#18695840)
Clonezilla?
Re:1980s Amiga has been running the AC and heat in 19 school... by pcdoodle on Sunday December 16, 2018 @01:19PM (#18694283)
Read only file system guides are out there. This makes it 90% more reliable.
Re:1980s Amiga has been running the AC and heat in 19 school... by FlyMoreRockets on Sunday December 16, 2018 @05:06PM (#18695550)
Re:1980s Amiga has been running the AC and heat in 19 school... by rvense on Sunday December 16, 2018 @01:03PM (#18694187)
Yeah, probably.
Re:1980s Amiga has been running the AC and heat in 19 school... by okket on Sunday December 16, 2018 @11:45AM (#18693810)
Right. I wonder what this Amgia can do what a Raspberry Pi or even ESP8266 can't? Bit banging a simple maintenance radio / 1200 baud protocol should not be that hard?
Re:1980s Amiga has been running the AC and heat in 19 school... by agumonkey on Sunday December 16, 2018 @01:54PM (#18694477)
in the decades of accumulated parts lying in the building they could probably make a rendering farm
Re:1980s Amiga has been running the AC and heat in 19 school... by analog31 on Sunday December 16, 2018 @06:20PM (#18695879)
There might be some survivorship bias at work here. Lots of things were programmed on early microcomputers. It seemed easy but control systems can harbor unexpected bugs that are hard to diagnose. The ones that failed were taken out of service and forgotten about.
Re:1980s Amiga has been running the AC and heat in 19 school... by madengr on Sunday December 16, 2018 @10:40AM (#18693491)
I built the burglar alarm system for my school, 28 years ago while in 12th grade. All TTL circuitry. That portion of the building was remodeled, so it was torn out after a few years, but I’m guessing the replacement cost for a commercial system was over $10k.
Re:1980s Amiga has been running the AC and heat in 19 school... by endorphone on Sunday December 16, 2018 @12:41PM (#18694078)
As is always the case, the replacement isn't simply a system doing an identical job on modern hardware. Instead they spec'd out a whole new system with new onsite controllers, bidirectional communications, integration with new systems, etc.
Re:1980s Amiga has been running the AC and heat in 19 school... by dospunk on Sunday December 16, 2018 @07:51PM (#18696207)
As other people have said, the money isn't just going towards replacing the Amiga. The school system wants to upgrade to more modern HVAC systems, which is good in the long run as they'll be more energy efficient and probably more effective.