JUMP TOGetting StartedGetting Started with the Lono Public APIGetting Started with Lono: Single User ApplicationGetting Started with Lono: Production ApplicationDocumentationTurn On a ZonepostTurn Off a ZonepostGet Zone State (which zone is on)getZone InformationgetUpdate ZonesputDetect ZonespostLono InformationgetJavascript APIGetting Started in JavascriptLonoClient.authorize_url()LonoClient.authorize(req, res)LonoClient.callback(req, res)LonoClient.get_device(device_id)Ruby APIGetting Started in RubyLonoLono::AuthUrlLono::SessionTokenLono::DevicePython APIGetting Started in PythonLonoClient.authorize_url(redirect_on_success)LonoClient.save_token(auth_token)LonoClient.get_device(device_id)Powered by Lono::DeviceLono::Device.new(device_id, session_token) Creates a new device instance with the specified device id and session token. Rubytoken = Lono::SessionToken.fetch device = Lono::Device.new "device id", token # now, you can do something like this: # device.set_zone(0, true)