corroded

joined 1 year ago
[–] corroded@lemmy.world 48 points 1 day ago (1 children)

Isn't it wonderful when your VPN client refuses to connect repeatedly until you realize you need to reboot your PC or restart the VPN service... and then go change your underwear.

[–] corroded@lemmy.world 6 points 2 days ago (1 children)

That's great until they decide to stop providing whatever content you licensed.

[–] corroded@lemmy.world 21 points 2 days ago (5 children)

If you're not receiving physical media, and you're not saving a copy to local storage, then you're not buying anything. You're renting it.

[–] corroded@lemmy.world 6 points 4 days ago (6 children)

I'm curious, why does this require OpenSSL in order to compile? I'm not aware of any audio formats that use encryption, but I could be wrong.

My first thought was for connecting to https streams, but I don't remember Winamp having this capability. "Back in the day," I used Winamp for playing local audio and RealPlayer for what little streaming was available.

[–] corroded@lemmy.world 27 points 1 week ago (2 children)

When it comes to writing code, there is a huge difference between code that works and code that works *well." Lets say you're tasked with writing a function that takes an array of RGB values and converts them to grayscale. ChatGPT is probably going to give you two nested loops that iterate over the X and Y values, applying a grayscale transformation to each pixel. This will get the job done, but it's slow, inefficient, and generally not well-suited for production code. An experienced programmer is going to take into account possible edge cases (what if a color is out of the 0-255 bounds), apply SIMD functions and parallel algorithms, factor in memory management (do we need a new array or can we write back to the input array), etc.

ChatGPT is great for experienced programmers to get new ideas; I use it as a modern version of "rubber ducky" debugging. The problem is that corporations think that LLMs can replace experienced programmers, and that's just not true. Sure, ChatGPT can produce code that "works," but it will fail at edge cases and will generally be inefficient and slow.

[–] corroded@lemmy.world 5 points 1 week ago (1 children)

I can't find a decent screen protector for my Galaxy S23, no matter how I try, and it's all due to the damned in-display fingerprint reader. Any adhesive-style screen protector has an open area for the fingerprint reader, and it's either a different material or a different thickness; they all look like shit. I've tried the screen protectors that use a UV-cured adhesive, and they're messy, difficult to apply properly, and generally a pain in the ass.

I've relegated myself to not using a screen protector at all, but considering my pocket lint scratches my screen, it sucks.

[–] corroded@lemmy.world 1 points 1 week ago

There are really two reasons ECC is a "must-have" for me.

  • I've had some variant of a "homelab" for probably 15 years, maybe more. For a long time, I was plagued with crashes, random errors, etc. Once I stopped using consumer-grade parts and switched over to actual server hardware, these problems went away completely. I can actually use my homelab as the core of my home network instead of just something fun to play with. Some of this improvement is probably due to better power supplies, storage, server CPUs, etc, but ECC memory could very well play a part. This is just anecdotal, though.
  • ECC memory has saved me before. One of the memory modules in my NAS went bad; ECC detected the error, corrected it, and TrueNAS sent me an alert. Since most of the RAM in my NAS is used for a ZFS cache, this likely would have caused data loss had I been using non-error-corrected memory. Because I had ECC, I was able to shut down the server, pull the bad module, and start it back up with maybe 10 minutes of downtime as the worst result of the failed module.

I don't care about ECC in my desktop PCs, but for anything "mission-critical," which is basically everything in my server rack, I don't feel safe without it. Pfsense is probably the most critical service, so whatever machine is running it had better have ECC.

I switched from bare-metal to a VM for largely the same reason you did. I was running Pfsense on an old-ish Supermicro server, and it was pushing my UPS too close to its power limit. It's crazy to me that yours only pulled 40 watts, though; I think I saved about 150-175W by switching it to a VM. My entire rack contains a NAS, a Proxmox server, a few switches, and a couple of other miscellaneous things. Total power draw is about 600-650W, and jumps over 700W under a heavy load (file transfers, video encoding, etc). I still don't like the idea of having Pfsense on a VM, though; I'd really like to be able to make changes to my Proxmox server without dropping connectivity to the entire property. My UPS tops out at 800W, though, so if I do switch back to bare-metal, I only have realistically 50-75W to spare.

