Hello, I’m a web developer currently working on this:
At my company, we have a contact sensor for a door. We have an internal website for our employees to check if the door is “open” or “closed”.
My problem is: our website is hosted at our company’s own Apache server. I don’t know even know how to start coding an API that checks the device status! All the documentation I’ve read is about mobile apps, but I don’t need a mobile app. I just need a simple PHP or JS file with code that pulls the state of the device every 5 minutes so I can display it on our website.