https://github.com/shgpavel/weather_app
simple weather app
https://github.com/shgpavel/weather_app
c linux-tools systemd-service
Last synced: about 1 year ago
JSON representation
simple weather app
- Host: GitHub
- URL: https://github.com/shgpavel/weather_app
- Owner: shgpavel
- License: apache-2.0
- Created: 2024-10-28T11:52:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-03T19:33:46.000Z (over 1 year ago)
- Last Synced: 2025-02-09T04:17:02.543Z (over 1 year ago)
- Topics: c, linux-tools, systemd-service
- Language: C
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> 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