Presented my work to Andreas and Anton, and it was appreciated. They where also interested in how I work using a winscp - script to load up files fast and work with wing to program. Also the dataplicity connection making it available from anywhere was also interesting. I'm going to help them to set those things up so they know how.
I have also tried to set up the r-pi to run a command and the python program at startup but have not yet succeeded. Will continue with that tomorrow and then focus on making an online server checking data on a database. The pi will upload status every 5 minutes and the online server will check each half hour or so to see if there's been an upload the last half hour, if it hasn't, it will send sms or email telling that the r-pi might be down and not able to send alarms.
If I would make a server that connects to the r-pi, it would need to act as a webbservice and we would have to open ports on the router.
But doing it with a database means we don't have to open any ports on a router so if the system is to be made for a customer we don't have to manage a lot of routers, because there could be several routers on routers and legal things and other things that prevents from ports beeing opened.
Tomorrow, online server. It's nice that I've set up the other stuff for email and sms, so it should be pretty easy to have the server do that as well.
Inga kommentarer:
Skicka en kommentar