IoT-Gadgets-Logo-272-90

Python Eventfeed for Harmattan

By
Ash
 - 
Jun 25, 2011

 
Here is "Python EventFeed for Hammatan", it's basically the events view of swipe.nokia.com/designand is intended for third party developers to add their own content to this view.

This library allows you to post new events to the Harmattan Event Feed screen and receive callbacks when events are clicked. You can post updates about new items that are found and create other kinds of cool notifications 🙂

 

The Event Feed screen is available in MeeGo 1.2 Harmattan on the N950 and N9 - this library allows you to integrate Python code with it.

Simple example

from eventfeed import EventFeedService, EventFeedItem

service = EventFeedService('yourapp', 'Your App')
icon = '/usr/share/yourapp/icons/example.png'

item = EventFeedItem(icon, 'Hello World!')
item.set_body('How are you today?')

def on_item_clicked():
    print 'the user clicked the item'

item.set_custom_action(on_item_clicked)
service.add_item(item)
      

The resulting event should look like this:

Downloads

Documentation

Documentation of the module can be found here:

GitHub repository

Either use the web interface or clone directly via

  git clone git://github.com/thp/python-eventfeed.git

 

Source thp.io

 

 

IoT-Gadgets-Logo-272-90

About us

IoT Gadgets is dedicated to bring you all the Internet of Things IoT news that pertains to gadgets. Simple. We love for you to join us on this journey.

Contact us: [email protected]

FOLLOW US

crossmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram