DHT11/22 checkHumidity syntax error
Following the tutorial I get a syntax eror when executing checkHumidity:
root@Omega-5101:~/checkHumidity/bin# ./checkHumidity 1 DHT11
./checkHumidity: line 1: syntax error: unexpected "(" (expecting ")")
@Oene-Bakker The binary and the sources for it on the Wiki are for Omega1, not Omega2. I modified the sources for the Omega2 and included a pre-compiled binary in the package, download it here: https://dl.dropboxusercontent.com/u/11811685/checkHumidity.tar.gz
@WereCatf do you happen to have more sensors compiled for 2, like the DS18B20 for example?
@Costas-Costas No, the DS18B20 is so imprecise that I don't have much interest in writing a userland-driver for it, when there is one already in the kernel. It's just not worth the effort. The in-kernel driver works fine, but the kernel needs a patch for one-wire to work -- I have included the patch in my version of LEDE, but the Onion-devs haven't yet included it in the official firmware.
I thought the DS18B20 was much more accurate than the DHT11/22's.
@WereCatf : thnx!!!!!
@WereCatf the DHT11 spec is +/- 2°C and the DHT 22 +/- 0.5°C so the DS18B20 at +/- 0.5°C is as accurate as the DHT22 and considerably more accurate than the DHT11.
@Lazar-Demin could you please include the One-Wire patch as there are also others that have posted about wanting to use the DS18B20. I guess One-Wire is required for lots of sensors.
I'm planning to use the DS18B20 too.
I open an issue here : https://github.com/OnionIoT/Onion-Docs/issues/18
Let see the onion response
@Joris-Mulliez there is also a request by @James-Turck at http://community.onion.io/topic/1310/1-wire-temperature-sensor-ds18b20-on-omega2 and my GitHub issue at https://github.com/OnionIoT/Onion-Console/issues/50
@WereCatf, I try with your new binary yet face "Segmentation fault". Any idea what wrong? I tested with two different omega still same result.
@Lee-BoonTatt found the issue is due to newer firmware resolved after sysupgrade omega2p-v0.1.6-b137.bin
@WereCatf I tested your precompiled binary with a DHT22 but got segmentation error.
Is there anything to do additionally?
@Claus-Kühnel Does /dev/mem exist?
@WereCatf I got segmentation fault also.
/dev/mem not exist here.
Device Firmware Version: 0.1.9 b149
Checking latest version online...
Repo Firmware Version: 0.1.9 b149
Comparing version numbers
Device firmware is up to date!
root@Omega-xxxx:~# ls /dev/mem*
@Jetsada-Machom said in DHT11/22 checkHumidity syntax error:
/dev/mem not exist here.
Yeah, that's the problem. Onion-devs broke their firmware some time ago and the broken firmware doesn't have /dev/mem. The DHT22-app requires it.
In the meantime, the last firmware that works is http://repo.onion.io/omega2/images/omega2p-v0.1.6-b137.bin
So are ANY sensors working with my new doorstop?
AFAIK the Omega will not provide data from any sensors and we are waiting for a response from @Lazar-Demin to indicate when it will be fixed.
So we have not been able to use the SD card for the first 2 months. Been unable to reboot the Omega and struggled with the very specific power requirements of the device.
We are also waiting for the GPIO fix. Look forward to reading your comments @Lazar-Demin
And I thought the galileo/edison were released before they were ready....
I think I'm going to cut my loses and find another IoT uP. I'm glad I'm only into this $20 and 3-4 hours.
I might start a youtube channel and video 'peeling an onion' or shooting it with a 308 or something.
Good luck all you onioneers. I'm out of here.
Anyone have any suggestions other than an arduino MKR1000?
Costas Costas last edited by Costas Costas
WeMos D1 Mini Pro and Pi variants (Official charitable Foundation for me).
Pi Zero starts at $5 plus a few bits but can be as little as $2 for WiFi adaptor (plus PSU and SD card).