Kodi Community Forum
Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC (/showthread.php?tid=113136)



RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - N3MIS15 - 2012-10-31

You could just open the xhr address for recently added with urllib from the script. Im at work so i dont know the exact address but it would be something like urllib.urlopen('http://127.0.0.1:7000/xhr/recently_added/')

Take a look in recently_added.py for the exact address..


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - N3MIS15 - 2012-10-31

https://gist.github.com/3985121

niietzshe, thats an updated version of the script that should do exactly what your after...

checks if XBMC is running
if not it wakes the htpc via WOL
pings XBMC until it gets a response
check if XBMC is scanning for videos
if not initiates a scan
does a while loop to check if its scanning
when scan has stopped it polls Maraschino recently added episodes and movies modules
finally it shutsdown XBMC.

you can change timeout/sleep times to whatever works for you..


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - niietzshe - 2012-10-31

Wicked, that's great.
My Python scripting is very rusty so syntax might not be right, but I could just add this right to only shut down if it wasn't already on in the first place?

Code:
#add wason var
wason = 1

#Ping XBMC to see if its awake
if xbmc.JSONRPC.Ping() != 'pong':
    wason = 0
    wake_htpc()

#Shutdown XBMC if it wasn't on at first
if wason == 0
    xbmc.System.Shutdown()



RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - N3MIS15 - 2012-10-31

Missing a : on the if, but yea should do it.


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - skabyss - 2012-11-01

Is anybody else having issues adding and editing scripts? Seems if I try to do either there is no response from the module..

Also, I wanted to give a heads up that headphones is no longer showing album thumbs!


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - mybrain87 - 2012-11-02

(2012-11-01, 18:40)skabyss Wrote: Is anybody else having issues adding and editing scripts? Seems if I try to do either there is no response from the module..

Also, I wanted to give a heads up that headphones is no longer showing album thumbs!

I can't add Scripts too. I've put a couple .sh and .py scripts into the scripts folder, but I can't add them in the module. Nothing happens when i click on add script.

Anybody knows why?

EDIT: With todays Update it's working! Thank you very much ;-)


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - Mspec - 2012-11-05

Just a very small request which I am sure can be fixed in 1sec, On the Couchpotato module if I have nothing in my wanted list it says.
There are no movies is your wanted list. Could you please fix it to say There are no movies in your wanted list.
I know its such a small detail but it bugs the hell out of me every time I see it. Tongue

Cheers



RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - Shaolin - 2012-11-05

(2012-11-05, 19:45)Mspec Wrote: Just a very small request which I am sure can be fixed in 1sec, On the Couchpotato module if I have nothing in my wanted list it says.
There are no movies is your wanted list. Could you please fix it to say There are no movies in your wanted list.
I know its such a small detail but it bugs the hell out of me every time I see it. Tongue

Cheers

I've just made my first ever pull request for this albeit easy typo correction Big Grin

Edit: Gugahoi just merged it, so it's sorted now.


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - Mspec - 2012-11-06

(2012-11-05, 20:54)Shaolin Wrote: I've just made my first ever pull request for this albeit easy typo correction Big Grin

Edit: Gugahoi just merged it, so it's sorted now.

Thanks guys now I can view the page with satisfaction and even sleep a little eaiser at night now knowing it looks correct. Big Grin



RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - N3MIS15 - 2012-11-06

(2012-11-05, 20:54)Shaolin Wrote:
(2012-11-05, 19:45)Mspec Wrote: Just a very small request which I am sure can be fixed in 1sec, On the Couchpotato module if I have nothing in my wanted list it says.
There are no movies is your wanted list. Could you please fix it to say There are no movies in your wanted list.
I know its such a small detail but it bugs the hell out of me every time I see it. Tongue

Cheers

I've just made my first ever pull request for this albeit easy typo correction Big Grin

Edit: Gugahoi just merged it, so it's sorted now.

Every little bit helps.. Also i must note there have been a few bugs/issues reported the the last few days, most of which have been corrected. So if you do spot any bugs/issues please do point them out and we will do our best to get them fixed.


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - pettergulbra - 2012-11-06

Hi

Does this program work if not XBMC all ways running?
And can I use this as an webpage just to see what movies I have etc.?
I don`t need to start the movie and so on from the webpage.

And I`m not an skilled PC guy, so i thought I would go for the CherryPy install future, if it simple. But could not find any instructions.

Hope for some answers. :-)


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - Shaolin - 2012-11-06

(2012-11-06, 21:06)pettergulbra Wrote: Hi

Does this program work if not XBMC all ways running?
And can I use this as an webpage just to see what movies I have etc.?
I don`t need to start the movie and so on from the webpage.

And I`m not an skilled PC guy, so i thought I would go for the CherryPy install future, if it simple. But could not find any instructions.

Hope for some answers. :-)

Certain modules require an XBMC connection to display data such as:
  • Media Library
  • Recently Added Episodes
  • Recently Added Movies
  • Recently Added Albums

So if you want to use Maraschino to see which movies/episodes/albums you have then XBMC needs to be turned on.

As far as I recall there is just one install method now? Just download the zip file from the master repo and run the file "Maraschino.py"

Simple.

NB. I also installed pywin to make .py files executable in windows




Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - hellow - 2012-11-06

(2012-11-06, 21:06)pettergulbra Wrote: Hi

Does this program work if not XBMC all ways running?
And can I use this as an webpage just to see what movies I have etc.?
I don`t need to start the movie and so on from the webpage.

And I`m not an skilled PC guy, so i thought I would go for the CherryPy install future, if it simple. But could not find any instructions.

Hope for some answers. :-)

You can find step by step install and setup on htpc.blogg.no


RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - pettergulbra - 2012-11-06

(2012-11-06, 21:40)hellow Wrote: You can find step by step install and setup on htpc.blogg.no

Thanks, now I have done that, I can`t open localhost. Can`t find anything. Even tried my local IP address. Still nothing.
The pictures in the blog is to small, so I can`t see anything on them.

So as i can see, I can`t get it to work, so I can set it up.

Thanks so far.



RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - Shaolin - 2012-11-06

(2012-11-06, 23:21)pettergulbra Wrote:
(2012-11-06, 21:40)hellow Wrote: You can find step by step install and setup on htpc.blogg.no

Thanks, now I have done that, I can`t open localhost. Can`t find anything. Even tried my local IP address. Still nothing.
The pictures in the blog is to small, so I can`t see anything on them.

So as i can see, I can`t get it to work, so I can set it up.

Thanks so far.

What happens if you type the following into your browser:

Code:
localhost:7000/
or your local ip address eg.
Code:
192.168.1.6:7000/