Skip to content

pr3st00/jarvis_client_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jarvis Java client library

A client library for Jarvis written in JAVA, useful for home automation using Jarvis backend.

Configuration

Fill in the jarvis url in jarvis.properties

Sample code

package br.com.fernandoalmeida.jarvis;

import br.com.fernandoalmeida.jarvis.client.JarvisClient;
import br.com.fernandoalmeida.jarvis.exception.JarvisConfigurationException;

public class Demo
{
	public static void main(String[] args) throws JarvisConfigurationException
	{
		JarvisClient client = new JarvisClient();

		// Make sure audio is enabled
		client.enableSound();

		// Say something
		client.say("Hi there!", "Smile for the camera!");

		// Take a picture
		client.takePhoto("myphoto.jpg");

		client.say("Check your picture now!");
		
		// Close all client internal resources
		client.close();
	}
}

Current Release: v0.0.4

Current Feature Requests/Suggestions

Pending..

License

MIT

Author

[Fernando Almeida] (fernando.c.almeida@gmail.com)