Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

jed/electric-objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electric-objects

This library provides a node.js API for updating Electric Objects EO1 picture frames, and works by scraping the current web UI. Currently it only exposes the set_url interface, which allows you to update the url of the web page displayed in the Chromium instance of all frames attached to your account.

Usage

let eo = require('electric-objects')
let client = eo('where@jed.is', '●●●●●●●●●')
let setUrl = client.setUrl('http://brooklynjs.com')

setUrl.then(() => console.log('Frame updated!'))

API

let eo = require('electric-objects')

This module exports a client constructor function.

let client = eo(email, password)

The constructor takes your email/password credentials and returns a client instance.

client.setUrl(url)

The client instance provides only one method, which takes a URL and returns a promise that resolves when the URL is submitted.

About

A node.js API for the Electric Objects EO1 frame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published