Archive for category Uncategorized

Raspberry Pi IP Camera

Raspberry Pi IP Camera using iSpy, mjpg Streamer and alarmpi (Arch Linux ARM).
Okay so my goal was to make a IP camera out of a unused webcam and stream it to the free security camera software iSpy and I happened to have a RasPi laying around doing nothing but due to past experience knowing how slow the RasPi can be I didn’t want to load it with a GUI so I went with Arch Linux ARM.

I will be using a Logitech Orb with pan/tilt controls.
Firstly you will need to download Arch Linux ARM from here and install it onto a SD Card with Win32 Disk Imager found here.

Once thats done plug your Pi into HDMI with your keyboard in and the webcam plugged in then the power last otherwise it may miss booting to HDMI (A bit of googling and you can see how to force HDMI).
Default Username: root
Default Password: root

Now that we have a OS to work with we will need to get this up to date.
You can do this by using pacman but you will need to make a pacman key for this to work.

pacman-key --init

Now you will need to create random entropy on your system, I recomend switching to another console do this by holding (Alt) then pressing F2 (you can switch between consoles F1 to F6 using this but we only need F1 and F2 for this) now login same as before.
Use the following command to generate random entropy.

ls -R / && ls -R / && ls -R /

This will take a while due to the speed or lack of that the RasPi has.

Once this is done now switch back to console 1 (Alt+F1) now you can update with the following command

pacman -Syu

This will update the OS and prompt you for permission if needed, once this is done it is good practice to reboot your RasPi, simply do this by typing “reboot”

Now we are going to need to install Sudo to help with the install of the next program
.Do this simply with the following command and giving it permission.

pacman -S sudo</code>

One that is installed now we can get mjpg streamer installed with the following command.
sudo pacman -S mjpg-streamer

Once that is installed we can launch this very easily while adding a few commands to the launch line
-d - USB Webcam (or video device)
-r - Resolution
-f - Frame Rate
-p - Port Number
-w -Web directory
I used the following for testing.

mjpg_streamer -i "/usr/lib/ -d /dev/video0  -r 640x480 -f 28" -o "/usr/lib/ -p 8090 -w /var/www/mjpg_streamer"

Then to view the stream enter it in iSpy as a IP camera using the IP of the RasPi and the port number you gave it in the launch line.

For a bit more information head over to the Mjpg streamer wiki page.

Credit to

Auto launch on boot and pan/tilt plugin instruction to be added.

, ,

Leave a comment

Event Espresso custom attendee list paid and unpaid

NOTE: This is for “Version 3.1.32.P” I imagine it won’t be to different in coming versions.

Here is a post in the works about editing Event Espresso’s attendee list.

Showing Paid and non paid attendees

Normal Line for a single event is as follows posted into a page or post creating a page/post for your list of attendees

[LISTATTENDEES category_identifier="your_category_identifier"]

Now you want to include paid_only=”true” at the end of the line like follows

[LISTATTENDEES category_identifier="your_category_identifier" paid_only="true"]

Now that all simple but for my event I wanted to list paid and unpaid attendees so any attendees can look and double check we have their payment and all is confirmed or not.
For that you need to open “attendee_list.php” located in “yoursite\wp-content\plugins\event-espresso\templates” and find the following, I found it on line 71

$a_sql .= $paid_only == 'true'? " AND (payment_status='Completed' OR payment_status='Pending' OR payment_status='Refund') ":'';

Now this line just sets the guides for what is displayed when paid_only=”true” is used, you can see payment_status=’Completed’ OR payment_status=’Pending’ OR payment_status=’Refund in the line you can remove or edit any of these to what you like including “Incompleted”.
Now we need to separate the paid and unpaid attendees we can do this by copying  the code we found and pasting it on a line below. Now we just need to edit a few parts, I chose to remove Pending and refund from the above code as they both are forms of no payment.
In the second line I used Incompleted and Pending, we also need to change the first part of the second line to $paid_only == ‘false’ instead of true, Mine is as below.

$a_sql .= $paid_only == 'true'? " AND (payment_status='Completed') ":'';
$a_sql .= $paid_only == 'false'? " AND (payment_status='Incompleted' OR payment_status='Pending' OR payment_status='Refund') ":'';

Now that is done go back to your wordpress page with your attendee list on it we can add a second shortcode the same as above but change the paid to false for unpaid attendees as shown below.

Paid Attendee's
[LISTATTENDEES event_identifier="avalanche-ii-3-517d28664a013" paid_only="true"]
Unpaid Attendee's
[LISTATTENDEES event_identifier="avalanche-ii-3-517d28664a013" paid_only="false"]

Any issues leave me a reply.

, , , , , , , ,

Leave a comment

Hello world!

Welcome to This is your first post. Edit or delete it and start blogging!

1 Comment