TickerOwl App SDK
This contains the base types and interfaces to create apps for TickerOwl.
Building blocks
- The information that is displayed on the device is called Slide.
- An App can take user inputs, do some processing (async) and return slides to be displayed.
- Each Slide has a type and the information to be displayed.
Make your own TickerOwl App
- Make new directory for your app.
mkdir my-app && cd my-app
- Initiate npm project
npm init -y
- Install & setup typescript
npm install -D typescript
& npx tsc --init
- Install
tickerowl-app-base
package npm install tickerowl-app-base
- Create
src/index.ts
file and add the following code:
import { App, AppInfo, AppSlide } from "tickerowl-app-base";
export default class MyApp implements App {
getInfo(): AppInfo {
}
getSlides(): Record<string, AppSlide> {
}
}
- Build the app
npx tsc
- Run the app
node dist/run.js <path-to-your-app>
- Publish the npm package
npm publish
For more information, refer to TickerOwl.com or reach out to @pramodk73