GithubHelp home page GithubHelp logo

seungmannlee / oboo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ouellettetech/oboo

0.0 1.0 0.0 52 KB

Stash for oboo Clock Code (modifications)

JavaScript 30.93% PowerShell 9.81% Shell 8.84% Python 50.42%

oboo's Introduction

Oboo Smart Clock

The Oboo Smart Clock was a Kickstarter project by The Onion Corporation that promised a device that marries a large format clock with a smart display powered by the Onion Omega2 IoT platform. Upon delivery, it was discovered that a number of basic functionality was broken and missing entirely. This repository will serve as a resource to help users get their units functioning properly.

Enabling SSH

The easiest way to interface with the Oboo and make changes is through shell access, but unfortuantely, SSH is disabled. To enable SSH access, dropbear must be enabled and this can be done in a few ways.

Enable SSH via Powershell Script

This is mostly for Windows users. Click here to download the script by jcouctch. Make sure you are connected to the Oboo access point before running the script.

It's possible to run Powershell on Linux/Mac as well.

Enable SSH via Web Calls

Using a tool such as Postman, make sure you are connected to the Oboot access point and execute a POST command to http://192.168.3.1/ubus with the following body:

{"jsonrpc":"2.0","id":0,"method":"call","params":["00000000000000000000000000000000","session","login",{"username":"root","password":"uUhdKGPJw52c61gXDXfQQsRd"}]}

Pay attention to what's returned. You are looking for SessionID (labeled: ubus_rpc_session). Copy this value and send a new POST to the same address, with this body:

{"jsonrpc":"2.0","id":0,"method":"call","params":["SessionID","file","exec",{"command":"/bin/ln","params":["-s","/etc/init.d/dropbear","/etc/rc.d/S21dropbear"]}]}

Reboot your Oboo and you should be able to connect to it via it's IP with the root/password login.

Weather

The weather card is broken because the Oboo was using a public Yahoo Weather API that was decomissioned on January 3, 2019. Replace the yahooWeather.js file in /usr/bin/js with the contents of this file. Then edit weather.js and change the call from getYahooWeather to getOpenWeather

Fixing the Battery Indicator

Open /usr/bin/js/mcu.js and change:

var batteryVoltage = detectedVoltage * 1.25

to:

var batteryVoltage = detectedVoltage * 1.49

Updating the AP wireless password

The default wireless password for the Oboo is 123456789. This is unsecure but you can update it by editing /etc/config/wireless

Enabling Bluetooth Audio

Bluetooth should already be enabled for Kickstarter backers but if it's not, just execute gpioctl dirout-high 3. If you see this setting is not persisting between reboots, please add gpioctl dirout-high 3 to /etc/rc.local. See more.

Reseting the System (In case you make a mistake)

/sbin/firstboot -y

Miscellaneous Links

oboo's People

Contributors

jcoutch avatar jravetch avatar napalmcsr avatar ouellettetech avatar umamiking avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.