Official Xtreamer Forums: APP Installer PHP API v1.02 - Official Xtreamer Forums

Jump to content

  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • This topic is locked

APP Installer PHP API v1.02 Application programming interface for APP Installer.

#1 User is offline   TheHijacker 

  • App Installer Guru
  • Group: Developers
  • Posts: 3580
  • Joined: 26-August 09
  • Country:Slovenia

Posted 26 June 2012 - 07:41

Extending APP Installer package repository to other devices is complicated as two devices are not the same in its software infrastructure. That is why I developed a universal API (Application Programming Interface) that can work on many Xtreamer devices and can easily be extended to support also newer models.

It includes full APP Installer logic and it is written in PHP scripting language. Development went side by side with RSS GUI development created by exe.

1. How to install:

o Automatic installation on Prodigy/SW3

To make this as easy as possible I written a bash script that will install all that for you in correct folder.

All you need to do is run the following command in terminal session (telnet or ssh):

wget -O /tmp/install.sh http://epkg.xtreamer.net/installer/phpapi/prodigy/appinstall.sh && chmod +x /tmp/install.sh && /tmp/install.sh


In Windows you can use client such as Putty to connect over SSH protocol. Input Prodigy/SW3 IP address and port 2022. Login using username admin and password sysadmin. Then paste the command (right mouse click).

Input IP of your Prodigy/SW3 and change port from 22 to 2022:
Posted Image

Then paste the command (copy (CTRL+C) it from forum and then with right mouse click inside Putty window paste it:
Posted Image

He will download all needed files, unpack them to proper folders and once done the message All done.. will be displayed. Script will update the main Prodigy GUI menu adding APP Installer entry to the App menu. It will also fix the non working autostarting of packages and install API itself, the RSS GUI and the PHP GUI.

o Manual installation

You can manually install API onto Prodigy/SW3 or eTRAYz. Download it here:

APP Installer API v1.02

For Xtreamer eTRAYz unpack it to /home/sysadmin/WWW/phpapi, for Prodigy/SW3 unpack it to /data/epkg/www/phpapi folder. The URL path to the API would in this case be:

eTRAYz: http://etrayz_ip:8000/phpapi/appinstaller.php
Prodigy SW3: http://prodigy_ip:80/epkg/phpapi/appinstaller.php


Universal API enables simple creation of graphical user interfaces. So far we have RSS GUI, PHP GUI, .NET GUI and Android GUI available that is using API.

A lot of work was put into development but I hope it was worth it. Not only it will make GUI creation easier task but also enable me to easily support other newer Xtreamer products.

So give it a try in combination with all the graphical interfaces that are also released today.

APP Installer RSS GUI:

Posted Image

APP Installer PHP GUI:

Posted Image

APP Installer .NET GUI:

Posted Image

APP Installer Android GUI:

Posted Image

This post has been promoted to an article
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#2 User is offline   TheHijacker 

  • App Installer Guru
  • Group: Developers
  • Posts: 3580
  • Joined: 26-August 09
  • Country:Slovenia

Posted 26 June 2012 - 07:53

Version 1.02 released on 17.08.2012.

Changelog:

  • fixed a bug with API not working on eTRAYz if output format is json
  • fixed a bug that could prevent package view if URL was not encoded
  • fixed a bug with not showing message in correct language after language was change
  • added outputFormat parameter to getFilterOptions action
  • added new API call getInfo that returns system information about device
  • added new option to change language directly when using action call
  • added new isNew tag to show if package was added/update in last XX days


Version 1.01 released on 08.07.2012.

Changelog:

  • added Russian and Ukrainian translation

My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#3 User is offline   cicciocant 

  • Member
  • Group: Members
  • Posts: 81
  • Joined: 26-December 09
  • City:Toscana
  • Country:Italy

Posted 26 June 2012 - 16:15

THe news that I'm wiating.

I'll try in my sidewider3 as soon qas possible
0

#4 User is offline   XtreamerAdmin 

  • Site Chief Admin
  • Group: Administrators
  • Posts: 9081
  • Joined: 07-June 09

Posted 26 June 2012 - 17:18

Great project made by a great man!
Before posting a question please search in:

Xtreamer Tutorials
Xtreamer Knowledge Base

support@xtreamer.net

#5 User is offline   timo73 

  • Member
  • Group: Members
  • Posts: 133
  • Joined: 12-March 10
  • City:Rheinland-Pfalz
  • Country:Germany

Posted 26 June 2012 - 17:50

Good ideas. Good implementations. Good support.

No more to say!
0

#6 Guest_Extreme Xtreamer_*

  • Group: Guests

Posted 27 June 2012 - 13:51

Nice donation coming your way. Thanks you are awesome :)
0

