Better HN
topnewbestaskshowjobs
Log inSign up

willemmerson

235 karma · joined Feb 8, 2013 (13y ago) · 65 submissions

willemmerson@gmail.com
Submissions

comment 1y ago · link · parent

It's quite a big deal for people who have been told repeatedly "it's all in the head" by health professionals.

2.

David Bowie Outside(leontakesusoutside.com ↗)

2 points · by willemmerson · 2y ago · discuss

comment 2y ago · link · parent

  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: willemmerson@gmail.com
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 2y ago · link · parent

Try using literally any other embedded SDK and you'll realise that idf is actually a dream.

comment 2y ago · link · parent

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 2y ago · link · parent

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 2y ago · link · parent

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.

8.

Ask HN: Using WebSockets instead of mqtt for IoT

2 points · by willemmerson · 2y ago · 5 comments

9.

Meat Boy and other stories: My life in video games(bbc.co.uk ↗)

2 points · by willemmerson · 3y ago · discuss

comment 3y ago · link · parent

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 3y ago · link · parent

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 3y ago · link · parent

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 3y ago · link · parent

What about https://randomnerdtutorials.com/lilygo-t-sim7000g-esp32-lte-...?

comment 3y ago · link · parent

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.

15.

Game Breaking Demo Hack in Rocket League(youtube.com ↗)

1 points · by willemmerson · 4y ago · discuss

comment 4y ago · link · parent

I'd be interested if it's Newcastle.

17.

Necto: Rocket League bot using deep learning(github.com ↗)

1 points · by willemmerson · 4y ago · discuss

18.

Pensions: Millions receive wrong amount 'for decades'(bbc.co.uk ↗)

2 points · by willemmerson · 4y ago · discuss

19.

Loko: Tiny long-range LoRa GPS tracker(crowdsupply.com ↗)

1 points · by willemmerson · 4y ago · discuss

20.

Mission: Joy – With Archbishop Desmond Tutu and the Dalai Lama(bbc.co.uk ↗)

3 points · by willemmerson · 4y ago · discuss

21.

Fall on walk from bed to desk is workplace accident, German court rules(theguardian.com ↗)

43 points · by willemmerson · 4y ago · 16 comments

comment 4y ago · link · parent

Looks interesting, just wondering why you chose this architecture over the more standard "message to esp32 via mqtt then esp32 downloads firmware over https" route?

comment 5y ago · link · parent

This is really interesting. For me what makes the esp32 so good though is the existing esp-idf sdk - adding things such as ota update, mqtt, sntp, coredump to flash, webserver etc to a product has been so easy. Will rust support somehow include those from the existing sdk or would you need to try and find rust crates to support those things?

24.

Potoooooooo(en.wikipedia.org ↗)

128 points · by willemmerson · 5y ago · 32 comments

comment 5y ago · link · parent

Actually it only consumes 150uA when it's active so if it's just doing one reading a minute then it'll be closer to the deep sleep current which is 5uA or so.

There is an awesome library (https://github.com/boarchuz/HULP) which makes using the ULP much easier so that things like software i2c and ADC multisampling are trivial.

comment 5y ago · link · parent

If only there was some kind of service that could sync git repos properly, some kind of 'hub' that could also deal with conflicts

27.

Eternal K-Hole of the Spotless Mind (2017)(youtube.com ↗)

1 points · by willemmerson · 5y ago · discuss

comment 5y ago · link · parent

This is the best thing ever.

comment 5y ago · link · parent

LetsEncrypt certificates need to be updated every 2-3 months, so won't this code fail when the certificate on the server changes? Aren't you better off trusting the root cert(s) which don't change very often?

comment 5y ago · link · parent

What is it about the esp32 which means it can't do long range wifi? Someone here is getting 10km which seems pretty long range to me: https://hackaday.com/2017/04/11/esp32-wifi-hits-10km-with-a-...
123