Software

KiCad change fields visibility utility

$ open devlog

I’ve back imported footprints for a .cmp file and I’ve misunderstood  kicad’s question about the imported footprints visibility, so all went visible.

And surprise, you can not edit visibility for all fields at once.

So  little utility was born – fixvis.

Usage is pretty simple:
./fixvis file.sch fieldid newval
where fieldid is:
0 - Reference
1 - Value
2 - Footprint
3 - Datasheet
4+ - custom
newval: 0000 = visible, 0001 = hidden

Apache websockets with proxy_wstunnel and mosquitto

Spend last weekend trying to make apache with proxy_wstunnel to work.
The solution recommended is to add this in the apache config:


ProxyRequests off

ProxyPass /mqtt ws://127.0.0.1:8082

ProxyPassReverse /mqtt ws://127.0.0.1:8082

But no matter what it is a no go. So, where is the problem?

It’s the libwebsockets it doesn’t understand custom http headers X-… but apache adds some.

To add support for them in the file lextable-strings.h append before the blank string :


“x-forwarded-server”,

“x-forwarded-for”,

“x-forwarded-host”,