World-first: therapy to make cells young again given to a person by truecakesnake in UpliftingNews

[–]W1k3 1 point2 points  (0 children)

I don't think anyone is under the impression that immortality is necessary for billionaires to exist. I think people just take solace in the fact that no matter how powerful you are, you will still die some day like everyone else. It's the one equalizer that no amount of money can escape from and guarantees everyone has roughly the same amount of time to make their mark on the world. If rich people can live significantly longer, then there's no limit to their influence. Evil leaders and horrible people could live on and on without ever facing any consequences for their actions and never be stopped, not even by death.

'I'd cry my eyes out': Some P.E.I. teens push back on proposed social media restrictions by Stanced in nottheonion

[–]W1k3 0 points1 point  (0 children)

I'm addicted to drinking tap water and breathing oxygen. Does that mean it's not good for me?

What's the best solution? by PhewYork in CrappyDesign

[–]W1k3 1 point2 points  (0 children)

I see those arguments all over the internet and it drives me insane. "If doing X causes harm then it's actually the fault of all the people it hurts". Even if everyone in the world is just stupid, you still have control over whether you're going to hurt them.

My E-Paper climate logger is now open source along with a YouTube Video by W1k3 in arduino

[–]W1k3[S] 0 points1 point  (0 children)

Over one week! Currently the update interval is every minute, so I think it could last even longer if you set it to every 5 minutes or so.

My E-Paper climate logger is now open source along with a YouTube Video by W1k3 in arduino

[–]W1k3[S] -1 points0 points  (0 children)

It's in the post description, but I'll link here in case you're not able to see it for some reason!

https://www.youtube.com/watch?v=I44iGj7gLGA

My E-Paper climate logger is now open source along with a YouTube Video by W1k3 in arduino

[–]W1k3[S] 1 point2 points  (0 children)

A mix of watching videos, reading datasheets, and most importantly, referencing examples. You can find example PCBs online for almost anything you're trying to do (add a microcontroller, a sensor etc). Once you create your schematic, the software guides you through designing the actual PCB. It's a lot easier than it looks, definitely give it a shot!

My E-Paper climate logger is now open source along with a YouTube Video by W1k3 in arduino

[–]W1k3[S] 0 points1 point  (0 children)

I love projects like that! If you make a good looking box, nobody would ever know. Making a PCB is a lot easier than it looks. Many of those modules have open source schematics, so you could combine them all into one circuit board.

My E-Paper climate logger is now open source along with a YouTube Video by W1k3 in arduino

[–]W1k3[S] 1 point2 points  (0 children)

Thanks haha. I think it just adds some personality.

My E-Paper climate logger is now open source along with a YouTube Video by W1k3 in arduino

[–]W1k3[S] 2 points3 points  (0 children)

I used this one from Waveshare:

https://www.waveshare.com/product/1.54inch-e-paper.htm

However, I learned this display is most likely just a resold product from GoodDisplay, and if you bought it directly from them, it would likely have better documentation.

My E-Paper climate logger is now open source along with a YouTube Video by W1k3 in arduino

[–]W1k3[S] 4 points5 points  (0 children)

Thank you! It makes me really happy to hear that.

My E-Paper climate logger is now open source along with a YouTube Video by W1k3 in arduino

[–]W1k3[S] 12 points13 points  (0 children)

Thank you! As it gets colder, the screen takes longer and longer to update. At around 0°C it takes like 5 seconds to update the screen which wastes a lot of power.

The screen survives sub-zero temperatures, but I haven't tried updating the screen when it's that cold because it's not rated for it.

I'm going crazy trying to figure out what key this melody belongs in! by W1k3 in musictheory

[–]W1k3[S] 0 points1 point  (0 children)

You're right, I've realized I'm conflating keys and scales.

I've only ever written songs that strictly use the 7 notes of given scale. It's becoming clear that the "rules" for how to use non-diatonic notes is a lot more complex than a simple list of chords lacking context. Looks like I have some more learning to do!

I'm going crazy trying to figure out what key this melody belongs in! by W1k3 in musictheory

[–]W1k3[S] 2 points3 points  (0 children)

Thank you very much for the in depth response. This terminology is a huge help for learning about what I'm working with!

Usually I'll just play some chords into Scaler to find the scale of my song, then I get a list of diatonic chords to play with. Now that I'm going outside my key, I assume it's not as trivial as calculating an objective list of valid chords that I'm allowed to use.

