Recent submissions

Comment · 1 year ago
It's quite a big deal for people who have been told repeatedly "it's all in the head" by health professionals.
Comment · 2 years ago

  Location: Newcastle-upon-Tyne, UK
  Remote: Yes
  Willing to relocate: No
  Technologies: Python, Django, React, Node, C, Espressif ESP32, IoT
  Résumé/CV: https://www.linkedin.com/in/will-emmerson-06962340/
  Email: [email protected]
I'm a full stack developer with over 12 years experience using Python/Django/PostgreSQL but also have many years in other areas such as frontend (HTML/CSS/Bootstrap/React), firmware development (ESP32/C), and infrastructure (Linux/Docker/AWS/GCP).
Comment · 2 years ago
Try using literally any other embedded SDK and you'll realise that idf is actually a dream.
Comment · 2 years ago
Doesn't seem like a very fair comparison, you're using a cheap, unofficial knock-off ESP32 board which only allows up to 1v, compared to official Rpi and Arduino boards which go up to 3.3v. Perhaps you should use an official ESP32 devkit (https://www.espressif.com/en/products/devkits) and try running it again. I don't really understand why people bother buying other boards when the official ones are so cheap.

Having said all that, I have heard the analogue inputs aren't that great on the ESP32.

Comment · 2 years ago
You might be right about scale, but web servers already handle huge amounts of websockets, and already have complicated pub/sub schemes - think about a chat room for instance. I am using Django Channels which lets you define groups that other channels can subscribe to, and I'm sure other web frameworks have similar things. It seems easier to use than MQTT topics because it's all there right inside your webapp and DB, not on a seperate MQTT broker, this is the main thing that's attracting me to the idea.
Comment · 2 years ago
MQTT does solve this by storing messages on the broker but you can just store messages in your database instead and send them when the client connects, and personally I think this is easier.
Comment · 3 years ago
So you're saying it's all psychological? If this is true, why are so many with ME/CFS/Long COVID responding so well to LDN? I have had ME/CFS for 25 years and also practised mindfulness and pacing all that time yet it did nothing, but when I took LDN it instantly worked.
Comment · 3 years ago
I don't have anything intelligent to say about this but it's ALOT of fun making all the samples play at the same time - sort of like the HTML version of Ableton Live.
Comment · 3 years ago
Could be me/cfs, the defining feature is unrefreshing sleep but also "crashing" after overexertion, usually a day later. As mentioned you should look at r/cfs. Many people with cfs like myself have found Low Dose Naltrexone (LDN) useful, but it's not widely known about.
Comment · 3 years ago
Comment · 3 years ago
It's not completely related but I've been thinking that having a router connected via wireguard might be a good way to do IoT deployments.

Generally IoT devices make an outbound connection to a server and use MQTTS for bi-directional data flow, because of the difficulty of inbound connections due to firewalls, NAT etc. But this has some downsides in that you have to run an MQTT server, each device is doing it's own TLS (which uses a lot of ram and increases firmware size on an ESP32), and MQTT doesn't really have end-to-end message confirmation.

It seems like a better way would be for each esp32 device to be in a wireshark network and to be running it's own HTTP webserver (which is easy to do with the SDK). Therefore any device can be sent a message from the server using a simple POST request to its ip address, and can send messages to the server using the servers HTTP api. It's much easier to test HTTP api's than mess about with MQTT, and individual devices don't need to do SSL because all data between the devices and server is encrypted by wireguard.

I suspect there's something I've overlooked, I think addressing individual devices could be difficult if you only know their IP addresses.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton