2012-11-25, 00:45
Hey guys well i felt i may as well release this, its nothing special yet but does what i wanted it to do
XBMC Command Sender
Summary
this is a simple program that lets you send actions for xbmc via json using command line arguments,
e.g. XBMCCommandSender.exe VideoLibrary.Scan
I created this purely for Allway sync which allows you to rnu custom actions after sync, so i set it so it will sync and once done it will load this application with the argument to update the video library.
Requires NET Framework 4.0 since it uses JSON functions.
Features
Usage
Download
Version 1.0
Virus Total
https://www.virustotal.com/file/f1e3b764...353797004/
Before thinking this is easy to make etc... please be aware that i had no idea what JSON was until today and definitely didn't know how to use it in .NET
XBMC Command Sender
Summary
this is a simple program that lets you send actions for xbmc via json using command line arguments,
e.g. XBMCCommandSender.exe VideoLibrary.Scan
I created this purely for Allway sync which allows you to rnu custom actions after sync, so i set it so it will sync and once done it will load this application with the argument to update the video library.
Requires NET Framework 4.0 since it uses JSON functions.
Features
- Send command to xbmc via json-rpc using command line
- easy to configure GUI
- Simple but effective for what i created for it
Usage
Code:
This application uses arguments to send various actions to XBMC
Currently there is no GUI except the configuration GUI.
This application uses JSON so you will need to allow HTTP Control in XBMC
(Settings > Services > WebServer > Allow Control of XBMC via HTTP)
You will then need to add your XBMC Details below
(XBMC IP, XBMC Port, XBMC WebUI Username and Password)
P.S since last time i released software for a community (XBian) I was accused for stealing code, so therefore i would like to state that this is all my code and i worked on it for a fair few hours and that i am the owner of cyanlabs.co.uk
This application is designed to be run via another application such as "Allway Sync"
(You can set it to run "filename.exe --update-video-library" when sync is finished)
Currently it only supports XBMC JSON actions which don't require parameters
(This is likely to be added at a later date)
So Finally, To run this you simply create a shortcut or run it via cmd like this...
"PROGRAM LOCATION\XBMCCommandSender.exe" ACTION
Example - Updating Video Library (Frodo)
XBMCCommandSender.exe VideoLibrary.Scan
Example - Pressing Back Button
XBMCCommandSender.exe Input.Back
You can find a list of actions that can be used from the link below
http://wiki.xbmc.org/index.php?title=JSON-RPC_API
Download
Version 1.0
Virus Total
https://www.virustotal.com/file/f1e3b764...353797004/
Before thinking this is easy to make etc... please be aware that i had no idea what JSON was until today and definitely didn't know how to use it in .NET