NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 23 24 25 26 27 … 93 Next »
Country Plugin

 
  • 0 Vote(s) - 0 Average
Country Plugin
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#1
2009-08-06, 08:34 PM (This post was last modified: 2009-08-13, 07:56 PM by MixMan.)
I have managed to make a plugin, without any programming skills whatsoever.
The plugin can show flags and country codes.

I have made an Excel sheet that can generate an XML file with country data, that the plugin reads and shows.

Download from
http://www.hyperlinkx.com/pmwiki/pmwiki....ry.Country


<Country>
<CountryName>Afghanistan</CountryName>
<LocalName>Afghanestan</LocalName>
<Target>http://www.navyband.navy.mil/anthems/ANTHEMS/Afghanistan.mp3</Target>
<HomeURL>https://www.cia.gov/library/publications/the-world-factbook/geos/af.html</HomeURL>
<LargeFlag>Afghanistan.png</LargeFlag>
<SmallFlag>AF.gif</SmallFlag>
<FIPS104>AF</FIPS104>
<ISO3166-2>AF</ISO3166-2>
<ISO3166-3>AFG</ISO3166-3>
<Win-3>AFG</Win-3>
<ISO3166-number>4</ISO3166-number>
<CountryCode>af</CountryCode>
</Country>

The plugin is based on WebRadio. But I don't have enough skills to get it to play an audio file or show the CIA factbook for that Country.

Is there anyone that want to improve it?
In that case I will upload the code, plugin, flags and XML file to my wiki.....in a zip
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
Dave72
Offline

Member

Posts: 186
Threads: 23
Joined: Jul 2005
#2
2009-08-07, 03:42 AM
What a cool niche idea, Mixman !

At first I thought, well.. who would want a menu item that just displays flags of the world. You might use it once or twice, showing off the system etc.

But, yes.. if you could click on a flag/country and get some kinda cia world factbook or other factoid site about the country.. then it gets interesting.

Along the same route.. what about a plugin that would give ya a few jokes of the day.. or some "this day in history" page, etc.

Hope this ball gets rollin..

ps- is your plugin restricted to a skin-type ? Does it work with the new Community Skin ? Maybe you can go ahead and start up a wiki for it.. work in progress with the plugin for ppl to test ?
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#3
2009-08-13, 07:16 PM (This post was last modified: 2009-08-13, 07:55 PM by MixMan.)
The Country plugin can be downloaded from my dev wiki.
When clicking on a flag, it will launch a browser ink to the CIA World Factbook.

Download from
http://www.hyperlinkx.com/pmwiki/pmwiki....ry.Country

Anthems for the countries shuld be played but there is a problem playing an mp3 file on the web.
From the PVRX2 log file
2009-08-13 21:16:23.187 VERBOSE [1] getValue() loading new key/value into cache: /settings/NetRadioBufferSize
2009-08-13 21:16:23.187 VERBOSE [1] getValue: /settings/NetRadioBufferSize : 96000
2009-08-13 21:16:23.187 INFO [1] NetRadio buffer size is: 96000
2009-08-13 21:16:23.312 VERBOSE [11] (Trying connect to: http://www.navyband.navy.mil/anthems/ANT...nistan.mp3)
2009-08-13 21:16:23.703 VERBOSE [11] Connected...
2009-08-13 21:16:24.359 VERBOSE [11] Closing shoutcast stream due to bytesRead = 0
2009-08-13 21:16:24.359 ERROR [11] Error: Objektreferensen har inte angetts till en instans av ett objekt.
2009-08-13 21:16:24.359 ERROR [11] vid GBPVRX2.Utility.x1dd653ecab0477de.x9eaf5e2b7940ab15()
2009-08-13 21:16:24.359 ERROR [11] Error closing shoutcast socket: Objektreferensen har inte angetts till en instans av ett objekt.
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,723 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,292 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,420 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,856 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,733 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,027 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,930 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 4,930 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,210 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,406 2012-01-15, 08:33 PM
Last Post: imilne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode