Some Bits: Nelson's log

13 posts in November 2023

Filtering MailChimp spam in Gmail

Trying a new thing: labelling all email from MailChimp in Gmail so I have a heads up it’s probably spam. I’m not quite ready to just stop seeing these mails but I’m getting there. Here’s the filter, thanks to JsKnox’ suggestion to filter on list:mcsv.net.

Matches: list:mcsv.net.
Do this: Apply label "mailchimp", Never mark it as important

I didn’t select the action “skip inbox”. That’d be the next step. (I find JsKnox’s suggestion to reply with email of your own amusing but way more than I’d do.)

I’m not convinced this filter is perfect. My old filtering on phrases in the mail like “view this email in your browser” catches more mailing lists. But they may not be Mailchimp mailing lists; some seem to be some other spam software. I may end up wanting to filter on those too but I’m going to focus on Mailchimp for now. That list:mcsv.net filter sure is easy.

Thoughts and Rant

I get a lot of spam from MailChimp, Intuit’s spam company. Four years have passed since I last looked at this; back then I concluded 93% of the mail MailChimp sent me was spam but the other 7% was useful enough I didn’t block them entirely.

It feels worse now. Nothing in the product has improved for me, they still have nothing for people who receive mail from MailChimp. We are the product, not the customer. Meanwhile Intuit has cemented their control over the spam market.

I didn’t bother categorizing all the recent Mailchimp mail I got. Some of it is stuff I want, local community organizations that use Mailchimp (because what else is there?). A lot of it isn’t. Holidays are worst, when every restaurant and hotel I ever foolishly gave my email address to eight years ago decides to sign me up for a new spam mailing list and suggests I pop in for Christmas dinner in Thailand or London or someplace else thousands of miles from me.

The key problem is how Mailchimp allows their customers to add people like me to new mailing lists without my consent. That should not be allowed. Every subscription to a list should require consent from the recipient. But that’s not how the business works.

Gmail is in an interesting position where they could make that how the business works. Just tune their spam filtering algorithm a tiny bit, maybe rank mail from new mailing lists where I didn’t opt-in via Gmail more like spam. That’d be absolutely crushing to Intuit’s business and would no doubt lead to lawsuits. Couldn’t happen to a nicer company.

EV Charging Curve

Electric cars charge more slowly the closer the battery is to full. This response is called the charging curve. I was confused about what I was seeing and was wondering where the power goes if it’s not charging the battery. Turns out it’s never consumed in the first place: the car requests less and less power as the battery gets full.

Level 3

Level 3 DC chargers dump a lot of power fast into the battery. This forum discussion from May 2022 has a graph of the charging curve for the C40 and the XC40.

This graph shows charging power going from 150kW down to 50kW as the car charges from 10% to 80% in more or less a straight line, then further down to 25kW or so at 90%.

Level 2

Level 2 AC charging at home is providing a lot less power, 10% or less the wattage of Level 3 (typically). Here’s the curve going from 80% to 90% as measured by my Emporia home charger.

This shows charging power going from 9.2kW to 4.4kW. The drop started when the car was about 95% full and is not instant but ramps down over the course of 5 minutes or so. (The graph looks identical for amps.)

What seemed weird to me is that the Level 2 power draw stays at 9.2kW (38 amps) pretty much all the way up to 95%. I was expecting it to ramp down like the Level 3 does. But I guess the Level 2 power is so much less than the Level 3 power that isn’t necessary.

What also seemed weird to me is I thought on Level 2 my car charged faster going from 40–50% than from 80%–90%. But it’s drawing the same 9.2kW, so where was that extra power going? But I realize now I don’t really have a good measurement of that. I’m just eyeballing the time. And those battery percentages the Volvo reports are not particularly accurate measurements of how much power is actually stored in the battery.

I still don’t understand the underlying physics and chemistry of what’s going on to make charging slower when it’s nearly full. My hand-wavy explanation is the resistance on the battery goes up, so if you try to force too much current through a nearly full battery it gets wasted as heat instead. (Or worse, starts a fire). So the charging circuitry only requests as much power as it can safely put into the battery without overheating it. I think this is all some fairly complicated digital control logic but maybe it’s as simple as a circuit that responds to resistance.

Anyway for Level 2 the charging curve effect is pretty negligible. And not visible at all if you only charge your car up to 90%, as recommended. It’s more important at a Level 3 charger but the systems take care of it automatically for you.

Android Automotive vs Android Auto

