Open mfekadu opened 4 years ago
Current solution is a dictionary fed into Google Firebase. The dictionary is as follows:
log_dict = {
"entity" : "[extracted entity]",
"normalized question" : "[input question with the variable extracted and tag replaced]",
"question" : "[user input question]",
"answer" : "[the answer from the NLP function]"
}
Objective
Add API to store scraped RasperryPiLogs following the model of #53 .
Useful comment: https://github.com/calpoly-csai/api/pull/53#issuecomment-590121657
also see #47 which used
@app.route
to make an REST endpoint that the RaspberryPi can talk to via simplyimport requests
Key Result
Scraped RasperryPiLogs are saved in database.
Details
save_rpi_logs()
function indatabase_wrapper
to buildSQLAlchemy
RasperryPiLogs
object and save it to the database.@chidiewenike And Tyler Herzog are good points of contact