# Compile error at DHT usermod

**URL:** <https://wled.discourse.group/t/compile-error-at-dht-usermod/8598>\
**Category:** Usermods\
**Created:** [June 26, 2023, 9:46am UTC](https://wled.discourse.group/t/compile-error-at-dht-usermod/8598 "2023-06-26T09:46:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hg6806](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hg6806](https://wled.discourse.group/u/hg6806)\
**Post date:** [June 26, 2023, 9:46am UTC](https://wled.discourse.group/t/compile-error-at-dht-usermod/8598/1 "2023-06-26T09:46:59Z")

</div>

Hey guys,

During compiling DHT usermod I get following error:

```auto
In file included from wled00\usermods_list.cpp:81:
wled00\../usermods/DHT/usermod_dht.h: In member function 'virtual void UsermodDHT::loop()':
wled00\../usermods/DHT/usermod_dht.h:144:67: error: expected primary-expression before ';' token
  144 | nextReadTime = millis() + USERMOD_DHT_MEASUREMENT_INTERVAL;
      | ^
wled00\../usermods/DHT/usermod_dht.h:171:75: error: expected primary-expression before ')' token
  171 | if (((millis() - lastReadTime) > 10*USERMOD_DHT_MEASUREMENT_INTERVAL)) {
      | ^
*** [.pio\build\d1_mini\src\usermods_list.cpp.o] Error 1

```

How in the readme written I copied “platformio\_override.ini” into the root dir. and added:

```auto
#define USERMOD_DHT
#define USERMOD_DHT_DHTTYPE 22
#define USERMOD_DHT_PIN 4
#define USERMOD_DHT_CELSIUS
#define USERMOD_DHT_MEASUREMENT_INTERVAL
#define USERMOD_DHT_MQTT
#define USERMOD_DHT_STATS

```

to “my\_config.h”

Then I got a missing lib “DHT\_blocking.h”.  
This file and .cpp I copied into the wled00 directory, because at PIO Home → Libraries → Search no “DHT\_blocking” will be found.  
This missing lib message disappeared, but I got now this upper error message.

@blazoncek Any idea?

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [June 26, 2023, 12:52pm UTC](https://wled.discourse.group/t/compile-error-at-dht-usermod/8598/2 "2023-06-26T12:52:45Z")

</div>

Please contact original author of the usermod.

---

<div class="post-metadata">

**Author:** ![hg6806](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hg6806](https://wled.discourse.group/u/hg6806)\
**Post date:** [June 26, 2023, 1:05pm UTC](https://wled.discourse.group/t/compile-error-at-dht-usermod/8598/3 "2023-06-26T13:05:00Z")

</div>

I thought that’s you

> **[WLED/usermods/DHT at main · Aircoookie/WLED](https://github.com/Aircoookie/WLED/tree/main/usermods/DHT)**
>
> main/usermods/DHT

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [June 26, 2023, 1:11pm UTC](https://wled.discourse.group/t/compile-error-at-dht-usermod/8598/4 "2023-06-26T13:11:39Z")

</div>

I am not. Please use git blame.

---

<div class="post-metadata">

**Author:** ![hg6806](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hg6806](https://wled.discourse.group/u/hg6806)\
**Post date:** [June 26, 2023, 4:04pm UTC](https://wled.discourse.group/t/compile-error-at-dht-usermod/8598/5 "2023-06-26T16:04:36Z")

</div>

Sorry, can anybody help again?

```auto
pi@raspberrypi:~ $ git blame README.MD
fatal: not a git repository (or any of the parent directories): .git

```

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [June 27, 2023, 4:38am UTC](https://wled.discourse.group/t/compile-error-at-dht-usermod/8598/6 "2023-06-27T04:38:02Z")

</div>

🤦‍♂️  
Google is your friend.

> **[Viewing a file - GitHub Docs](https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file)**
>
> You can view raw file content or trace changes to lines in a file and discover how parts of the file evolved over time.

> **[How to Use git blame](https://linuxhint.com/git_blame/)**
>
> git blame is a very good tracking command for Git. git blame shows the author information of each line of the project’s last modified source file. You can find the author name, author email, the commit hash etc of the last modified source file line...

---

<div class="post-metadata">

**Author:** ![hg6806](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hg6806](https://wled.discourse.group/u/hg6806)\
**Post date:** [June 27, 2023, 6:21am UTC](https://wled.discourse.group/t/compile-error-at-dht-usermod/8598/7 "2023-06-27T06:21:12Z")

</div>

Sorry, this goes to deep for me.  
I’m not a Linux either a Software guy.  
To run DHT usermod in parallel to Dallas DS18B20 sensor would be just a nice-to-have and a try, but no must-have.  
I have to many other topics around.