[–] corroded@lemmy.world 2 points 1 week ago (3 children)

Social media companies, adult websites, whatever, can try to find ways to block children from accessing their content, but kids will always find a way around it.

It's the parents' responsibility to control their children. I've said 1000 times, children don't need access to smartphones and tablets. A desktop PC or laptop with strict parental controls is adequate enough for school work, learning about technology, and some basic entertainment.

When a child is old enough to work and pay for a smartphone themselves, then they're old enough to have a smartphone. A prepaid flip phone with basic voice and SMS is more than enough for a 15-year-old.

[–] corroded@lemmy.world 4 points 1 week ago (2 children)

I have a few services running on Proxmox that I'd like to switch over to bare metal. Pfsense for one. No need for an entire 1U server, but running on a dedicated machine would be great.

Every mini PC I find is always lacking in some regard. ECC memory is non-negotiable, as is an SFP+ port or the ability to add a low-profile PCIe NIC, and I'm done buying off-brand Chinese crop on Amazon.

If someone with a good reputation makes a reasonably-priced mini PC with ECC memory and at least some way to accept a 10Gb DAC, I'll probably buy two.

[–] corroded@lemmy.world 1 points 2 weeks ago

I really wouldn't write off the Shield completely. It's a few years old, but it works really well. My TVs are all disconnected from my network, and each has a Shield attached. The Shield can stream 4k HDR from Jellyfin, play ad-free YouTube with SmartTubeNext, and handles remote game streaming at 4k/60 with Sunshine/Moonlight. It's really a versatile little box.

[–] corroded@lemmy.world 3 points 2 weeks ago (1 children)

I appreciate the suggestion, but that looks like a Java library. Interpreted languages make me feel dirty. Java makes me feel even dirtier. If it's not C, C++, or ASM, is it really worth using?

[–] corroded@lemmy.world 24 points 2 weeks ago (4 children)

I'm okay with the "human-readability," but I've never been happy with the "machine-readibility" of XML. Usually I just want to pull a few values from an API return, yet every XML library assumes I want the entire file in a data structure that I can iterate through. It's a waste of resources and a pain in the ass.

Even though it's not the "right" way, most of the time I just use regex to grab whatever exists between an opening and closing tag. If I'm saving/loading data from my own software, I just use a serialization library.

 

I generally try to stay informed on current events. With the exception of what gets posted here, I normally get my news from CNN. I tend to lean left politically, but not always.

The problem I always run into is that every news site I read, regardless of where they stand on the political spectrum, is always filled with pointless bullshit. Specifically, sports, celebrity news, and product placement. "Some shitty pop singer is dating some shitty actor" or "These are our recommendations for the best mass-produced garbage-quality fast fashion from Temu" or "Some overpaid dickhead threw a ball faster than some other overpaid dickhead."

What I'd love to find is a news source that's just news that matters. No celebrity gossip, sports, opinion pieces, etc. Just real events that have an impact on some part of the world. Legislation, natural events, economic changes, wars, political changes, that kind of thing.

Does this exist, or is all journalism just entertainment?

 

I'm looking for a portable air conditioner (the kind with 1 or 2 hoses that go to outside air). The problem I'm running into is that every single one I find has some kind of "smart" controller built in. The ones with no WiFi connectivity still have buttons to start/stop the AC, meaning that a simple Zigbee outlet switch won't work. I could switch the AC off, but it would require a button-press to switch it back on. The ones with WiFi connectivity all require "cloud" access; my IoT devices all connect to a VLAN with no internet access, and I plan to keep it that way.

I suppose I could hack a relay in place of the "start" button, but I'd really rather just have something I can plug in and use.

