0
I Use This!
Activity Not Available

Project Summary

Freemote is an open source library for remote controlling different kind of services in a household - but primarily for controlling music players and movie players.

But the library and protocol(based on JSON) is flexible enough to handle all kind of services. It consists of 2 kinds of packages: Intent and Outcome.

IntentThis is the "request" from the client. It describes what action the client wants to execute fx. change song, start player, stop coffemachine, list songs etc. It benefits of having an "extras" field that can contain any kind of data supported by JSON(Thats means no binary data unless its base64 encoded).

Exampleintent:{

action:"freemote.action.service.ListServices",
extras:{
category:"/Media/Music"
}
}

OutcomeThis is the "response" from the server/service. It describes what outcome the service had executing the action in the recieved intent. The outcome contains a result that describes if the intent was fullfilled(OK), an error happened etc. It also contains an "extras" field as the intent did, an can therefore return any kind of data supported by JSON.

Exampleoutcome:{

result:"OK",
extras:{
service:{
url:"http://192.168.1.1:8080/freemote",
category:"/Media/Music",
name:"Banshee Audio Player"
}
}
}

IssuesThe current description of freemote has issues with binaries. It is possible to base64 encode it at contain it in the JSON protocol but:

It takes ressources to encode it and decode it It's not usable in a browser.(It cannot read the data from a file and encode it; it cannot decode the recieved base64 and use it for anything usefull)

A solution could be addind a standard that all service have a special binary service too. Fx. if a service is located at http://192.168.1.1:8080/freemote and the intent was to send a binary to it, the following intent would be added to the url:

intent:{action:"freemote.action.service.SendBinary"}

...resulting in this url(when urlencoded and everything):

http://192.168.1.1:8080/freemote?action=intent%3A%7Baction%3A%22freemote.action.service.SendBinary%22%7D

Then of course the request has to be a HTTP POST contaning the binary data.

Another issue i security.

Tags

No tags have been added

In a Nutshell, freemotelib...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

GNU General Public License v3.0 or later
Permitted

Place Warranty

Use Patent Claims

Commercial Use

Modify

Distribute

Forbidden

Sub-License

Hold Liable

Required

Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

Include Install Instructions

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    search using multiple tags to find exactly what you need
  • ...
    65% of companies leverage OSS to speed application development in 2016
  • ...
    you can embed statistics from Open Hub on your site

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis