mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 06:28:27 +01:00
Updated changelog
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Speedtest Tracker
|
# Speedtest Tracker
|
||||||
|
|
||||||
[](https://hub.docker.com/r/henrywhitaker3/speedtest-tracker) [](https://github.com/henrywhitaker3/Speedtest-Tracker/actions) [](https://github.com/henrywhitaker3/Speedtest-Tracker/actions) [](https://github.com/henrywhitaker3/Speedtest-Tracker/commits) [](https://github.com/henrywhitaker3/Speedtest-Tracker/issues) [](https://github.com/henrywhitaker3/Speedtest-Tracker/commits)  [](https://github.com/henrywhitaker3/Speedtest-Tracker/blob/master/LICENSE)
|
[](https://hub.docker.com/r/henrywhitaker3/speedtest-tracker) [](https://github.com/henrywhitaker3/Speedtest-Tracker/actions) [](https://github.com/henrywhitaker3/Speedtest-Tracker/actions) [](https://github.com/henrywhitaker3/Speedtest-Tracker/commits) [](https://github.com/henrywhitaker3/Speedtest-Tracker/issues) [](https://github.com/henrywhitaker3/Speedtest-Tracker/commits)  [](https://github.com/henrywhitaker3/Speedtest-Tracker/blob/master/LICENSE)
|
||||||
|
|
||||||
This program runs a speedtest check every hour and graphs the results. The back-end is written in [Laravel](https://laravel.com/) and the front-end uses [React](https://reactjs.org/). It uses the [Ookla's speedtest cli](https://www.speedtest.net/apps/cli) package to get the data and uses [Chart.js](https://www.chartjs.org/) to plot the results.
|
This program runs a speedtest check every hour and graphs the results. The back-end is written in [Laravel](https://laravel.com/) and the front-end uses [React](https://reactjs.org/). It uses the [Ookla's speedtest cli](https://www.speedtest.net/apps/cli) package to get the data and uses [Chart.js](https://www.chartjs.org/) to plot the results.
|
||||||
|
|
||||||
|
|||||||
@@ -263,8 +263,12 @@ class SpeedtestHelper {
|
|||||||
if(env('DB_CONNECTION') === 'sqlite') {
|
if(env('DB_CONNECTION') === 'sqlite') {
|
||||||
if(env('DB_DATABASE') !== null) {
|
if(env('DB_DATABASE') !== null) {
|
||||||
$current = env('DB_DATABASE');
|
$current = env('DB_DATABASE');
|
||||||
if(File::copy($current, $current . '.bak')) {
|
try {
|
||||||
return true;
|
if(File::copy($current, $current . '.bak')) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}catch(Exception $e) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -283,23 +287,18 @@ class SpeedtestHelper {
|
|||||||
{
|
{
|
||||||
Cache::flush();
|
Cache::flush();
|
||||||
|
|
||||||
if(SpeedtestHelper::dbBackup() !== false) {
|
SpeedtestHelper::dbBackup();
|
||||||
if(sizeof(Speedtest::whereNotNull('id')->get()) > 0) {
|
|
||||||
if(Speedtest::whereNotNull('id')->delete()) {
|
|
||||||
return [
|
|
||||||
'success' => true,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return [
|
if(sizeof(Speedtest::whereNotNull('id')->get()) > 0) {
|
||||||
'success' => true,
|
if(Speedtest::whereNotNull('id')->delete()) {
|
||||||
];
|
return [
|
||||||
|
'success' => true,
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'success' => false,
|
'success' => true,
|
||||||
'msg' => 'There was an error backing up the database. No speedtests have been deleted.'
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class IntegrationsController extends Controller
|
|||||||
SettingsHelper::testNotification();
|
SettingsHelper::testNotification();
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'method' => 'test notificaiton agents'
|
'method' => 'test notification agents'
|
||||||
], 200);
|
], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ class SpeedtestController extends Controller
|
|||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
SettingsHelper::loadIntegrationConfig();
|
||||||
$data = SpeedtestJob::dispatch(false, config('integrations'));
|
$data = SpeedtestJob::dispatch(false, config('integrations'));
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'method' => 'run speedtest',
|
'method' => 'run speedtest',
|
||||||
|
|||||||
@@ -1,4 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
"1.9.4": [
|
||||||
|
{
|
||||||
|
"description": "Changed integration config loading.",
|
||||||
|
"link": ""
|
||||||
|
}.
|
||||||
|
{
|
||||||
|
"description": "Added more tests.",
|
||||||
|
"link": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
"1.9.3": [
|
"1.9.3": [
|
||||||
{
|
{
|
||||||
"description": "Updated dependencies.",
|
"description": "Updated dependencies.",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ return [
|
|||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'version' => '1.9.3',
|
'version' => '1.9.4',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user