change API to LCD Porto' s SpaceAPI
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'DSI_API_URL', 'https://nodered.jfig.net/api/v1/door-open' );
|
define( 'DSI_API_URL', 'https://lcdporto.org/api/spaceapi' );
|
||||||
define( 'DSI_CACHE_KEY', 'dsi_door_open_status' );
|
define( 'DSI_CACHE_KEY', 'dsi_space_api_status' );
|
||||||
define( 'DSI_CACHE_TTL', 10 );
|
define( 'DSI_CACHE_TTL', 10 );
|
||||||
@@ -31,8 +31,8 @@ if ( file_exists( $config_file ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fallback defaults (only if not already defined by the config file).
|
// Fallback defaults (only if not already defined by the config file).
|
||||||
! defined( 'DSI_API_URL' ) && define( 'DSI_API_URL', 'https://nodered.jfig.net/api/v1/door-open' );
|
! defined( 'DSI_API_URL' ) && define( 'DSI_API_URL', 'https://lcdporto.org/api/spaceapi' );
|
||||||
! defined( 'DSI_CACHE_KEY' ) && define( 'DSI_CACHE_KEY', 'dsi_door_open_status' );
|
! defined( 'DSI_CACHE_KEY' ) && define( 'DSI_CACHE_KEY', 'dsi_space_api_status' );
|
||||||
! defined( 'DSI_CACHE_TTL' ) && define( 'DSI_CACHE_TTL', 10 ); // seconds
|
! defined( 'DSI_CACHE_TTL' ) && define( 'DSI_CACHE_TTL', 10 ); // seconds
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user