Quick notes about Android Automotive Operating System, AAOS. I like it quite a bit. It’s part of why I bought the Volvo C40 Recharge.

AAOS is an Android-based operating system for cars. As the owner of a car, what I see is that I now own another Android device in addition to my phone and tablet. It has a different UI but it works like Android. I can install custom apps on it. And the default apps are quite good. Google Maps, of course, but a special version with EV charging info built in. Even better it integrates with my car’s systems so Google Maps can, say, look at my battery charge and help me plan a route. It also has Android apps for controlling the air conditioning, etc. AAOS mostly is visible on the car’s central display but it also integrates deeper into the car systems and the dashboard display.

Car software generally sucks. AAOS doesn’t, it mostly seems good and modern and not some OEM nightmare.

AAOS is different from Android Auto. Android Auto lets you mirror your Android phone’s display onto a car screen. Apple’s CarPlay is the equivalent thing for iOS. My C40 supports CarPlay but not Android Auto. I think they decided that Bluetooth integration with an Android device, plus maybe a little OS support to bridge things from the phone, was enough. I’m happy that calls, text messages, and media playing still work fine from my phone. But mostly I just run Google Maps and Spotify on the car itself.

GM/Chevy recently made the news that they were dropping support for both CarPlay and Android Auto in new cars. They’re adopting AAOS instead. That’s weird; AAOS can support the display mirroring mode. Dropping CarPlay seems like a real mistake, folks in Apple’s ecosystem are going to miss it. Also the press release suggests they’re doing this because they want subscription revenue; they can’t charge you if you’re just using your mobile phone to control the car. That sucks.

There are fewer AAOS apps that Android Auto apps. And both systems require extra work to support by app developers, a separate UI and affordances to not distract the driver. Here’s some developer info about AAOS apps from Google.

In practice I find the apps I want for my car are on AAOS. PocketCasts, Spotify, PlugShare. It even has YouTube and a web browser (only usable when the car is parked). Strangely A Better Route Planner is not on my C40. They do have an AAOS version for Polestar, not sure what’s going on there.

Home EV chargers simplified

I was confused about what I’d need for a charger at home for my EV. It’s far simpler than I realized. Lots of notes here specific to North America. Simple summary: get an electrician to install a new 50 amp circuit with an NEMA 14-50 outlet on it. Then use your car’s provided charger or buy a high quality charger like a Chargepoint Flex or an Emporia for about $500. You’re done.

Here’s lots of detail I’ve learned in the last week or two. Shoutout to Reddit /r/evcharging and in particular this wiki page and this post. They have useful if opinionated info.

How AC charging a car works

I’m only talking about Level 1 & 2 charging you do with AC power from a wall outlet. I’m ignoring Level 3 charging: that’s high power DC stuff you’re not doing at home. With AC charging everything from the wall outlet to your car plug is just to supply AC power to your car. It’s mostly just a wire; all the fancy stuff is happening in the car itself. The thing we call “a charger” on the wall with the plug is doing so little that “charger” is not really the right word. The Reddit nerds prefer the term “Electric Vehicle Supply Equipment” (EVSE).

Most EVs today use a J1772 plug that is carrying +120V, -120V, and ground to your car. It’s mostly a fancy extension cord. There are also two signal wires: one is used to detect that the cable is plugged in, the other is a simple protocol that tells the car how many amps max it can draw from the charger. Providing those signals is the only extra necessary thing an EVSE is doing.

Tesla has a different plug, the NACS plug. And starting in 2025 all North American EVs will use this plug instead. I don’t know details but NACS is enough like a J1772 that adapters are simple and cheap. During the NACS transition we’re going to be using a lot of those adapters.

Note that EVs have a charging curve: batteries charge slower and less efficiently the more full they are. Details are complicated and vary by charging source and car type. But all EVs charge better up to 80% or 90%; that’s part of why they all recommend not charging to 100%.

Level 1 and 2 charging

Level 1 charging is powered via a plain old plug, 110V AC and an ordinary NEMA 5-15 outlet providing 15A maximum (12A in practice). That gets you about 1.3kW and will take about 3 days to fully charge a typical EV with an 80 kWh battery. Everyone scoffs at how slow this is but can actually be useful if you’re charging in your garage and don’t drive much. Don’t write it off entirely!

Level 2 charging is also powered by a plug or can be hardwired. It’s higher power: 240V AC and often a 50A circuit. These high power circuits use a special plug. A NEMA 14-50 is common and typically will get you about 9kW, that 80kWh battery can be charged overnight. If you already have a 240V circuit in your house you can still use it even if it’s lower power or a NEMA 6-50 outlet. Level 2 is what people install in their homes.

