hello guys, I am not able to configure what code should i use to send date via ubuntu and twilio on mobile phone.Please help me!
To send date you need to import datetime package which is by default installed.
then use the following code
t=d.strftime(’%x’) ‘’#%x is the format of local version of date.you can change it.’’
you can add t(which has date in the format :08/14/20) in the message.
response = sms.send_sms("The Current temperature sensor value is " +str(sensor_value)+‘date :’+t)
This changes in the code helps you send date with the meassage using twilio.
Hope this is useful.
oh thanks got it