Sudo chown pi:pi /var/log/raspberryping.logĪpparently RaspberryPi has this cool program scheduler, so we are going to utilize it to run the ping program. Navigate to the following github link to find the codeĮnter the following to add a log file that your new py script will deposit log information into. Now, you'll need to modify your ping script to be a little more robust. Recorded_at timestamp with time zone default now(),Ĭreate index pings_recorded_at on pings(recorded_at) Enter the following information: create table pings Open an SQL console to enter the commands to create a table that will store ping information. Then click on the cog and click "Add Remote" I only had the option to connect to a remote host when I selected the "Existing Interpreter" radio button seen below. Select "New Project" and choose "Pure Python" Next, open up your P圜harm Professional IDE. Set up your raspberry pi with a static ip address allow-hotplug wlan0įirst, ensure that your raspberry pi is on, has SSH enabled, and has a static IP address set up.
We will edit the following file using sudo nano /etc/network/interfaces. With the information gained above, we're going to set the Raspberry Pi up with a static address. Next, you'll want to run sudo route -n to find the gateway and destination information. Run the sudo ifconfig command to find out the address of your Raspberry Pi You can go directly to the source for preparing your raspberry pi here *You will need the professional version of P圜harm to connect to a remote device* This project is based off of the directions on
This project will show you how to connect your Pycharm IDE to your raspberry pi for rapid code development and debugging.