#7 User is offline   reinier666 

  • Advanced Member
  • Group: Members
  • Posts: 1252
  • Joined: 22-September 09
  • City:Gouda
  • Country:Netherlands

Posted 27 June 2012 - 15:55

View Posttimo73, on 26 June 2012 - 17:50, said:

Good ideas. Good implementations. Good support.

No more to say!


i totaly agree ;)

Thanks guys who made this.

Reinier666
Xtreamer Prodigy Black
Synology DS1511+
Onkyo TX SR-508
Sony bravia LCD
0

#9 User is offline   jeffreydeleeuw 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 27-November 11
  • City:voorschoten
  • Country:netherlands

Posted 27 June 2012 - 23:00

/data/epkg # wget -O /tmp/install.sh http://epkg.xtreamer...taller/phpapi/p
rodigy/appinstall.sh && chmod +x /tmp/install.sh && /tmp/install.sh
--2012-06-27 19:58:16-- http://epkg.xtreamer...y/appinstall.sh
Resolving epkg.xtreamer.net... unable to resolve host address `epkg.xtreamer.net'


getting this on prodigy, doing something wrong ?
1

#10 User is offline   TheHijacker 

  • App Installer Guru
  • Group: Developers
  • Posts: 3580
  • Joined: 26-August 09
  • Country:Slovenia

Posted 28 June 2012 - 04:52

Two options. Xtreamer download server was down or you don't have proper network setup on you Prodigy and it has no internet access. Try again the command today and check you DNS and gateway setting.

You can also try the command to test your network setting:

ping -c 3 epkg.xtreamer.net


You should see something like:

# ping -c 3 epkg.xtreamer.net
PING epkg.xtreamer.net (78.46.49.171): 56 data bytes
64 bytes from 78.46.49.171: seq=0 ttl=50 time=66.861 ms
64 bytes from 78.46.49.171: seq=1 ttl=50 time=67.062 ms
64 bytes from 78.46.49.171: seq=2 ttl=50 time=66.681 ms

--- epkg.xtreamer.net ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 66.681/66.868/67.062 ms

My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#11 User is offline   cicciocant 

  • Member
  • Group: Members
  • Posts: 81
  • Joined: 26-December 09
  • City:Toscana
  • Country:Italy

Posted 29 June 2012 - 08:00

I confirm that all three components are full compatibility with sidewinder3.

Great Work.
0

#12 User is offline   TheHijacker 

  • App Installer Guru
  • Group: Developers
  • Posts: 3580
  • Joined: 26-August 09
  • Country:Slovenia

Posted 29 June 2012 - 08:02

Excelent. Thanks for sharing. Good to know that firmwares are not that different.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#13 User is offline   dlangejc 

  • Advanced Member
  • Group: Members
  • Posts: 332
  • Joined: 29-November 11
  • City:Mpumalanga
  • Country:South-Africa

Posted 29 June 2012 - 15:19

Note to the folks who dont know it yet:

Prodigy Ver 3.5 RC8 not compatible, upgrade to RC9.

Best regards
Xtreamer Prodigy 3D FW 4.2.5
TV: LG LA556210 3D
AV receiver: Samsung HW-E5500 1100W RMS 5.2
Prodigy HDMI connected to reciever
Video: 1080P 60 HZ
D-Link N300 Wi-fi Router
0

#14 User is offline   TheHijacker 

  • App Installer Guru
  • Group: Developers
  • Posts: 3580
  • Joined: 26-August 09
  • Country:Slovenia

Posted 29 June 2012 - 15:34

Yes. Minimal firmware version required is RC9.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#15 User is offline   Fabian_Fr 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 21-October 11
  • City:(54) Meurthe et Moselle
  • Country:France

Posted 30 June 2012 - 06:10

Hello,

I installed this app. It is a very good idea.

Meanwhile, when i try to reach the url : http://192.168.0.5/e...ppinstaller.php

I got message : falseSpecified parameters are incorrect.0.49814009666443

Anyone know the issue ?

Best regards,

Fabian
0

#16 User is offline   TheHijacker 

  • App Installer Guru
  • Group: Developers
  • Posts: 3580
  • Joined: 26-August 09
  • Country:Slovenia

Posted 30 June 2012 - 07:34

That is just the URL to the API that GUI will use. Don't call it directly as it needs proper parameters to reply.

Rether try the PHP GUI, .NET GUI or on TV the RSS GUI. All three are using this newly developed API.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#17 User is offline   carmine 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 29-March 11
  • City:Pesaro
  • Country:Italy

Posted 30 June 2012 - 13:07

Hi thanks for all your hard work but Im afraid I am very new to all this and don't understand all the fraseology can you help me? where do I download this, to my computer or the prodigy itself and which putty to use there were several on the site you gave, once again do I do this on the computer or on the prodigy? sorry to be so slow but I am trying to understand, I would be eternally gratefull if this is put in simple language with clear explanations thank you so much Carmine
0

#18 User is offline   reinier666 

  • Advanced Member
  • Group: Members
  • Posts: 1252
  • Joined: 22-September 09
  • City:Gouda
  • Country:Netherlands

Posted 30 June 2012 - 14:19

View Postcarmine, on 30 June 2012 - 13:07, said:

Hi thanks for all your hard work but Im afraid I am very new to all this and don't understand all the fraseology can you help me? where do I download this, to my computer or the prodigy itself and which putty to use there were several on the site you gave, once again do I do this on the computer or on the prodigy? sorry to be so slow but I am trying to understand, I would be eternally gratefull if this is put in simple language with clear explanations thank you so much Carmine


Hi there,

i dont own a pc...
Do you own a android tablet, ipad or mac computer? if so i can help you.

You install this software using a pc (or mac, or ipad, or other device) and install it into your xtreamer ;)

Tell me what device you have t work with, and i will help

putty is only a program that lets you do command line stuff.

pc - http://the.earth.li/...t/x86/putty.exe putty for use on pc
mac - use terminal build in mac pc already
ipad - use the app vssh lite (free)
android - use the app sshdroid (free)

when you see the command line program, type:
telnet 192.168.1.1 
(ip adres your prodigy) enter
Login using username admin and password sysadmin
then copy/paste the following line :
wget -O /tmp/install.sh http://epkg.xtreamer.net/installer/phpapi/prodigy/appinstall.sh && chmod +x /tmp/install.sh && /tmp/install.sh
enter

on your device you will see the installation progress, when done, you can use the app installer
it even changes the gui from prodigy on tv ;) (see first post this topic)
Reinier666
Xtreamer Prodigy Black
Synology DS1511+
Onkyo TX SR-508
Sony bravia LCD
0

#19 User is offline   TheHijacker 

  • App Installer Guru
  • Group: Developers
  • Posts: 3580
  • Joined: 26-August 09
  • Country:Slovenia

Posted 30 June 2012 - 14:32

Just as reinier666 wrote. You only need to find a way to execute that terminal command on your Prodigy/SW3. For windows use Putty or Winscp.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#20 User is offline   dgun 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 20-February 12
  • City:jakarta
  • Country:Indonesia

Posted 03 July 2012 - 08:45

Install succesfully using automatic installation on my prodigy RC9, and the menu "APP INSTALLER" also appear on my prodigy,but when tried to open the menu, nothing happen. Please advise..
0

#21 User is offline   TheHijacker 

  • App Installer Guru
  • Group: Developers
  • Posts: 3580
  • Joined: 26-August 09
  • Country:Slovenia

Posted 03 July 2012 - 08:49

Did you install any other packages (php, lighttpd, mysql, ...) before using the .NET GUI?

Try to open this page in browser to test if API is working:

http://your_prodigy_ip/epkg/phpapi/appinstaller.php?action=checkVersion


Let me know what the output content is.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

Share this topic:


  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users