getimage
/JSON?request=getimage&path=PATH_TO_IMAGE
Returns a base64 encoded image at the given path. The path is relative to the HomeSeer HTML directory.
Example request:
http://IP_or_domain/json?request=getimage&path=images\HomeSeer\status\on.gif
Example return:
{
- "Response":"ok",
- "FileBase64":"base64 encoded image"
}
If the file is not found and error is returned:
{
- "Response":"Error, file not found"
}