-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dht22 acting oddly #174
Comments
First, let's see if gpiod is running:
|
Just so I'm understanding correctly, the issue first presented itself when you rewired the sensor and could no longer get measurements? |
Then, you wiped and made a fresh install of 4.1.6, and the Mycodo daemon wouldn't automatically start after the install? I notice you're running it in debug mode, above. |
Hi,
but the issues still persist. The issues are; -Daemon is up running after finish installation, but not running/start when reboot. -Error message when added sensors (DHT22) " Check if gpiod is running."
at the end of crontab. Problem solved. -Live page read 0oC with correct timestamp
On Live page showed the correct temperature for 5 seconds. However, it wouldn’t update the temperature until you run testing sensor again. It seems that a reading temperature script didn't work properly. Hope these give you guys some clues. |
Hmm, it may seem that gpiod isn't being properly added to crontab! The test script is getting measurements but not the Mycodo sensor module. Hmmmm. Let me investigate a bit. |
@isoflux, are there any errors in your daemon log (Tools->Mycodo Logs->Daemon)? |
Here are the error message.
|
It looks like I missed adding the crontab entry in the setup.sh script. I'm fixing that now. I'm also fixing that horrible statistics connection timeout error to be smaller and less obnoxious. It appears this may all be due to gpiod not running. The error is at least indicating that and that would definitely prevent the sensor from being measured. I'll try to get a new release out after lunch to test. |
@kizniche Thank you for your quick response. |
I just released version 4.1.7. I found an issue with the upgrade system form the web interface. If you cannot upgrade, I made some notes in the changelog to instruct how to upgrade from the terminal (copied below). This update fixes an error in the upgrade system, but it may mean that you cannot upgrade from the web interface (only for this version). If you cannot upgrade, execute the following command from the terminal to manually upgrade:
|
Actually. I pulled that release while I'm working on a database issue. Sorry for the confusion. It should be back soon. |
v4.1.7 is live again, but there may be an issue with your database. I have no idea how this happened, but it's only affecting some of my test systems. If you get through the upgrade and see this message:
Then you are struck with this issue. You will need to open Mycodo/databases/mycodo.db with an SQL editor and go to the table 'alembic_version' and make sure there is only one entry. It's tricky to know what the value should be. e4f984cd01d4 is the most recent alembic_version. If you have a table named 'log', then you should be at cd014c0d61a0 or older. Again, I'm really sorry this happened. It's probably easier just to delete your database and have Mycodo generate a new one if you're experiencing this database issue and don't know or want to deal with modifying it manually. Especially because it's almost impossible to know what version you're supposed to be at unless you look at the exact structure of the database itself. It's imperative that the correct version be there to enable proper upgrading. |
welp, i reinstalled 4.1.7 from scratch and still the daemon dont want to start itself, dht22s are still giving readings of 0 as well. guess ill just sit tight till a newer version pops out to see if anything changes |
@Drakthule, Thank you for commenting. You're the first person to provide feedback after I released v4.1.7, which was an attempt at fixing the issue. User feedback is crucial to resolving these issues, so if I don't hear anything, I have no idea if it worked or not. Could you provide a little more information ?
|
I found one of my DHT22s! I got it hooked up and found the issue. I'm making a small release to fix the issues for everyone, in just a few minutes after I test some more. |
Found another issue. Tracking it down before I make the release. |
I just released v.4.1.8, but just a moment ago I realized I never pushed the key file for fixing the web UI upgrade system. The upgrade fix is included in v4.1.8. So, you will most likely have to issue the following command in a terminal to perform an upgrade:
|
The latest release should fix the DHT22 issues, and fix a similar issue with the DHT11. My DHT22 is now working at least. If anyone that has had issues with theirs can test and report back when you can, it would be appreciated. Thanks. |
Mycodo V.4.1.8 (clean installation) fixed all the issues mentioned above. I have tested with 2xDHT22, 3xRelays, and PID (raise and lower relays). It works right out of the box. Here is /var/log/mycodo/mycodo.log: Thank you @kizniche . |
um.. I found out later on that Mycodo daemon didn't start automatically every time after reboot. I need to start it manually with;
After that, everything works just fine. |
Is it starting now after a fresh install or is this a current issue? |
Daemon started perfectly after fresh installation. Once I rebooted the RPi, daemon wouldn't start. Actually, I found this issue since I first tried Mycodo v.4.1.5 as I posted above. |
You're actually the first person ever to say systemctl isn't automatically starting the daemon. |
If the daemon doesn't properly shut down, there's a lock file in /var/lock/mycodo.pid (or something similar), that if it doesn't get deleted, the daemon can't start up again until it's deleted (to prevent more than one instance of the daemon running). |
Thanks @kizniche for prompt reply as always. I did test, both hard and normal shutdown. At this time, the daemon started perfectly both cases. Um.. I will keep an eye on this issue. I will report back if I found the issue again. |
4.1.9 is running without a hitch, thank you for all your effort kyle |
@Drathule : thank you for the return after update : this decided me to hit
the *update *button ;)
@kyle : good job mate :)
2017-01-28 18:13 GMT+04:00 Drakthule <notifications@github.com>:
… 4.1.9 is running without a hitch, thank you for all your effort kyle
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvpRJ-L4kGfqFyYeQQGMG7qshNUVv5lks5rW0zzgaJpZM4Ln5Fl>
.
|
Mycodo Issue Report:
Problem Description
Please list: daemon is not automatically starting after install, dht22 is failing to initialize
Errors
code lines you've isolated (please use GitHub permalinks for this)
Steps to Reproduce the issue:
How can this issue be reproduced?
Additional Notes
Is there anything that should be added to make it easier
to address this issue?
so a couple nights ago i felt ambitious and decided to clean up my bread board, since i just upgraded and all to what i think was 4.1.5. So I re-wired everything and to my dismay the dht22 kept reporting 0 for all readings. "well damn guess i burnt up the sensor or something" 2 days later i got a new sensor and still same issue. so i yanked out the sd and slapped it in my backup pi3B and low and behold same issue so i decided that i would look at the wiring. i originally had the + and data tied with a 10k resistor and it worked fine, even went to radio shack and picked up a 4.7k after i did some snooping in the support tickets. this also didnt work. so i decided its time to wipe it out, fresh reload of raspian, fresh install and after a reboot the daemon wouldnt start on its own, i figured i screwed up. reload and still the daemon is having a bad day and its either im wiring something wrong or ive encoutnered some bug thats preventing the pi from utilizing the sensor.
your project is pretty amazing kyle, i hope to recieve your sagely advice!
The text was updated successfully, but these errors were encountered: