The core of Vitality GOES is dataHandler.php. The web app uses it behind-the-scenes to query information and load images, and it is not typically used directly. However, it can be used directly by scripts or other programs to query satellite information for further processing. An example of this use is the Home Assistant configuration, where Home Assistant pulls weather information directly from dataHandler.php.
All queries use standard HTTP GET query parameters. At minimum, the type
parameter must be specified. Type specifies the data you are looking for. Additional parameters may be required, depending on your query type. If type is missing, or any additional parameters are missing/incorrect, no data will be returned. The following type
parameters are available for general use.
Data: Returns a JSON of all active alerts for your location, as defined in the alerts documentation. Each alert type has its own array, and individual alerts are HTML formatted. Requires EMWIN data.
Return Type: JSON
Additional Parameters: None
http://www.example.com/dataHander.php?type=alertJSON
Data: Returns the requested type of image. The response headers contain the original filename on disk, and the image is in the same format as it is saved on the server.
Return type: Image (usually png, jpg, or gif)
Additional Parameters:
id
: The unique ID of the image category as specified in config.inisubid
: The unique identifier of the image section specified in your image ini file.timestamp
: (Optional) the UNIX timestamp of the image you want to load. Must be exact! You can find available timestamps with ametadata
query. If omitted, the most recent image is loaded
http://www.example.com/dataHandler.php?type=data&id=abi&subid=fdfc_16
http://www.example.com/dataHandler.php?type=data&id=abi&subid=fdfc_16×tamp=1716681621
http://www.example.com/dataHandler.php?type=data&id=nws&subid=CAR×tamp=1716678000
Data: Returns a JSON of all active tropical storms/hurricanes, their current location, speed, direction, wind speed, and more. Requires that EMWIN data is available and configured in your config.ini file.
Return Type: JSON
Additional Parameters: None
http://www.example.com/dataHander.php?type=hurricaneJSON
Data: Local radar image, as defined by radarCode
as specified in config.ini. Requires EMWIN data.
Return type: Image (GIF)
Additional Parameters:
timestamp
: the UNIX timestamp of the image you want to load. Must be exact! You can find available timestamps with aweatherJSON
query.
http://www.example.com/dataHandler.php?type=localRadarData×tamp=1716750055
Data: Various types of data, dependent on the id
specified.
Return type: JSON
Additional Parameters:
id
: Can be any one of the following values:packetsContent
,viterbiContent
,rsContent
,gainContent
,freqContent
, oromegaContent
: Retrieves statistics about goesrecv's demodulation/decoding status, including chart SVGs. Requires goestools with Graphite configured.otherEmwin
: Pulls all data configured in otheremwin.ini, as well as the EMWIN license and most recent admin message. Additionally, this query returns all satellites available in the most recent EMWIN TLE file, and a list of all unique EMWIN text products currently available. Requires that EMWIN data is available and configured in your config.ini file.sysInfo
: System information about the server running Vitality GOES, including Operating System, system resource utilization, system temps, decoder program status, and SatDump decoder statistics (if using SatDump). Requires thatshowSysInfo
is set to true in your config.ini file.- You can also specify one of your configured category IDs as the id. If you are querying category metadata,
subid
must also be specified. Returns the title of the given product, as well as an array of all available timestamps on the server.
subid
: If a category id is specified, this parameter must also be specified to select the image section specified in your image ini file by its unique identifier.
http://www.example.com/dataHander.php?type=metadata&id=abi&subtype=fdfc_16
http://www.example.com/dataHander.php?type=metadata&id=meso&subid=m1ch02_16
http://www.example.com/dataHander.php?type=metadata&id=sysInfo
Data: An object that outlines the type of data available from the server
Return type: JSON
Additional Parameters: none
http://www.example.com/dataHander.php?type=preload
Data: Downloads the most recent TLE set received. Requires that EMWIN data is available and configured in your config.ini file.
Return type: TLE
Additional Parameters: none
http://www.example.com/dataHander.php?type=tle
Data: Returns a JSON of current weather conditions, 7 day forecasts, and a list of available radar images and their timestamps. Requires that EMWIN data is available and configured in your config.ini file, and a location is set.
Return Type: JSON
Additional Parameters: None
http://www.example.com/dataHander.php?type=hurricaneJSON