Show HN: Midnight Reminders via Morse Code

(github.com)

127 points | by dmd 3 days ago ago

50 comments

  • Daub 2 days ago

    My father, who was almost certainly autistic, would try to teach me morse code by whistling all his conversations with me. This would go on for days without spoken communication.

    • wkjagt a day ago

      I'm trying to teach Morse code to my 10 year old kid and his friend. Even setting up soon to be modified CB radios for them to do it over the air. I'm actually testing out an antenna idea today at his friend's house.

      • Daub 3 hours ago

        Well I would avoid my father’s meathod if I were you. It did not work.

        I am now a teacher, and the task you describe got me thinking. It would be tempting to teach the association of letters with their related visual patterns of dash/dots. However, a 10 year old might do better if they learned the sound-forms of the letters as discrete entities, in the same way that they leaned the shape-form of the alphabet.

    • tra3 2 days ago

      Are you still fluent in Morse?

      • Daub 2 days ago

        Nope. It's all gone. Bless you dad.

  • lutusp 2 days ago

    I also suffer from this geriatric malady -- once a technology goes dormant, becomes a throwback museum piece, my interest increases.

    When I was 12 (1957) and really needed to practice code, talk to friends on my primitive homebrew ham radio, I instead dreamt of having single sideband. They say youth is wasted on the young, certainly true for me. :)

    Since we're talking about something entirely out of touch with modern life, I suggest an app that converts spoken code to plain text. Before having proper radio equipment, my friends and I would speak Morse code to each other, and somehow make ourselves understood. Among our classmates we already had a reputation for being out of touch with reality. This practice cemented the assumption, more by design than accident.

    73 de Paul KE7ZZ

  • swalberg 2 days ago

    How are the ergonomics of that key? Between the switch with the spring and having to hold that in your hand to use, I'm wondering how accurate the keying is? One suggestion might be a flat pad with a capacitive switch so you could just tap things out without even moving, but maybe the key works for you.

    Either way, a fun idea!

    73 de Sean N3RTW

    • dmd 2 days ago

      Absolutely awful! I'm very glad I didn't wire it straight into the pi but put a connector in the middle so I can replace it. It works and is silent to actuate but as you say the ergonomics are bad. I have to reach for it and it rattles around on the bedside table a bit (I've thought of maybe wrapping it in a piece of felt).

      Your idea sounds great - can you give me a suggestion (e.g. a M-C/Mouser/Digikey part#)?

      - N2SXX

    • uxx 2 days ago

      Their is no way this thing has any real use cases apart from emailing gibberish to yourself.

      • dmd 2 days ago

        It's been working reliably for me for a few weeks now, 1 or 2 messages a night.

        To be clear - I am not sending myself long emails! I am sending one or two words, like "TEMP PROB" or "MULCH" to jog my memory in the morning. And for that, it has worked flawlessly.

        • martyvis 2 days ago

          I would imagine that if you just had a switch connected to nowhere, in the morning you would remember what you Morse coded in any case just because it has raised your alertness

      • wkjagt a day ago

        This is Hacker News. Part of what makes it fun is that we show cool projects we did.

        Also, from the guidelines: "Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something."

        https://news.ycombinator.com/newsguidelines.html

      • simplecto 2 days ago

        pipe that through an LLM and you will have a page full of word salad :-)

        but seriously, this is a neat idea. and kudos to OP for building a full prototype -- this is the level of geekery I show up for.

        I remember the days of T9 on the old Nokia phones. I was so good that I didn't have to look down at the screen.

        My favorites were fixed in my phone. I knew how many down clicks on the button would land on the right friend/family member. I could literally send messages from my pocket.

        And yes, I admit -- I did engage in texting while driving. And this is the part where I justify it -- "but I had eyes on the road the whole time!"

        Oh! and there was old skits on late nite where people woudl compete with the old morse code guys.

        https://www.youtube.com/watch?v=pRuRE-Bwk1U

      • pavel_lishin 2 days ago

        That sounds like a very real use-case to me.

      • beala 2 days ago

        Platforms like the Pico have significantly reduced the cost of one-off niche electronics, and that’s great actually.

  • fn-mote 2 days ago

    My reaction: now we live in a world where a web service is necessary to send yourself email from a full-featured device connected to a local network. Yeesh. Longing for the old days of sendmail and self hosting.

    • dmd 2 days ago

      Not sure what you mean by 'full featured' - this is a microcontroller, with no OS.

      That said, yes, I could have had it talk SMTP directly - there is a SMTP library that works in MicroPython - but I figured I'd rather be able to do some stuff "in the middle", and not have to update the device itself. For instance, I might decide I want to have it consolidate all the messages into a single email. I can do that easily by updating my endpoint, without having to ever touch the device.

      And the endpoint is self-hosted, by the way.

    • didgeoridoo 2 days ago

      Not sure it’s “necessary” — you could probably get this working with sendmail (assuming it’s available on RPi Pico, I have no idea) but I think the assumption is that, at this point, we’re all a lot more familiar with POSTing to URLs.

    • nozzlegear 2 days ago

      "Necessary" is doing a lot of heavy lifting here.

    • tdeck 2 days ago

      Shameless plug, but if you want to send emails to yourself for free you can use the free API I created for that purpose. Then at least you don't need to write the web service :)

      https://varmail.me

    • TechDebtDevin 2 days ago

      But email spam has gotten so much better /s

  • devsda 2 days ago

    For those who are not familiar with morse, a more hardware tinkering free and expensive (and over engineered) solution that might work is

    1. Use one of those handheld landline phones with numbers.

    2. Connect it to asterisk via an ata/voip adapter.

    3. Configure a dial plan to log dtmf tones

    4. Enter message using numberpad like on any old telephone.

    5. Translate those numbers to text using t9 or any other custom scheme.

    If it works, it can do a lot like dial extension 1 for email, 2 for sms to someone else or 3 to control your devices. Keep in mind, setting up dial plans is probably the most challenging part in this whole setup.

  • bambax 2 days ago

    These kinds of projects are so cool and fun. Now all it needs is a 1/10 000 replica of the Titanic around it.

  • wkjagt a day ago

    If I understand your code correctly, you've hardcoded the speed of your keying ("-" if duration > 150 else "."), which is probably the only realistic way to do it without getting into some really involved decoding. Have you considered using an iambic paddle? It would be a lot easier to decode I imagine, because you already know the dits and dahs from which contact is pressed.

  • zoom6628 2 days ago

    It's an amazing solution. Personally I would go for index cards and a pencil. No noise, no light, and knowing my own tech limitations no stress of having to remember how to use something in middle of the night.

    But yours is wonderfully creative solution. It also has possibilities for use in Hospitals and by disabled and others who have severely limited ability to communicate.

    Lots of possibilities for this.

  • WalterBright 2 days ago

    I have a patent on morse code entry to a smartphone:

    Patent 6418323 Wireless mobile phone with Morse code and related capabilities

    I see there are at least two of us!

    The purpose is so you can secretly text other people under the table while in a boring meeting.

    • Grimblewald 2 days ago

      that patenting system is a sick joke, a cruel mockery of what it was intended for. Being able to patent Morse code, despite the clear existence of prior art is a prime example of that.

      • WalterBright a day ago

        It's not patenting Morse code. It's patenting adding the capability to a smartphone using a rocker switch.

        Besides, I'm pretty sure the patent has expired.

        My motivation on this was simply that I am an inventor, and what's an inventor without a patent here and there? The stuff I invented for D has not been patented.

        • Grimblewald a day ago

          Ok so my problem is, i made an app that lets me write in morse using volume up and volume down on my phone. It fits the bill of your patent. Now, an idea just about anyone with the need would have and could implement readily using exisiting technology in an evening has become a patented thing.

          Patents are supposed to protect innovators, to encourage public release of innovative ideas. Yet your patent would stifle useful, though in this case not particulalry innovative or broadly useful, tools.

          what is being protected by your patent, and others like it? An afternoon of thought. Not even a prototype in your patent, just lazy half assed schematics.

          patents like yours hold back society. Again, not this patent in particular, but the many like it. Just look at patent trolls. Usless dregs of society, making things difficult for true innovators by abusing a system that was supposed to benefit humanity.

          • WalterBright a day ago

            If you're familiar with my comment history, I'm actually opposed to the patent system, and most of the copyright system. Yes, in the past I made money selling copyrighted software. I continue to write software, making it freely available, and made no attempt to patent the innovations in it.

            Keep in mind that phones at the time did not have side buttons, the side buttons on my iphone are ergonomically unsuitable for use as a morse key, are in the wrong location for it, and there wasn't an app store then.

            I've also had many people copy my ideas, steal my software, and claim they invented them and wrote them. It gets a little tiring. I've used a registered copyright to stop some of those claims. Having a patent means I can solidly claim originality.

            I also hoped someone would see the patent and want to implement it, as I was focused on other things.

            • amy-petrik-214 20 hours ago

              You will get startup types blatantly ripping you off and stealing your ideas, and it's smiled upon to fight back and shut them down, sure.

              Conversely a person could start patenting obvious ideas (morse code + cell phone seems like one) and then thousands of people independently arrive at the idea unaware of prior work. So now all that legal paperwork backing meant to fight off the startup type, the dragon, is used on an innocent - he who fights dragons should be careful not to become a dragon himself

              IMO the patent system here is transformed into a "first person who calls dibs is the winner!" type free for all, and we get professional dib-callers. And the reason why it happens is the content of the patent, the ideation, execution, is all rote simple and not all that innovative.

    • Todd 2 days ago

      I see that was with Eric. I worked on his phone. It had two keys and the PM developed their own encoding. I strongly advocated for Morse. I wasn’t aware of this patent. Cheers

      • WalterBright a day ago

        Eric was quite a character, wasn't he? Nothing was ever dull with him around. It was fun working with him.

        I went to his memorial service. There was quite a crowd there. Eric created a ripple in the universe.

  • tqwhite 2 days ago

    I am so sad I don't know Morse code. This is the best idea ever.

  • cushychicken 2 days ago

    I thought Python didn’t support cgi scripts any longer.

    • notpushkin 2 days ago

      Why wouldn’t it? CGI is just an interface over stdio, and even though dropping `cgi` module from stdlib should be possible, I imagine it isn’t too hard to just continue supporting.

    • dmd 2 days ago

      Huh? I don't even know what "didn't support" would even mean.

      A CGI script isn't anything special. It's just "a thing that gets called with some environment variables, and prints out some text (on stdout) for the web server to send to the client".