Remove debugging. Test brightness effect (oled)
This commit is contained in:
parent
b6a3ff4d5e
commit
f5d9cf9c98
|
@ -17,7 +17,7 @@ unless ($pid) {
|
||||||
open STDOUT, '>>/dev/null';
|
open STDOUT, '>>/dev/null';
|
||||||
open STDERR, '>>/dev/null';
|
open STDERR, '>>/dev/null';
|
||||||
|
|
||||||
`gammastep -l $lat_lon`;
|
`gammastep -l $lat_lon -b 1:0.7`;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub fetch_lat_lon
|
sub fetch_lat_lon
|
||||||
|
@ -30,13 +30,10 @@ sub fetch_lat_lon
|
||||||
my $raw = $ua->get($location)->content();
|
my $raw = $ua->get($location)->content();
|
||||||
|
|
||||||
if (defined $raw) {
|
if (defined $raw) {
|
||||||
print($raw."\n");
|
|
||||||
my $decoded = $json->decode($raw);
|
my $decoded = $json->decode($raw);
|
||||||
if (defined $decoded->{lat} && defined $decoded->{lon}) {
|
if (defined $decoded->{lat} && defined $decoded->{lon}) {
|
||||||
return "$decoded->{lat}:$decoded->{lon}";
|
return "$decoded->{lat}:$decoded->{lon}";
|
||||||
}
|
}
|
||||||
print $decoded->{lat};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
sleep 5;
|
sleep 5;
|
||||||
return fetch_lat_lon($ua, $json, $location);
|
return fetch_lat_lon($ua, $json, $location);
|
||||||
|
|
Loading…
Reference in New Issue