Installing a power circuit

Unless you are lucky you probably need to install a new circuit in your house and that will require an electrician and maybe a permit. Go ahead and install a 50 (or 60) amp circuit, it won’t cost much more. And install a NEMA 15-50 outlet for the extra neutral wire. All this takes a few hours. I had no problem adding a 50A circuit to my 100A house power supply but houses with funky wiring, who knows.

The folks on /r/evcharging prefer hardwiring instead of a socket. It eliminates one point of failure, the need for an outlet, and possibly a GFCI breaker. On the other hand it means you need an electrician if you ever replace your charger, or at least do some tricky wiring. I chose the plug. Also there’s a question whether the common Leviton 14-50 outlets are up to the task of continuous high power draw for EV charging. I decided it’d be OK.

One weird thing is that for continuous loads, you’re only supposed to go to 80% of maximum rated power. See here or here for details. A 50A circuit should only actually have a 40A charger plugged into it. That 14-50 plug is also max 50A, so plug-in chargers stop at 40A. Hardwired will go to 48A because the plug is not a point of failure, although you will need a 60A circuit and breaker for that.

Choosing a charger (EVSE)

The EVSE does so little it seems unnecessary to spend a lot of money on one. Your car probably came with an adequate one and it may be all you need. The main distinguishing factor of particular EVSEs is a bunch of fancy scheduling and tracking software which are really not necessary. Your car probably can schedule charging itself. The tracking is not terribly interesting.

However: that charger is in your house. With a lot of power passing through it. This is not the place to cheap out on dodgy goods. Amazon is full of generic $200-$250 level 2 chargers that are not UL certified. They probably work fine but what if they set fire to your house? In the end I decided to pay more like $400-$600 for a trusted brand with UL certification. Almost all of them come with fancy software which you might then just ignore.

The evcharging wiki has a good set of recommended charger brands. I narrowed it down to three that had a plug version and were available on Amazon: Autel, ChargePoint, and Emporia. All UL certified, $400-$500 (on sale), well reviewed on /r/evcharging. I also liked the look of the Flo dumb charger but it’s hardwired only.

In the end I chose Emporia, mostly because it was the cheapest. And while I think the smart options are superfluous Emporia has an interesting suite of smart home electricity products. Including an energy monitor and a way to schedule the car to charge when your solar system has surplus power. I’m not using any of that now but I liked what the company is doing.

Conclusion

In the end it’s pretty simple to set up an EV charger at home. Running the circuit is the only hard part. You know what’s great? Never waiting in line at a gas station again. Having your car fill itself up every night when parked at your house.

Genie Pro Screw Drive remote programming

Got a new car with HomeLink and paired it to my garage door’s rolling code. Worked great! But then Ken’s HomeLink he programmed last year stopped working. We reprogrammed his, then mine broke. Did mine again, his broke. All through this a simple battery clicker kept working.

A trip through the manual informed us that this particular model can only pair with 7 transmitters. They don’t say what happens when you try to program an 8th but it seems to be a LIFO system, the last one obliterates the previous one. (Me, I would have guessed FIFO and the ancient 1st code would stop working. But that’d probably be the battery clicker that came with the device.)

The manual also told us how to reset the thing so it had no codes programmed: hold the button for 10 seconds. So we did that, then reprogrammed all 3 remotes, and all 3 work now. Hooray! I am glad I had a Theory of Mind for my Genie.

See also this earlier post about various options for garage door opener communications.

Samsung vs Material You

I wrote about this awhile back: creating a new Android UI with Niagara Launcher, dynamic backgrounds, and colored icons. The neat trick is Tapet can set a background with a random palette, then Niagara can pick that up and make the icons match the colors of the background. It looks great on Pixel!

It does not work on Samsung devices, because of a bug / design flaw in their OneUI. Samsung’s Material You colors ignore the screen background and are by default some boring blue. You can statically change the blue to something else with Theme Park, but there’s no way to have it dynamically set based on the background something else sets.

I just documented this all in painful detail in this Tapet GitHub issue. The interesting thing is the author clarifies that Tapet is not actually a Live Wallpaper app, it’s doing something similar (or older?) with simple static backgrounds.

I think the Live Wallpaper app Muzei was briefly working the way I wanted on Samsung. Muzie set the background, then Niagara picked up the new colors and changed the icons. But I tried the same thing today and it didn’t work, so maybe I’m wrong.

Charging a non-Tesla at a Tesla charger

