I have followed the instructions in the link above for more than ten times, but with no luck. This week I gave up.
Instead of using the requests-package, I have now rewritten my python3 script to use the urllib package instead. Urllib is already included in python3 and gives me the same functionality as I was planning to get from the requests-package.
Root cause is: netifd does support iface events UP and DOWN but does not support something like "up failure" (I mean, there is no event fired after iface connection failed, only for UP and DOWN). Afaik.
@James-Harding i'd guess the mjpg_streamer is using most of available current, causing dht sensor to error state and would increase available current for dht sensor or pin20 also used by mjpg_streamer.
On the other hand, if you are not using our Docker Image, you will have to run make menuconfig in the build system to select libugpio package to be compiled and then compile it by running make.
In General you will need to have the external library, for instance libugpio, to be compiled by the Build system before it can be dynamically linked to code that you are trying to cross compile. Above all, I strongly recommend basing your BUild system on our GitHub source repo since it is preconfigured to include the Onion software repo and to build all the libraries that are included on the Omega.
@Chris-Stratton Chris, thanks for the reply and educating me on some of the limitations. As for why htop - I wanted to practice on something and its one of my go-to utilities, so this was more of a test run.
you could try downloading & installing a fresh copy of b160 firmware. there is something amiss in the current install/package. you can spend many hours trying to find the problem or get a new copy of the firmware and see if that works.