Add license text
parent
c72eda8e8c
commit
38dcfb2786
|
@ -2,3 +2,4 @@
|
|||
.piolibdeps
|
||||
.clang_complete
|
||||
.gcc-flags.json
|
||||
src/serial
|
||||
|
|
25
src/gmail.rb
25
src/gmail.rb
|
@ -1,5 +1,23 @@
|
|||
#!/bin/env ruby
|
||||
|
||||
=begin
|
||||
Copyright 2018 Marvin Johanning
|
||||
This file is part of GmailNotifier.
|
||||
|
||||
GmailNotifier is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
GmailNotifier is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GmailNotifier. If not, see <http://www.gnu.org/licenses/>.
|
||||
=end
|
||||
|
||||
#Check if operating system being used it Linux-based
|
||||
unless /linux/ =~ RUBY_PLATFORM then
|
||||
puts "ERROR: Only Linux-based operating systems are currently supported"
|
||||
|
@ -69,7 +87,12 @@ stop_bits = 1
|
|||
parity = SerialPort::NONE
|
||||
|
||||
#create a SerialPort object using each of the bits of information
|
||||
port = SerialPort.new(port_file, baud_rate, data_bits, stop_bits, parity)
|
||||
begin
|
||||
port = SerialPort.new(port_file, baud_rate, data_bits, stop_bits, parity)
|
||||
rescue Errno::EBUSY
|
||||
puts "ERROR: ".colorize(:red) + "The Arduino seems to be busy at the moment. This happens frequently whenever the Arduino has been plugged into a computer. Please wait a while and try again"
|
||||
exit
|
||||
end
|
||||
|
||||
wait_time = 4
|
||||
|
||||
|
|
|
@ -1,2 +1,23 @@
|
|||
#!/bin/env ruby
|
||||
|
||||
=begin
|
||||
Copyright 2018 Marvin Johanning
|
||||
This file is part of GmailNotifier.
|
||||
|
||||
GmailNotifier is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
GmailNotifier is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GmailNotifier. If not, see <http://www.gnu.org/licenses/>.
|
||||
=end
|
||||
|
||||
#Please enter your Gmail username and password here
|
||||
$gmail_username = "your_username_here"
|
||||
$gmail_password = "user_password_here"
|
||||
$gmail_password = "your_password_here"
|
||||
|
|
18
src/main.cpp
18
src/main.cpp
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
Copyright 2018 Marvin Johanning
|
||||
This file is part of GmailNotifier.
|
||||
|
||||
GmailNotifier is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
GmailNotifier is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GmailNotifier. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Wire.h>
|
||||
#include <LiquidCrystal.h>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/dev/video0 - Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001
|
||||
/dev/input/event7 - Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001
|
||||
/dev/input/event6 - Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001
|
||||
/dev/ttyACM2 - TOSHIBA_F5321gw_847A5C4419678500
|
||||
/dev/ttyACM1 - TOSHIBA_F5321gw_847A5C4419678500
|
||||
/dev/ttyACM0 - TOSHIBA_F5321gw_847A5C4419678500
|
||||
/dev/input/mouse2 - 1ea7_2.4G_Mouse
|
||||
/dev/input/event15 - 1ea7_2.4G_Mouse
|
||||
/dev/input/event5 - 1ea7_2.4G_Mouse
|
||||
/dev/input/mouse0 - 1ea7_2.4G_Mouse
|
||||
/dev/ttyACM3 - Arduino__www.arduino.cc__0043_75735323230351F09102
|
||||
|
|
20
start
20
start
|
@ -1,3 +1,23 @@
|
|||
#!/bin/env ruby
|
||||
|
||||
=begin
|
||||
Copyright 2018 Marvin Johanning
|
||||
This file is part of GmailNotifier.
|
||||
|
||||
GmailNotifier is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
GmailNotifier is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GmailNotifier. If not, see <http://www.gnu.org/licenses/>.
|
||||
=end
|
||||
|
||||
#The purpose of this file is to start the actual GmailNotifier located inside the src/ folder
|
||||
|
||||
load "#{File.dirname(__FILE__)}/src/gmail.rb"
|
||||
|
|
Loading…
Reference in New Issue