I can't use a window AC; the room has no windows. I'll need to route intake/exhaust through the wall. So far, I can't find any "portable" AC that will work for me.

What I'm looking for is a portable AC that either:

  • Connects to WiFi and integrates with HA locally.
  • Has no connectivity but uses "dumb" controls so I can switch it with a Zigbee outlet switch.

Any ideas?

 

I just set up a local instance of Invidious. I created an account, exported my YouTube subscriptions, and imported them into Invidious. The first time I tried, it imported 5 subscriptions out of 50 or so. The second time I tried, it imported 9.

Thinking there might be a problem with the import function, I decided to manually add each subscription. Every time I click "Subscribe," the button will switch to "Unsubscribe," then immediately switch back to "Subscribe." If I look at my subscriptions, it was never added.

My first thought was a problem with the PostgreSQL database, but that wouldn't explain why some subscriptions work when I import them.

I tried rebooting the container, and it made no difference. I'm running Invidious in a Ubuntu 22.04 LXC container in Proxmox. I installed it manually (not with Docker). It has 100GB of HDD space, 4 CPU cores, and 8GB of memory.

What the hell is going on?

 

I've been running HA for a while, and it's been working well; I haven't had to change much in a few months. That being said, it's fun to tinker with it, and I'm curious to hear what kind of automations the rest of the community is using. What automations are you most proud of? What are your favorite? What kind of interesting automations have you written?

My personal favorite is an automation that displays the current "apparent" temperature on a Hue bulb. It takes an average of the temperature, humidity, and luminance around my property and uses the average to compute an "apparent" (feels like) temperature. Then it applies a cosine function to the apparent temperature (to approximate how people feel temperature change), uses the resulting value to calculate a level between blue and red in CIELAB (a perceptually uniform color space), converts the results to RGB, and sets the color value of the hue bulb. The result is a bulb that changes color so that the change in color (as perceived by the eye) mirrors how the temperature "feels" outside. Ultimately what that means is that we can look at a small lamp with the hue bulb and say "It feels cold outside; we should put on a coat." It's probably overkill, but it was a fun programming exercise. We've started saying things like "It's really blue today, I don't feel like going out."

I'd really enjoy reading what kind of interesting automations everyone else has written.

 

I have a decent amount of video footage that I'd like to share with friends and family. My first thought was Youtube, but this is all home videos that I really don't want to share publicly.

A large portion of my video footage is 4k/60, so I'm ideally looking for a solution where I can send somebody a link, and it gives a "similar to Youtube" experience when they click on the link. And by "similar to Youtube," I mean that the player automatically adjusts the video bitrate and resolution based on their internet speed. Trying to explain to extended family how to lower the bitrate if the video starts buffering isn't really an option. It needs to "just work" as soon as the link is clicked; some of the individuals I'd like to share video with are very much not technically inclined.

I'd like to host it on my homelab, but my internet connection only has a 4Mbit upload, which is orders of magnitude lower than my video bitrate, so I'm assuming I would need to either use a 3rd-party video hosting service or set up a VPS with my hosting software of choice.

Any suggestions? I prefer open-source self-hosted software, but I'm willing to pay for convenience.

 

I've been going through my system logs and working on resolving the miscellaneous errors; mostly it's just due to poorly-written automations where the automation would be called while it was still running. Easy fix.

What I can't seem to fix is a constant stream of "Unknown cluster command" errors on cluster 0xef00 coming from ZHA. I've discovered that the 0xef00 cluster is a manufacturer-specific cluster. All of my errors come from Tuya mmWave sensors; apparently Tuya uses this cluster for inter-device communication.

All of my devices work, but this error is polluting the logs to a large degree; right now it's showing over 100k instances of this error. Is there a way to have HA just ignore this cluster completely? It's not causing any issues with functionality, but I would rather the logs just show actual errors so I can more easily identify problems and fix them.

I've read that Z2MQTT doesn't have this issue, but swapping from ZHA to Z2MQTT is not an option for me, especially for what amounts to a logging issue. It would require re-pairing almost 100 Zigbee devices and modifying nearly every single automation.

25
submitted 8 months ago* (last edited 8 months ago) by corroded@lemmy.world to c/android@lemmy.world
 

I upgraded the head unit in my car recently. The head unit itself runs Android, and it supports Android Auto. So far, I've been using Android Auto via bluetooth, and it works great. I have no complaints.

I started using Android Auto just because it seemed logical, but I'm not understanding exactly what the benefits are. Since the head unit runs Android, couldn't I just install the apps I need on the head unit itself and just tether my phone for internet access? It also supports a 5G connection, so if I installed a SIM card, I don't think I'd need my phone at all. To be honest, I'm leading toward that; it just seems easier and a lot more straightforward.

I have no complaints about Android Auto, I just don't really see what it brings to the table other than a layer of abstraction over the head unit's native interface. It might be worth mentioning that the only thing I do in my car is streaming music and navigation.

What features am I missing? Surely there is a compelling reason for Android Auto to exist.

 

I'm using a variety of PIR motion sensors and mmWave presence sensors; most work fairly well, with a few exceptions. At this point, I have all the lights in my house automated, but with one exception: the master bedroom. I'd like to automate my bedroom lights so that they turn on when someone enters the bedroom unless someone else is already in bed sleeping. So far, none of the sensors I've used are precise or reliable enough to do this. I've thought about using the status of our phones (charging/not charging), but my girlfriend doesn't always plug in her phone when she's asleep. Scheduling won't work, since we both sleep at random times when we're off work, sometimes during the day. Maybe a pressure sensor under the mattress?

Aquara makes a device that's advertised as being able to detect multiple people as well as sleeping people. This would be perfect if it worked, but Aquara devices seem to be the ones that always cause me the most problems.

Any suggestions?

11
submitted 10 months ago* (last edited 10 months ago) by corroded@lemmy.world to c/homeassistant@lemmy.world
 

I have a rainwater collection system that feeds into several water tanks. I'd like to be able to monitor the tank levels for a variety of reasons, first and foremost because of the fact that we get almost no rain in the summer, and I have run the tanks to empty before.

In the past, I have used Milone eTape connected to an Atmel microcontroller to monitor water levels for a few different applications. I'd like to use this again if possible.

The eTape essentially acts as a potentiometer in a circuit. I've done some research on various ways to feed this into HomeAssistant, but I'm not really sure what's best. My water tanks are just behind the wall from my HA server, so I could connect directly with USB, serial, or ethernet. WiFi or Zigbee or also options; nearly every other device I have connected to HA is Zigbee.

What I'm ideally looking for is a device that can take a voltage level between 0-5VDC, or a 5k potentiometer, and feed the result into HA. Building something isn't out of the question (as long as I can program it in C or C++), but an off-the-shelf solution that integrates with HA would be ideal.

15
Resetting Hue Bulbs (lemmy.world)
submitted 10 months ago* (last edited 10 months ago) by corroded@lemmy.world to c/homeassistant@lemmy.world
 

I recently found a box in storage that contains about 10 Philips Hue bulbs; I had completely forgotten that I used them in the past. At the time, I had them paired to a Hue bridge. The newest is probably at least 6 years old, maybe a bit more.

I now have a Zigbee network with HA, and so I figure I might as well use the bulbs; they all still work. I can't figure out how to reset them so I can pair them to my Zigbee controller, though. Every article I read assumes that they're already connected to a bridge, to Amazon Alexa, I have a Hue dimmer controller, or something of the sort.

