Uppy file uploader and proxy = headache

Robert AndresenProgramming Leave a Comment

While testing the Uppy.io file uploader I struggled with some CORS-errors. Almost the whole day was wasted troubleshooting and debugging. Trying different headers, debugging network-traffic and reading stack overflow. The browser returned a CORS-error and Uppy itself returned a network traffic error. 99% of all issues and google-results pointed to an api/server issue with my headers. The weird part was …

Docker proxy with self-signed certificates for local development

Robert AndresenProgramming Leave a Comment

Found some great docker-images to use in local projects. It’s well documentet in github here: https://github.com/sebastienheyd/docker-self-signed-proxy-companion Here is an example of docker-compose from the github repo: This guide can help you to add the certificate in Chrome: https://www.pico.net/kb/how-do-you-get-chrome-to-accept-a-self-signed-certificate/

Home Assistant – Leaf-MQTT

Robert AndresenHome Assistant, Internet of things, Tutorials Leave a Comment

For some reason the Leaf-component in Home Assistant has not been working for some time. Since November 2020 according to the community forum. UPDATE: Before you read any futher… Home Assistant bumped pycarwings2 to 2.10 in the last 2020.12.2 release. I actually found this out just when I was going to add the data from the solution below, into HA. …