Commit d8edd950 authored by Joe Holden's avatar Joe Holden

remove commented url, don't save to disk

parent 1f2478e6
......@@ -2,7 +2,6 @@
<?php
require_once dirname(__FILE__) . '/vendor/autoload.php';
//$url = 'https://s3.amazonaws.com/nascar-www/data/cacher/production/live/live-feed.json';
$url = 'http://www.nascar.com/live/feeds/live-feed.json';
$duration = new Khill\Duration\Duration;
......@@ -13,7 +12,6 @@ while(true) {
$old = $json;
$json = json_decode(file_get_contents($url));
file_put_contents('live-feed.json', json_encode($json, JSON_PRETTY_PRINT));
if (json_last_error()) {
printf("=> %s, %s: %s\n", 'json decode error', json_last_error(), json_last_error_msg());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment