For AI agents: visit https://lono.readme.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
Jump to Content
LonoSupportCommunityAPI Home
API Reference
v1.0

SupportCommunityAPI HomeLog InLono
API Reference
Log In
v1.0API Reference

Getting Started

  • Getting Started with the Lono Public API
  • Getting Started with Lono: Single User Application
  • Getting Started with Lono: Production Application

Documentation

  • Turn On a Zonepost
  • Turn Off a Zonepost
  • Get Zone State (which zone is on)get
  • Zone Informationget
  • Update Zonesput
  • Detect Zonespost
  • Lono Informationget

Javascript API

  • Getting Started in Javascript
  • LonoClient.authorize_url()
  • LonoClient.authorize(req, res)
  • LonoClient.callback(req, res)
  • LonoClient.get_device(device_id)

Ruby API

  • Getting Started in Ruby
  • Lono
  • Lono::AuthUrl
  • Lono::SessionToken
  • Lono::Device

Python API

  • Getting Started in Python
  • LonoClient.authorize_url(redirect_on_success)
  • LonoClient.save_token(auth_token)
  • LonoClient.get_device(device_id)
Powered by 
  1. Ruby API

Lono::Device

Lono::Device.new(device_id, session_token)

Creates a new device instance with the specified device id and session token.

token = Lono::SessionToken.fetch
device = Lono::Device.new "device id", token

# now, you can do something like this:
# device.set_zone(0, true)

Updated less than a minute ago


Updated less than a minute ago