The interesting thing about twitter is that many brands upload minute by minute new updates, which make a really good source for scopes.
To create a Formula One scope,I started by going to twitter and creating a list under my scope account (you can use your personal account). The list contains several relevant “official” Formula One accounts. Using Twitter, I can then update the sources by adding and removing accounts from the list without the user needing to download an update for the scope.
Again, it took me about 5 min to get a working version of the scope. Here is what needed to do:
- First, we followed Chris’ instructions to install the scope creator tool.
- Once we had it set up on my laptop, I run:
scopecreator create twitter vtuson f1
- Next, I configured the scope. The configuration is done in a json file called manifest.json. This file describes the content of what you will publish later to the store. You need to care about: “title”, “description”, “version” and “mantainer”. The rest are values populated by the tool:
scopecreator edit config
"description": "Formula One scope",
"maintainer": "Your Name <yourname@packagedomain>",
"title": "Formula One",
- The following step was to set up the branding: Easy! Branding is define on an .ini file. “Display name” will be the name listed on the “manage” window once installed, and also will be the title of your scope if you don’t use a “PageHeader.Logo”. the [Appearance] section describes the colours and logos to use when banding a scope.
scopecreator edit branding
ScopeRunner=./f1.vtuson_f1 --runtime %R --scope %S
Description=This is an Ubuntu search plugin that enables information from Yelp $
- The final part is to define the departments (drop down menu) for the scope. This is also a json file and it is unique the twitter scope template. You can either use “list” or “account” (or both) as departments. The id is the twitter handle for the list or the account. For lists you will need to specify in the configuration section what account holds the list. As I defined a single entry, the formula one scope will have no drop down menu.
scopecreator edit channels
“openontwitter”:”See in Twitter”,
After this, the only thing left to do is replace the placeholder icon, with a relevant logo:
And build, check and publish the scope:
This last command generates the click file that you need to upload to the store. If you have a device (for example a Nexus4 or an emulator ), it can also install it so you can test it. If you get any issues getting the scope to run, you might want to check your json files on http://jsonlint.com/. It is a great web tool that will help you make sure your json doc is ship shaped!
It is super simple to create a scope for a twitter list! so what are you going to create next?