axel
New Member
Posts: 23
|
Post by axel on Jul 4, 2017 15:01:44 GMT -8
I have tried a lot and also searched this forum but I think I need some help ...
Im trying to adjust the Matplot Graphs (different scale, lables etc .. ) by changing the corresponding python files in /graphs/ ... but my changes are not showing, still the same/old graph is being created.
I tried deleting the pgn file in /static/ to make sure a new pic is being created every 15min, I also deleted the corresponding pyc file, using a different browser (clearing cache) ... nothing has helped so far.
I have to say that sometimes "out of the blue" I can see my changes, sometimes the next day or at least many hours after I did the python changes, but I would expect the changes in the py files being in effect "right now".
Is it maybe a a problem with the apache?
Thanks .axel
|
|
|
Post by SDL on Jul 5, 2017 13:54:08 GMT -8
Axel,
Without more information, it is hard to be sure, but I think you are not killing the main GroveWeatherPi python program when you change the MatPlotLib graph files.
Restart the program and the changes should show up.
We have see similar flakey behavior in our Project Curacao project. We finally just kill the program and restart it and all the files are good.
BP
|
|
axel
New Member
Posts: 23
|
Post by axel on Jul 7, 2017 18:50:49 GMT -8
Shouldnt it be creating new graphs everytime when I restart the Pi ...
What are the appropiate restart/kill commands.
Thanks .axel
|
|
|
Post by SDL on Jul 7, 2017 19:10:54 GMT -8
Axel,
Yes, restarting the Pi should be making graphs each time. But remember Graphs are only created every 15 minutes (I think - look at the add_job code in the main program).
Restart and kill commands depend on how you are starting GroveWeatherPi.py
ctrl-c or ctrl- (break key - | ) will kill the program if you are in the same terminal window.
ps xaf | grep python
and then:
sudo kill -9 (process number from ps command above)
will also do it.
BP
Best,
BP
|
|