Tesla runs a great charging network. Actually two charging networks: the Superchargers are the crown jewel with fast Level 3 charging but there’s also Destination Charging which is a network of power Level 2 chargers that are prevalent. You can use some of these in EVs with J-1772 + CCS plugs but it’s awkward right now. It’s getting better since the agreement on NACS and the transition is going on. In a few years we’ll all be using Tesla-style plugs (now called NACS or J3400).

Here is a map of Tesla chargers that can work with non-Tesla cars. It includes both “Superchargers open to Non-Teslas” and “Destination Charging”.

Access to Tesla chargers is via the Tesla app. Destination Chargers are often free, paid for by the business and/or Tesla. (Free is customary for a lot of J-1772 Level 2 chargers, too.) But now destination chargers can take money, too. I think Superchargers have always cost money although Tesla sometimes offers free charging as an incentive to Tesla buyers. For non-Tesla cars they cost about $0.50/kWh in California, or about what Electrify America is charging. Cars typically get 2.5-4.5 miles per kWh so this costs about about $0.15 a mile, or roughly the same as gas costs.

Level 2 / Destination Charging

The first trick is plug compatibility. You have to bring your own adapter for a J-1772 car, you are unlikely to find one to borrow at a Destination Charger. Amazon is full of “Tesla to J1772” adapters for about $80 that physically connect the two types of plug. I think these are relatively simple devices but there’s a locking mechanism and maybe a little signaling. These adapters will only work with LTesla’s Destination Chargers, not Superchargers.

The second trick is electrical compatibility. I think this just works. Level 2 charging is basically just providing AC current for the car to deal with, the car itself chooses the amperage and charging schedule. So it’s relatively easy. Most of the Tesla adapters I see promise 40 or 48 amps which is about the max level 2 you’re likely to see. A few specify 60 amps. In my car at least, I have to manually select how many amps to draw (Update: that may not be necessary).

The map shows several hundred Tesla Destination Chargers in California. Only one in Grass Valley.

I used one of these Tesla chargers for free in March 2023 in Florida. Worked fine and Hertz had provided an adapter with my rental Polestar 2.

(Interesting thing: J-1772 to Tesla adapters are half the price of Tesla to J-1772 and are much smaller. I think this reflects that in general the J-1772 connector is bulkier and more complicated. I wonder if that’s part of why the auto makers were willing to adapt the Tesla plug. Amazon has a few cheaper adapters but they look like scams with fake reviews.)

Level 3 / Supercharging

Plug compatibility for Level 3 charging is via Tesla’s new Magic Dock. If you tell the supercharger you’re not in a Tesla, it will unlock an adapter to J-1772+CCS that will work with your car. (The “magic” is that the adapter stays locked to the cable so you can’t take it away.) The Magic Dock is something of a temporary solution as NACS rolls out. Tesla is incentivized because it will get billions of dollars in federal subsidies for providing CCS compatible chargers. Good, that’s the subsidy working, assuming the Tesla Superchargers do function as promised. Musk sure is good at capturing government subsidies, it’s a feature of all his businesses.

I don’t know anything about electrical compatibility. I believe Level 3 requires significant negotiation of charging power. Presumably the Tesla charger speaks whatever software protocol CCS uses. I wonder what the endgame is after NACS is fully rolled out; will there be one protocol standard or two?

The map shows exactly two Superchargers for non-Teslas in California: one in Placerville and one in Scotts Valley. Both are charging about $0.50/kWh.

Commentary

Tesla has done a fantastic job building out a fast charging network. There are Superchargers in lots of places, they work well, and often they are pleasant places. They have a mature product with memberships, incentives, and mechanisms for third party billing (like a car rental). And their plug and cables are lighter and easier to use than J-1772 + CCS. I’m glad they won the standards war.

I hope we get a robust market of competing Level 3 NACS chargers. It will make a huge difference in Americans’ willingness to switch to an EV. I keep hoping someone figures out a business model where the charger is a destination. It might take 30 minutes to fill up but if you know you can get a good coffee or some decent tacos and the WiFi works, that’s not so bad.

Volkswagen sure shit the bed with Electrify America. That could have been a real competitor to Tesla’s Supercharger, making lemonade from their emissions fraud lemons. But instead of embracing the opportunity they did a bad job building a charging network. There’s lots of chargers, sure, but they are always broken. Also the Walmart parking lots they tend to be in are not exactly lovely. And their website and app are badly implemented. In general it’s just a poorly executed product. Opportunity missed.

The web is full of spam when you look for info on Tesla and charging. Zillions of websites with wordy low quality content farm articles, presumably partly AI written.

Influx corruption / hardware failure

My Influx time series database corrupted itself. Hard to even see what was going on. Grafana couldn’t load data. The process was using 100% CPU. I finally figured out the logs are in journalctl -u influxdb.service -n 1000 but are super spammy. And don’t use useful error levels, so filtering with -p isn’t helpful. But I got lucky and saw a real message in the sea of log spam. And figured out Influx was restarting itself and then panicking every few minutes. Here’s the real error.

Nov 23 06:54:10 gvl influxd-systemd-start.sh[1801566]: panic: keys must be added in sorted order: dsm1_cache,database=telegraf,engine=tsm1<hostnamu=gvl,id=794,induxType=inmem,patx=/var/lyb/influhdb/data?telegraf/autoge~/794,retentionPolicy=autogen,walPath=/var/lib/influxdb/wal/telegraf/autogen/794#!~#writeDropped < tsm1_cache,database=telegraf,engine=tsm1,hostname=gvl,id=794,indexType=inmem,path=/var/lib/influxdb/data/telegraf/autogen/794,retentionPolicy=autogen,walPath=/var/lib/influxdb/wal/telegraf/autogen/794#!~#snapshotCount

Note the bogus path there that starts /var/lyb/influhdb. Looks like corrupted data in Influx’s internals and the code isn’t smart enough to recover from the file not existing. It’s helpful to see the ID 794, presumably that’s the particular table / series / whatever that is corrupted.

So wutdo? Naturally I don’t have any backup. Here’s what I did to brute force remove the corruption.

  1. Stop influx with systemctl stop influxdb. Also stopped all processes like telegraf that were writing to it.
  2. Make a backup of all the files in /var/lib/influxdb. It’s about 4.5GB and gzipping it is a mistake.
  3. Look at influxdb/data/telegraf/autogen/794/fields.idx. Happily this is readable text that gives a clue as to which series is corrupted. It’s some old data related to PVS6 monitoring that I’d like but can live without.
  4. fgrep -r 'var/lyb' . in the data files to see if I can spot the corruption. Yes, it’s in data/_internal/_series/02/0000. Also in data/_internal/monitor/2090/000000064-000000001.tsm.
  5. At this point use Google and search for info on rebuilding a corrupt InfluxDB. I found this page about “Rebuild the TSI index” that looks promising. In particular it involves removing all the _series files; one of those is what’s corrupt for me.
  6. Double check the backup is good, then follow those instructions. I remove all the _series directories.
  7. Joke is on me! influxd inspect returns unknown command "inspect"
  8. Try to start Influx anyway, maybe it’ll rebuild what it needs on its own?
  9. Get same error, now it’s tripping over that monitor file I didn’t remove.
  10. Look in the data directory, see a bunch of new _series directories. I guess it did rebuild them?
  11. Delete the monitor file that matches var/lyb. Also delete all the _series directories again since one seems to have picked up the corruption. Brute force but we’re desperate here.
  12. Restart influxdb.
  13. Success! It started without any freakouts. Presumably I lost that one data series but the others seem to work. I hope.
  14. Reboot as the easiest way to restart all the processes that want to write to InfluxDB.
  15. Launch Grafana and verify most of my stuff is still there. Also verify the PVS6 project whose data I clobbered is not there. RIP.

This is not the right way to fix a valuable database! But this database is only sort of valuable and it’s 6am on Thanksgiving and I haven’t had coffee yet. This will do fine.

What I should do next is set up Influx backups. Or maybe this is the time to try switching to timescaledb, a Postgres extension for time series databases.

Really what I should be worried about is how random data got corrupted on my machine like that. Cosmic rays do happen and if so well, eh, that’s the hidden cost of cheap hardware. But the machine is five years old and not 100% stable (this is the NUC that overheats) so maybe the hardware is failing.

I took a look at system metrics and what I found is disturbing. Telegraf stopped logging at around 17:30 (local time), an unexplained failure I’ll chalk up to InfluxDB failing. There’s gaps of data until about 01:00 when it finally gets stable again. CPU load spiked around 21:00, that may be when the Influx process started failing so badly. Although a lot of data got written after that.

I don’t see any evidence this happened before, at least not in the last week. I guess I’ll keep an eye on it and the second there’s second evidence of random data corruption I replace the hardware.

Update

