Skip to content

Commit

Permalink
Adding scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxthepenguin84 committed Nov 24, 2017
1 parent f6b0df4 commit e6d7e3a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pidashstartup
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/perl
system('2>/dev/null 1>&2 chromium-browser --start-fullscreen /home/pi/projects/PiDash/html/index.html &');
my $blanked = 0;
open (IN, "xscreensaver-command -watch |");
while (<IN>) {
if (m/^BLANK/) {
if (!$blanked) {
system "date";
$blanked = 1;
}
} elsif (m/^UNBLANK/) {
system "#sh /home/pi/projects/PiDash/start.sh";
$blanked = 0;
}
}
File renamed without changes.

0 comments on commit e6d7e3a

Please sign in to comment.