Is my only option to sign up for a Hue account, set up my old bridge, and reset them through the Hue app? Surely there must be some other way. I found a thread on [that other site that isn't Lemmy] that gives a routine of switching power on/off to cause a factory reset, but it doesn't work after several tries.

UPDATE: I was never able to find a method that worked without using my old Hue bridge. I ended up connecting the bridge and manually deleting each bulb. I few I had to add and delete again, but after about an hour of work, I was able to pair them all with HA.

26
submitted 11 months ago* (last edited 11 months ago) by corroded@lemmy.world to c/homeassistant@lemmy.world
 

I installed 6 Sonoff SN-ZB03 motion sensors this morning, and I'm getting so many false positives that they're essentially useless. I could understand having one that's bad, but 6?

Three of them seem to randomly trigger for no reason at all. One triggers any time the heater comes on, regardless of where I place it. The last two usually work but still give random false positives.

From what I'm reading, there are a lot of complaints about these. I probably should have done some research before I bought them. I can't shake the feeling that I'm doing something wrong. Is ITEAD really selling a motion sensor that just doesn't work properly?

I don't see any commands listed under "Manage Zigbee Device" that allow for a sensitivity change, and I can't find a datasheet or a manual for these other than the basic "quick start" guide. As far as I can tell, there's no firmware update available, either.

Am I stuck replacing all of these? If so, any suggestions on better ones? I've read good reviews of the Hue motion sensors, but they're not cheap.

EDIT: I've had some time to experiment with these a bit more. They can be made to work, but only in very specific circumstances. The ones I had outside would trigger constantly, as would the one I had in a room with a heater. They also seem to interfere with each other if they're too close to each other. I placed one in an attic area, and one in the stairs leading up; these are working flawlessly. So if you need a motion sensor for an indoor area that isn't climate controlled, doesn't have another sensor nearby, and doesn't have frequent lighting changes, these might work. Maybe for a closet? I won't be throwing these away, but there won't be a lot of cases where I use them.

13
submitted 11 months ago* (last edited 10 months ago) by corroded@lemmy.world to c/homeassistant@lemmy.world
 

Based on a number of excellent suggestions I got in previous thread, I have decided to convert all my smart home devices over to ZigBee. I have about 50 switches and sensors on-order at the moment.

One thing I can't seem to find is a controller for my pellet stove. My stove is installed in my workshop, and during the winter, I usually have to run out to the shop in the morning, turn the stove on, then wait for a hour or two for it to warm up.

I'm thinking that I'll most likely need to build a controller for the stove. I had some issues with the mainboard in the stove last year, so I'm fairly familiar with how it works. There area few sensors and relays.

  • An on/off sensor for the lid.
  • A safety sensor for the hopper (makes sure flames aren't feeding back into the hopper).
  • A pressure sensor to detect if the door is open.
  • An external temperature probe.
  • An internal temperature probe.
  • A relay for the igniter.
  • A relay for the motor that rotates the hopper.
  • A relay for the induction fan.
  • A relay for the fan that blows warm air out from the stove.
  • A potentiometer that switches the stove on and controls the temperature set point.

I have built a number of custom PCBs in the past, and I'm confident that I could build a replacement for the mainboard that includes a ZigBee radio. This requires a significant amount of design work for the PCB, programming for the microcontroller, etc. I'm also just now learning about how the ZigBee protocol works, so there would be a fair amount of research involved.

My other idea was to build a PCB that essentially acts as a programmable potentiometer, replace the pellet stove's pot with this PCB, and leave the mainboard as-is.

Has anyone here tried integrating a pellet stove into your home automation? How did you do it?

UPDATE: This was actually very easy. The potentiometer that controls my stove acts as a voltage divider. At 5V, it signals the stove to shut off, and at 0V, it's fully on. I just leave the potentiometer in the "off" position, and I added a zigbee relay in normally-closed mode in series with the wire feeding from the center. When the relay is "off," the stove sees 5V and does its normal shutdown routine. With the relay "on," the stove starts up. HA switches it based on temperature from a temperature sensor in the room. Depending on your stove, you might need a pull-down resistor (if it expects GND instead of an open), but it works perfectly for me.

view more: next ›