james-atkinson / speedcomplainer

A python app that will test your internet connection and then complain to your service provider (and log to a data store if you'd like)
509 stars 105 forks source link

Need help with python datetime tweet #26

Closed DarthKeizer closed 6 years ago

DarthKeizer commented 7 years ago

Could anyone be kind enough to help me out? I wanted to post the datetime along with the rest of the tweet and I just could not get it to work. Can anyone help me out? It should be easy, but for the life of me I cant figure it out :(.

craigusus commented 7 years ago

Hi @DarthKeizer,

I added

i = datetime.now()

On line 15 of speedcomplainer.py

Then edited (what is now) lines 144 - 146

if api:
tweet = message + i.strftime('%d/%m/%y @ %H:%M:%S')
status = api.PostUpdate(tweet)

Then added a single space at the end of each "tweetThresholds" in config.json to create a space between the end of the tweet and the timestamp.

screen shot 2017-07-25 at 10 30 32

craigusus commented 7 years ago

No idea if it is 100% correct. But it works ! :wink:

DarthKeizer commented 6 years ago

Works, sorry for the super late reply haha!