Skip to content

Display weather and bus timing information at home

Notifications You must be signed in to change notification settings

Minigrim0/HomeDisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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