|
Post by robertlb56 on Aug 10, 2017 4:16:51 GMT -8
Are you running the software via "sudo"? BP Yes. I'm starting it in rc.local with the line directly from the instructable/tutorial that does use sudo. In both installations of the software the graphs worked great for over a week. On the second installation, I am sure I changed nothing other than installing RaspiConnect Server before it stopped.
|
|
|
Post by robertlb56 on Aug 7, 2017 22:10:29 GMT -8
Robert, It has something to do with the symbolic link. I assume the dates stop changing not he MatPlotLib graphs? Best, BP No,the dates and Matplotlib graphs all stop changing. It's not the symbolic link, the png files in /static are never updated. Running ls -lt on the /static folder shows all 4 of the png files with an unchanging timestamp of July 23 20:08, which is also the last date on the graph when you view it. This has happened twice to me on different installs,graphs are working great - I install RaspiConnect Server - next time I checked the graphs they have stopped updating. What can I do to find where the graphing process is failing?
|
|
|
Post by robertlb56 on Aug 7, 2017 6:03:45 GMT -8
Should installing RaspiConnect Server affect the graph creation in GroveWeatherPi? On 2 different installs of GroveWeatherPi, I created a symbolic link to the static directory in the /var/www/html folder and everything worked great. Then as soon as I install RaspiConnect Server (and I also ran it once each time to test that it connected to the iPad app, which it did), the GroveWeatherPi graphs stop updating. In the GroveWeatherPi log file it shows that it is processing each graph creation routine and then that it is finished (and no error message), yet the png files in static are not updated and still time stamped with the date/time that I installed RaspiConnectServer.
If that is not normal, is there a log file somewhere, or way to run one that would document the graphing routine to see what is going wrong? I'm still a long way from getting the RaspiConnect app setup to work with GroveWeatherPi. All the sample files are for other projects and I haven't had the time to devote yet to learn how to set it up from scratch, or modify the Project Curacao files which seem closest to GroveWeatherPi.
Also, any plans to update the GroveWeatherPi software to work with the Grove Power Save, Power Drive and Pi Camera (and any other goodies you add)? I know I can add them manually, but then I would have to redo a lot of stuff every time you update the software and I do a git pull on the updated repository.
|
|
|
Post by robertlb56 on Jul 14, 2017 1:50:41 GMT -8
Kevin,
Thanks for the help and suggestions. Unfortunately I fubared my code to the point where the weather script will not even start anymore (NOT with your suggestions btw). My wind direction had stopped reading, and after retracing my installation I noticed in the readme on SDL's GitHub (where it state some installations may require these ...), I had not run the setup.py file in Adafruit_Python_GPIO. Being tired/not paying attention/old/and definitely not a coder, I ran setup.py from the Adafruit_Python_GPIO folder under the SDL_Pi_GroveWeatherPi directory. OOPS, script now starts then aborts. Double OOPS, I learned python scripts don't have an uninstaller! I need to stop messing with stuff when I am tired, but I had just put my station up last week and we were getting the first rain here north of Houston since then to test it out. Oh well, I always learn best by mistakes LOL. Looking at my previous posts, I need to stop posting when I am tired from my phone too. Autocorrect (what a joke) auto-altered some words. Thinking back, since my watchdog board is not functioning correct, the Pi Zero had to be power reset a few times do to battery running out in the early morning hours, so I may be fighting a corrupted sd card. I'm going to start over from scratch this weekend redoing the software and test the watchdog board to try and figure out what is going on with it.
|
|
|
Post by robertlb56 on Jul 10, 2017 14:21:40 GMT -8
Thanks! I was also getting a lot of 0 readings from the AM2315, but patching the main file in 2 places with Kevin's work around code works like a charm as long as it recognizes it as present on bootup.
|
|
|
Post by robertlb56 on Jul 10, 2017 5:58:07 GMT -8
"Running the main python script I am also getting this error:
I get thone same errors, but only when running the main script from a shell without killing the process first (while the main script is already running). I was assuming it was because the background script had the files open and locked when the shell script tried to access them.
|
|
|
Post by robertlb56 on Jul 10, 2017 5:45:46 GMT -8
1) I'm having the same problem with 24 hour rain. Database and log both show over 1" of rain last night but Weather Underground always shows 0. However I am still using version 2.91 of the software.
2) My graphs also quit updating.I can see the software running the update for each graph,but the file in /static remains dated 7/6/2017 @8:50. Is there a log in can look at to see where the graph making is failing at?
3) Also,the sunlight sensor shows present but outputs 0 for all parameters. If I keep rebooting it, finally it will start reading correct, but then the AM2315 will show as not present.
4) Finally,if I connect the soldered on wire from the USB control to the Watchdog Timer reset pin,the system will not power up (lipo battery is over 4v) until I disconnect the wire from the reset pin. Once started, I can reconnect the wire and it stays running. This leads me to believe that the Watchdog reset pin stays grounded when the Watchdog board is not receiving power from the Pi Zero.
I consider myself an advanced newbie. I bought the GroveWeatherPi and Solar bundles and wired everything up according to the tutorial and Instructable. Any ideas on what I need to check?
|
|