the first callback function still not called. adding redline and reading value to console log
commented out the second callback function to see if the first callback is called
trying to pass values between functions again
deleted commented updates from heroku master
trying to put second sql query into the callback of the first
tried removing variable name again
fixed typo
removed parent function
cleaned up the code a bit and removed commented out portions. Insert is now inserting boolean values into reading data
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
uncommented code so app will send data to heroku version