Ugh, it happened again. This time it’s related to autogen 893 (not 794) and a small snippet of corrupt data: datarase=telugraf,enwine=tsm!,hostna}e=gvl. Very glad I wrote up notes last week, I’m just doing the same thing again to blow away the corrupted data and recover the rest.

Oddly this corruption is also in my PVS6 data, something I haven’t read from or written to in months. Maybe that’s just a coincidence, I think the specific corrupt data is different this time. Also I think it got triggered by my reading data for some other measurements in Grafana. Huh.

Given the pattern of substitutions, something’s flipping the fifth bit in random bits of storage or, more likely, memory. Presumably hardware failure, unless for some unlikely reason I’m the target of a state-sponsored rowhammer hack. Looking for new hardware now, probably a Beelink system.

Securing your Roku data

Roku is an excellent media streaming device. But it’s ridiculously cheap because their real business is selling data on what you watch to advertisers.

I haven’t found a good general Roku setting in the app for opting out of that surveillance. It’s not really in the app’s settings, other than you can turn off personalized ads. I presume they’re still selling my data.

I did find some hard-to-find web pages though.

California gives me special powers. Roku has a don’t-sell page for us hidden here. The UI is (deliberately?) confusing but I believe “Enabled” is the more private option.

Roku’s cookie settings gives you tools to opt out of not only their own cookies, but their ad partners too. The main thing it does is take you to this industry opt out tool which is a general purpose web thing. Only works with ad blocker disabled. I think this is just setting things on the specific web browser you visited it on and is not a broader account opt-out.

Roku is also embedding more and more ads in the app. There’s a secret menu to turn those off that works, at least for now. Hat tip to Andy for finding this page. The code is Home (5 times), then up right down left up.

Update: My Roku is actually a TCL television. I can’t find anything online about TCL privacy choices but when I emailed me they sent me to this web form to submit a request. An automated process got me to the point of them wanting my TV’s serial number that also says “Roku TV: This data is solely controlled by Roku TV. Please email the request to privacy@roku.com” so I guess that’s the end of that. The process was not friendly: 2 different CAPTCHAs and 3 separate verifications of email and phone number.

Securing your Plex data

The Plex video player launched a new social media feature where it shows you things like “your friend Nelson watched Totally Licensed Movie last night”. You can see your feed of friends’ activity at this link. This seems to be part of a broad new product effort called Discover Together.

I didn’t opt into this sharing. I don’t want my friends to see a list of the TV shows I watch. Plex unilaterally decided to start collecting and publishing that data without my explicit consent. Which video files I watch is private data and potentially a legal problem. I can see how it’d be useful for Plex to become more of a social media app. But the abusive way they launched it makes me want to go scorched earth and block every aspect of data sharing I can from Plex.

Update: in a discussion on Mastodon a Plex engineer responded with a personal (not official) comment and said

You should have been shown two screens at some point; one to opt-in or out of view state syncing, and another more recently to opt in or out of the social sharing stuff, and would have needed to opt-in to both for any of this to be shared with friends.

So it’s possible I clicked something at some point to allow this.

Update 2: over on Reddit someone posted what the UI looks like for the opt-in I might have clicked. There’s four screens that pop up interrupting whatever you turned your TV on to watch. The first three are marketing copy, the fourth is the consent request. It’s very unlikely I paid enough attention to this to make an informed choice. It also looks like the default was to opt people in to friends sharing.

Update 3: PC Gamer has an article about Plex’ explanation of how people got this turned on without their consent. Turns out the “You’re in control” UI has a flow which turns off the privacy without the user intending it. Terrible design although not clear if it’s malice or incompetence.

Here’s what I did to preserve my privacy. I found two major things to block in Plex: watch history and ad preferences. There’s also some other minor account settings. Details below.

Profile settings: activity sharing

You can opt out of sharing what you are watching with friends by going to this link to edit your profile and selecting “Privacy Settings” at the bottom. “My Watch History” is the one I found most invasive.

Account setting: ads and more

Plex has a bunch of other privacy settings in your account. You can edit them by going to this link to edit your account and looking at the bottom for Privacy. There are several links there.

The most useful one is the Ad Vendors page, where you can opt out of them selling your data to 100+ marketing companies. This only works in some US states (thank you, California!) You have to disable your ad blocker to see the UI that lets you change things.

Here’s the list of opt-out states. The obvious typos are perhaps an indicator of how seriously Plex takes this part of their product.
California Colorado Connecticut Virginia Utah Indiana Iowa Montana Oregon Tennessee Texas Massachusettes New Jersey Pennsylvania Deleware

