I have a php script on my webserver that writes to my MySql database.
Is there any way to call the url domain.no/writedb.php
no sensors, no nothing. just trigger the URL every 5 minutes or so.
I have a php script on my webserver that writes to my MySql database.
Is there any way to call the url domain.no/writedb.php
no sensors, no nothing. just trigger the URL every 5 minutes or so.
You can consider using Webhooks where your device will publish an event and trigger the url call
As @kennethlimcp said Webhooks is the easy way! Or a simple TCP client will do the job.. you could use POST or GET, either would work depending on your PHP script.
Here is a link to my doorbell which posts to a PHP script on my server, you may find some goodies in there