Code Monkey home page Code Monkey logo

homedisplay's Introduction

Home Display ๐Ÿ 

This project aims to provide timings for nearby bus stop, meteo information and currency information. It is intended to run on a controlled environment on a raspberry-pi.

homedisplay

Organisation ๐Ÿ› ๏ธ

The Tauri app is used to display & interact with the results from the APIs (cached in redis). It serves as a desktop application that displays (~in real time) the data of the different APIs. It relies on an external redis storage to cache results.

App ๐Ÿ’ป

To run the tauri application run npm run tauri dev. This will build the app and start it in development mode. In order to be able to use the APIs directly, some variables need to be set.

export OWM_API_KEY=<Your api key for openweathermap>
export OER_API_KEY=<Your api key for openexchangerate>
export SL_PLACE_API_KEY=<Your api key for SL Platsuppslag>
export SL_PLACE_ROOT_URL=<The base url for the places API>
export SL_PLACE_BUS_STOPS=<The stops to monitor, separated by a comma>
export SL_REALTIME_API_KEY=<Your api key for SL Realtidsinformation 4>
export SL_REALTIME_ROOT_URL=<The base url for the realtid API>

To set the latitude and longitude of the location to get the weather information for, you will need to export the following variables:

export OWM_LAT=<latitude of the point>
export OWM_LON=<longitude of the point>

To change the currency conversions

export OER_FROM=<Base currency code>  # e.g. EUR
export OER_TO=<Currency to convert to>  # e.g. SEK

To set the stop(s) to watch time for

export SL_PLACE_BUS_STOPS=<stop_name>,...

Recommended IDE Setup

Arm compilation

This project is intended to run on a raspberryPi. The script arm_comp.sh serve to compile and build a .deb package for raspbian. Only ubuntu is supported as of now.

APIs

homedisplay's People

Contributors

minigrim0 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.