There’s also a “Privacy Preferences” link that takes you to this part of the webapp. It looks mostly like legalese text but if you look closely there is a checkbox you can turn off for “Send playback data to Plex”.

Further up the account settings page there’s also “Sync Your Watch State and Ratings”. That’s also keeping a record of what you watch. I think this particular feature is private to you and it provides a useful function, so I’ve left this one on for now.

Dark patterns

Plex’s scattered privacy settings seem designed to make it hard for users to find and configure them. It’s so hard to even find these things that I had to write a whole blog post. And after spending 30+ minutes on this I’m still not sure I got it all configured the way I want.

The playback preferences are buried deep in thousands of words of legalese text. The ad vendor preferences are only available to users from certain jurisdictions. And then the UI doesn’t even work if you are running an ad blocker (as likely 98% of people who get to this page are).

Maybe that’s all just bad design, Plex is not the most professional product. But it sure feels intentional, to keep users trapped in choices that benefit the company.

Ubiquiti routers: garbage bandwidth stats

My Ubiquiti routers continue to vex me, Unifi OS has lots of problems. My latest complaint is it’s not even able to give me a basic accounting of how much bandwidth each device (IP address) on my LAN is using.

For instance, here’s what I think is a graph of the last month’s traffic for my Playstation. I downloaded a 60GB game on Nov 17. I also probably downloaded at least one other > 30GB game that month but I’m not positive.

In upper right it says 66.7GB download for the month. That is a plausible number but I think is low But then in the graph it shows an average of 0.8Mbps for the day of November 17. Also plausible? 0.8*86400 = 69GB. In the graph tooltip it says “Total Traffic” (for the day) is 9GB. That doesn’t agree with the graph data! And then in the chart below it says “All Traffic: 6GB” for the whole month. On a different screen for the device it says “Traffic Activity: 1.66GB”. It’s like they’re picking random numbers.

The displays are utter nonsense. This problem has been going on for years. (Before, they didn’t even have any traffic stats.) I’m not the only one complaining: see here or here or here or any of these.

Unifi also has a more ambitious “Traffic Identification” display where they try to show you bandwidth by application: Youtube, etc. Doing that reliably is hard, I would expect some inaccuracy. But counting by device IP should be really simple. Failing that makes me wonder what else is wrong in the router that is less visible. (BTW, that screenshot above may actually be what it thinks for my whole network, although in context it doesn’t seem to be. If I explicitly choose PS5 I get another graph that shows that same 1.66GB total and otherwise obviously wrong small numbers.)

Every time I see a product fail this badly I always wonder, do the engineers who work there give a shit? Do they use their own software?

PG&E rates and EV charging

I’m about to get an electric car so I’m looking again at what I pay for electricity. Up to 54¢ a kWh! We have some of the highest electricity prices in the world. Also some of the most unreliable power for a supposedly advanced nation. And occasionally PG&E’s negligence kills some people or a whole town.

I have two houses and a full panoply of rates I’m paying. It’s remarkably hard to find the actual rates on the website or in your bill but this PDF has an overview of the common residential plans. Also the rates are hard to understand. There’s two tiers: a “baseline” and then overage. I’m only looking at overage prices. Also prices may vary based on time of day or season of the year. In total I use about 7000 kWh a year in San Francisco and 17,000 kWh a year in Grass Valley. There’s solar in GV that gets me to about net zero for that house on a yearly basis.

I’m mostly interested now in what it will cost extra to charge my car. I’ll only charge at night. I’ll be paying fully the higher tier pricing for the incremental extra electricity. I’m guessing I’ll use about 3000 kWh a year (or 13% more) for the car. Because of how the NEM 2.0 rate plan works there’s no advantage to me charging directly from my solar: PG&E credits me fully for everything I give them.

In San Francisco I’m on the old E-1 plan. There’s no time of day or seasonal adjustment. I’m paying 45¢ for past-baseline power. My car will be charging at 45¢/kWh.

In Grass Valley I’m on the E-TOU-C plan. (I also have solar under NEM 2.0, but that can be ignored here.) Power is more expensive from 4pm to 9pm, and for the four months of summer. Past baseline, prices are 46¢ to 54¢ in summer and 41¢ to 44¢ in winter. My car will be charging at an average of 43¢/kWh.

PG&E has a second time of use plan, E-TOU-D. It discards the baseline discount, has a shorter time window for peak pricing, and has lower average rates. My car there would charge at about 39¢/kWh. I think my overall bill would be higher though.

