Simplistic presentation software, with a player that runs in Mono (Raspberry Pi, Beaglebone Black, etc)
C#
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Icons
PowerSpeckConverter
PowerSpeckLib
PowerSpeckPlayer
PowerSpeckUtilities
.gitattributes
.gitignore
PowerSpeck.sln
README.md

README.md

PowerSpeck

Simplistic presentation software, with a standalone presentation player that runs in Mono (Raspberry Pi, Beaglebone Black, and others). It includes a software to convert from and to PowerPoint (2003 to 2013 versions) using MS PowerPoint interoperation (converter uses MS Office PowerPoint 2010 or newer installed in the machine). Player or Library does not require MS PowerPoint.

Player


Plays a PowerSpeck presentation, including transitions. Can run fullscreen or windowed (-window argument). Run with -debug argument to get additional on-screen information about the presentation.

Converter


Utility to convert a PowerPoint presentation into a PowerSpeck one, or viceversa. Requires Office 2010 or newer.

Library

Library to use PowerSpeck presentations in your application.

Example: Small example showing how to open and iterate thru slide elements in a PowerSpeck presentation:

using PowerSpeckLib;

class Program
{
    static void Main(string[] args)
    {
        var presentationFile = "my_presentation.cfg";

        // Loading the slides (with black as default background if not defined)
        foreach (var slide in SlideParser.Parse(presentationFile, Color.Black).Slides)
        {
            // Some properties from this slide
            Console.WriteLine("Slide duration: " + slide.Hold);
            Console.WriteLine("Transition: " + slide.Transition.Type);

            foreach (var item in slide.SlideObjects)
            {
                switch (item.Type)
                {
                    case SlideObjectType.Generic:
                        break;
                    case SlideObjectType.Text:
                        break;
                    case SlideObjectType.Image:
                        // Do something here
                        Console.WriteLine("Image X: " + (item as SlideImage).Left);
                        break;
                }
            }
        }
    }
}

Demos

Video with PowerSpeck presentation displayed on a LED RGB matrix screen, using a Raspberry Pi: Running on a LED RGB matrix screen via a Raspberry Pi

Resources

Source: https://github.com/eried/PowerSpeck
Download last version: http://cl.ly/1f2Z0m111E2i

Appendix

PowerSpeck configuration file

[general]
;Use empty.cur to hide the cursor
cursor=empty.cur

;Default background color
background=black

;Forced update every few ms
interval=1000

;Presentation file to load
load=presentation.cfg

;Fixed drawing region
;top=0
;left=0
;width=300
;height=200

Notes: Color can be defined as #RRGGBB html or KnownColor. Interval is equivalent to minimum 'tick', use a lower value for more consistent timing. The fixed region specifies an area to draw the transitions (in case you need to draw only an area, for example for a dedicated device)

PowerSpeck presentation file

[slide1]
;Delay in seconds
hold=500
transition=CoverRight,500
;Add text in posx,posy,size,color,text
txt1=0,3,20,white,Open
;Change default background for this slide
img1=0,0,72,40,images/boximage.png
background=red

[slide2]
;Delay in seconds
hold=500
transition=PanRight,500
;Add text in posx,posy,size,color,text
txt1=2,6,18,white,Every
;Change default background for this slide
img1=0,0,72,40,images/boximage.png
background=green

Notes: Color for the background can be defined as #RRGGBB html or KnownColor. Hold is the delay per slide, in milliseconds. The transition parameter consist on one of the Transitions with or without the PowerPoint prefix, followed by the time of that transition, in milliseconds. The currently available Transitions can be seen in this Enumeration.

Raspberry Pi presentation kiosk

Steps to configure the Raspberry Pi to run as a kiosk with the presentation

Software setup

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mono-complete xutils

To avoid the screen turning off

sudo nano /etc/X11/xinit/xinitrc

And now in the editor, append:

setterm -blank 0 -powersave off -powerdown 0
xset s off
xset -dpms s off
mono /path/to/your/assembly.exe

Auto start as kiosk

sudo nano /etc/rc.local

And now in the editor, replace contents with:

/bin/bash startx &
exit 0

Make sure that in sudo raspi-config start mode is configured as console