Skip to content

shgpavel/weather_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moved to https://git.sr.ht/~shgpavel/weather_app

Overview

A simple application that creates /opt/weather_app/weather file with current geolocation weather data

Defaults

Geolocation updates every service restart
Weather update time is 10 sec, could be changed with

make UPDATE_TIME=20

⚠️ Note location accuracy is provided only through detection of nearby cities in most cases

Important

You have to create a /opt/weather_app/api_key file
with api key from openweathermap

Also make sure bins on your distro in /usr/bin, systemd services
in /usr/lib/systemd/system otherwise edit Makefile

Usage example

Dependencies

clang    >= 17
libcurl  >= 8.7.1
cJSON    >= 1.7.18

Status

Released

Install

sudo make install

Uninstall

sudo make uninstall

Enjoy

sudo systemctl daemon-reload
sudo systemctl enable --now weather.service

Releases

No releases published

Packages

No packages published