I know how to set up multiple wifi networks, as in this question. However, I have additional needs not addressed there:
First: How do I know which network made the connection (for instance, in the example, I would like to know if the network is school or work)?
Second: How can I set up the Raspberry Pi as an access point if no network connection is made (I assume this will need some kind of script, but I don't know how to write it)?
Third: How can I check every few minutes if the connection is still active, and automatically reset the connection if it is not (perhaps this is a use case for watchdog, but I've never used that)?