Retrieve PHP Variable into a tile

Hi - new here.

I currently run a weather station that updates weather data into a PHP file every 10 mins (this is using software called Cumulus).

Is there a way in Sharptools to retrieve a variable from this php file and use this to display the value (of the current temp for example) onto a tile?

I was going to use PHP to do this into an HTML custom file but this doesn’t support PHP.

Thank you.

If it’s a publicly facing endpoint, yes you can access it from the SharpTools Rule Engine and pull it into a SharpTools Variable using an HTTP Action in a rule - especially if it’s in a common data interchange format like JSON or XML.

Alternatively, if your script can make HTTP calls (webhook), you could post the variables over to a SharpTools Rule with an HTTP Trigger without the script itself needing to be a publicly accessible endpoint.

If you have the relevant developer skills, regardless of if it’s public or on your LAN, you could access it from a Custom Tile but you would likely need to tweak your browser settings to allow HTTP in an HTTPS page unless your PHP page is served over SSL. You could either render a consumable data format like JSON / XML and then create an HTML Custom Tile or you could even have a PHP page render out HTML for displaying directly in a URL Custom Tile.

Thank you Josh. Some good reading there. Will take a look.