PG&E also has a EV2-A rate plan for electric vehicle owners. It’s significantly cheaper from midnight to 3pm (26¢) but then 43-57¢/kWh during late afternoon and evening. The car would charge at 26¢/kWh but the rest of my bill will go up. Too early to tell if it’s a net improvement for me.

Bottom line, if I charge the car 3000 kWh a year I’ll be paying about $1350 a year just to charge the car at my current rates. Which is just about what I pay in gas right now for the old car. If I switch to the EV2-A plan I might save $600 charging the car, but then the rest of the bill will go up and I’m not sure how much.

Update: in Jan 2024 the CPUC gave PG&E another eye-watering rate rise. Here’s an estimate of new rates (I think)

  • E-1: 53¢/kWh
  • E-TOU-C plan: 46¢/kWh
  • E-TOU-D: 35¢/kWh
  • EV2-A: ???

PG&E (or rather Opower) has a “find your best rate plan” that re-runs your old bills through each pricing plan and tells you what you would have paid in each plan. It’s not useful to me right now, but might be useful after owning the EV for a few months.

Windows fan speed controls in 2023

Computer fan noise was annoying me in my office, this high pitched whine. So I went looking for Windows software to understand what my desktop was doing.

LibreHardwareMonitor is a good open source program for monitoring fan speeds. It’s a fork of OpenHardwareMonitor, which stopped getting updates in 2020. You just run it and it quickly gives you a list of fan speeds, CPU temperatures, and a bunch of other hardware sensors. It has support for a whole lot of hardware and requires precious little effort to get going.

Usually a PC’s BIOS controls fan speeds. My ASUS X570 has a fancy thing called Q-Fan which has little control graph settins of fan speed vs temperatures. This works pretty well. My vague memory is if you run the “Optimize” thing in the BIOS once everything works better, but you still want to tweak it manually afterwards. (Bonus memory: the Apple keyboard I usually use is not capable of opening the BIOS with F2/Del. Something weird about how it initializes, or rather doesn’t. I have to plug in a standard PC keyboard to open the BIOS.)

Fan Control is an open source program to override the BIOS’ fan settings. If you ever used the ancient SpeedFan program, this is a better version of the same idea. It has a very slick setup system where it enumerates all the fan controllers, then tries changing input power and then sees what the fan RPM sensors tell it happened. Once it’s set up you can then manually alter fan speeds (overriding the BIOS) or enable one of several “Curves” which automatically change fan speed in response to temperature or other sensors. I decided not to use this but if I wanted to do more than the BIOS’ settings, I would.

CPUStres is a Microsoft Sysinternals program to generate CPU load to test your cooling. I found this really confusing to use.

HeavyLoad is a third party program for generating load. It’s no cost but is not open source. it’s easy to use to peg your CPU and GPU to 100%. It has a weird bug where it launches but the GUI doesn’t get events; if you switch to another window and back it seems to work right.

I spent half an hour figuring out what the fans were in my computer.

  • Fan 1: the fan at the back of my computer chassis. Very quiet even at full speed, software controlled. Usually runs at 550RPM, max is about 830.
  • Fan 2: the fan in the middle of the Noctua NH-D15S CPU cooler. This gets a little noisy at full speed (1500 RPM) but usually runs more like 550 RPM. It’s the fan I hear when my computer gets busy and is a little annoying, but sounds like moving air and not a whine. Software controlled.
  • Fan 5: no idea what this is, it shows as 840 RPM almost always no matter how busy the system is. It is software controllable and I can hear it, but I never did quite find where it was. The ASUS BIOS shows an “AIO Pump” running at 840 RPM but I certainly don’t have any pumps or liquid cooling. Maybe someone reused the motherboard header for a fan for the motherboard chipset or something?
  • Mystery 2866 RPM Fan. The BIOS shows me a PCH fan running at 2866 RPM. I have no idea what that would be and there’s nothing running loud enough to be that fast. The speed slightly varies so I suspect the sensor is hooked to something.
  • Power supply fan. My Corsair RM750X has a fan. It has no software interface at all but does turn up or down based on temperature. It seems very quiet.
  • NVidia 1080 GPU fan. Almost always entirely off, gets up to 650 RPM or more when the GPU is busy. It’s pretty noisy when it turns on.

The ironic conclusion to all this: the noise wasn’t coming from my Windows machine at all. But rather the NUC Linux server in the closet. Noise goes away when I close the closet door, d’oh. This is the same NUC that is overheating and is unstable at full CPU speed. The fan does work, I haven’t looked at controlling it.