PORT
- Set the port for the HTTP server. Useful for headless setups. Defaults to 4444. The HTTPS server with use the port + 1, defaulting to 4445.THORIUM_PATH
- The directory that will contain the data and assets for Thorium. Defaults to the "thorium-nova" folder in the user's Documents folder, eg "~/Documents/thorium-nova"
Thorium Nova has a few API endpoints which might be useful for someone building a third-party peripheral.
All HTTP requests must be sent with a clientId to be used as context. Currently,
the clientId is sent in the clear using the Authorization
header.
If there is an error, the request will return status code 400 with a JSON
payload that includes an error message
property.
/netSend
- Sends an input to the server to mutate data, and might return a response. Expects aPOST
request with a JSON payload that includes aninput
property. This corresponds to the input that you want to trigger. Any other properties on the body are used as parameters for the input.
{
"input": "clientSetName",
"name": "New Client Name"
}
/netRequest
- Requests data for a specific card. Expects aPOST
request with a JSON payload that includes acard
property and asubscription
property. These correspond to the specific subscription data that you want from that card. Currently, card subscriptions don't accept any parameters, though that might change as needed.