First of all, a big thank you for the posters in this section.
I had my app up and running in very little time.
I collect the data in rrdtool repositories, and use the simple graphing of that toolset for my use. It's adequate as far as I'm concerned.
I did however notice a little problem while querying the server. I use cron to do that every 5 minutes, and just about every 5 to 10 queries results in an exception ( TypeError: list indices must be integers, not str) from this line:
Code:
userId = userData ['userInfo']['userID']
The root cause is that the query sometimes yields a warning:
Code:
userData = [{u'message': u'Request count limitation exceeded, please try again later.', u'code': u'TooManyRequests'}]
An this of course causes the TypeError.
To test this, I have used a try-except around the above line, and simply wait for an additional 30 seconds and try again. This always solves the problem. The better solution is to add a few seconds to the 5 min. repetition rate, or use an appropriate sleeptime in the code to extend the 5 min of the cron timer.
The net-net is that it seems that a repetition of 5 minutes is just about on the border.