adding in request module and adding logic to send post to client layer if dryness is true
adding logic to check whether a tweet has been sent in the last 12 hours or not. starting with a console log
console logging result rows
logging result first. .rows is crashing app
added single quotes for pi_id
results are showing up even tho request times out since we were not sending a response. added a dummy response for success and trying to log last_tweet date from current date
datetime comparison came back as NaN. console logging different date times to see if they will compare or match up
dates are console logging, but I dont think they are datetime values so we are converting them to javascript dates
successfully converted date to js datetime. trying to subtract datetimes and console log the value
created difference in hours between current entry and last time plant soil was not dry for last tweet check