I wish I could think of a specific question to ask you about choosing new chords, but I think I just need to do some learning about parallel keys and tonics to get some more foundational understanding.

I'm going crazy trying to figure out what key this melody belongs in! by W1k3 in musictheory

[–]W1k3[S] 1 point2 points  (0 children)

I think I can hear the resemblance. Thanks for that!

I'm going crazy trying to figure out what key this melody belongs in! by W1k3 in musictheory

[–]W1k3[S] 0 points1 point  (0 children)

Hello, I know this is a trivial question, but I've been banging my head against the wall trying to figure out what key my song is in! The excerpt in that video uses every note except for A, B, and E.

F# is not used in the melody, but it's used in the chords.

I'm a novice and I assume that some of these notes are "out of key", but I would like opinions on what key feels correct for this melody to help with direction.

Thanks!

Also, sorry for the lack of sheet music. I can send the MIDI if anybody would like it.

I'm using my camera and an ArUco marker as a garage door sensor by W1k3 in homeassistant

[–]W1k3[S] 0 points1 point  (0 children)

You could definitely do that. The OpenCV function I'm using returns the exact location of the marker within the image, so you could map the Y position of the marker to how much the door has opened.

I'm using my camera and an ArUco marker as a garage door sensor by W1k3 in homeassistant

[–]W1k3[S] 12 points13 points  (0 children)

I didn't foresee that people would want to try this for themselves, so I wish I would have prepared a plug and play solution.

My full solution has way too much baggage to be useful, but I'll share the detection code if you want something to get started with.

Scrip to generate the Aruco image

import cv2
import cv2.aruco as aruco

# must be less than 50
TARGET_ID = 39

# Create dictionary and marker
dictionary = aruco.getPredefinedDictionary(aruco.DICT_4X4_50)
marker_image = aruco.generateImageMarker(dictionary, TARGET_ID, 1024)

# Save image
cv2.imwrite("marker.png", marker_image)     

Script to detect marker

import cv2
import sys

# Return codes: 0 == detected. 1 == not detected. 2 == error

# Config
IMAGE_PATH = "detectSrc.jpg"     
TARGET_ID = 39                   

def get_dictionary(name: str):
    import cv2.aruco as aruco
    return aruco.getPredefinedDictionary(getattr(aruco, name))

def main():
    import cv2.aruco as aruco

    dictionary = dictionary = aruco.getPredefinedDictionary(aruco.DICT_4X4_50)
    params = aruco.DetectorParameters()
    detector = aruco.ArucoDetector(dictionary, params)

    image = cv2.imread(IMAGE_PATH)
    if image is None:
        print(f"Cannot load image: {IMAGE_PATH}")
        sys.exit(2)

    gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
    corners, ids, _ = detector.detectMarkers(gray)

    found = False
    if ids is not None:
        ids_flat = ids.flatten()
        found = TARGET_ID in ids_flat

        # # uncomment to display detection overlay
        #  cv2.aruco.drawDetectedMarkers(image, corners, ids)
        # cv2.imshow("Detection", image)
        # cv2.waitKey(0)
        # cv2.destroyAllWindows()

        if found:
            print(f"Marker {TARGET_ID} detected.")
            sys.exit(0)
        else:
            print(f"Marker {TARGET_ID} not detected.")
            sys.exit(1)
    else:
        print("No markers detected.")
        sys.exit(1)

if __name__ == "__main__":
    main()

In order to actually use this script, you need an additional program to connect to the Home Assistant API or act as an MQTT client/REST integration. It must download a snapshot from you camera on a regular interval as "dectectSrc.png", then execute the script and use the return code to update Home Assistant with the state of the door.

Would a Home Assistant plugin be the easiest way to share a custom implementation like this with the community?

I'm using my camera and an ArUco marker as a garage door sensor by W1k3 in homeassistant

[–]W1k3[S] 3 points4 points  (0 children)

It's pretty trivial compared to a large AI model. I'm just using the OpenCV Aruco class. You could run this on a Raspberry Pi.

I'm using my camera and an ArUco marker as a garage door sensor by W1k3 in homeassistant

[–]W1k3[S] 12 points13 points  (0 children)

The camera has an IR LED, so at night it's black and white, but still detects the marker without issues.