fetchmail to receive email

fetchmail is a full-featured IMAP and POP client Install sudo apt-get install fetchmail Configure How Mail Is Handled Now create a file named ~/.fetchmailrc in your home directory. sudo nano Enter this: poll imap.gmail.com protocol IMAP user "[email protected]" with password "TheGmailPassword" mda "/home/pi/myfetchmailparser.sh" folder 'INBOX' fetchlimit 1 #keep ssl Fetchmail by default will try and […]

Read More

ssmtp to send emails

ssmtp is a nice and simple solution for sending emails from the command line etc. Installing sudo apt-get install ssmtp sudo apt-get install mailutils Now edit the SSMTP configuration file sudo nano /etc/ssmtp/ssmtp.conf It needs to include this: root=postmaster mailhub=smtp.gmail.com:587 hostname=raspberrypi [email protected] AuthPass=TheGmailPassword FromLineOverride=YES UseSTARTTLS=YES Save and exit Sending an email echo "Hello world email […]

Read More

Compute Module IO Board

​ Overview An open-source breakout board that you can plug a Raspberry Pi Compute Module into. Provides a starting template for those who want to design with the Compute Module, and a quick way to start experimenting with the hardware and building and testing a system before going fabricating a custom board. Provides: Power to the module. […]

Read More

.Compute Module Overview

Hardware In simple terms the RPi Compute Module is a Raspberry Pi Model A without PSU etc circuitry, connectors and with a 4GB Flash IC instead of the SD card socket. On the PCB: BCM2835 processor with 512Mbyte of RAM (as used on the Raspberry Pi) 4Gbyte eMMC Flash IC, instead of the SD card used on […]

Read More

.Widgets General

Move A Widget To A New Position Assuming you used gtk_fixed_put() originally gtk_fixed_move(GTK_FIXED(fixed), TimerLabel, 0, ((ScreenHeight >> 1) – font_size));  

Read More

Get Current Time

For a tm Strict Loading current time into a tm struct – see here Get The Current Time And Display In A String #include <sys/time.h> static int seconds_last = 99; char TimeString[128]; timeval curTime; gettimeofday(&curTime, NULL); if (seconds_last == curTime.tv_sec) return; seconds_last = curTime.tv_sec; strftime(TimeString, 80, "%Y-%m-%d %H:%M:%S", localtime(&curTime.tv_sec));   timeval and gettimeofday gives you tvsec and tv_usec […]

Read More

.Installing GTK

  Installing GTK sudo apt-get install libgtk-3-dev Using In Your Project Update your makefile to use the gtk libs and cflags: LIBS = `pkg-config –libs gtk+-3.0` CFLAGS = `pkg-config –cflags gtk+-3.0` Include gtk and get programming – see here. #include <gtk/gtk.h> Using In A NetBeans For Windows Project Go to: Project Properties > Build > Linker > Compilation Line > […]

Read More

Streaming Video Using gstreamer

gstreamer allows you to stream video with very low latency – a problem with VLC currently.  The catch is that you need need gstreamer on the client used to view the stream.  gstreamer is a development framework not a media player and there isn't a way to stream so that common players such as VLC can […]

Read More