MMM-LocalTemperature. No display of values
The MMM-local temperature module does not display temperature and Humidity on the screen. Even the header for the Module MMM-LocalTemperature does not show. The weather module which accepts local temperature value from module also does not display the values even when they have been included in config.js.
I have gone through the forum on this topic . I have tried every option but it has not solved my issue. Steps taken to resolve;
- Replaced the existing DHT22 sensor with new one. Also connected a 10K pull-up resistor to the sensor. Connected sensor to GPIO22 and powered with 3,3v supply from Pi.
- Re-installed module MMM-Local Temperature
- Re-installed wiringpi
- Rechecked the config.js file, pinSheme: "WPI’
- Locally run a DHT.py script which displays values intermittently.
- npm start pm2 does not throw up any error of the module (MMM-LocalTemperature).
Request help in resolving the issue.
@Rags sometimes I have found that reading two values back to back causes one to fail…
u could add another check and print if the value IS None to find out if the DHT.read() is failing on one or both.
I also only read the sensor once every 30 seconds (30000)
@sdetweil The dht.py script does read the temperature and humidity indicating that the sensor is working. However, even after changing the read interval to 30 seconds, the intermittency continues. As far as the MMM-LocalTemperature module is considered it does not display any value at all. This aspect is confusing. If the senor does give intermittent readings at least the module should be able to read and display them. Can i be doing something basically wrong in configuration?
@Rags intermittent means occasionally no data. so there is nothing NEW to display
my sketch reads the sensors, and saves., every 30 seconds
the API reads the saved data. the API can never fail.
if there is a sensor read problem , the last data is not changed.
@sdetweil Ok Problem solved. I installed MMM-DHT-Sensor module instead of MMM-LocalTemperature module and it is working like a charm. Absolutely no issues during installation and worked the first time it was fired up. This indicates there is some issue with the MMM-Local Temperature module. I opened an issue in the Github page. Hope it can be addressed.