Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wezm/dewpoint.7bit.org
https://github.com/wezm/dewpoint.7bit.org
dewpoint dewpoint-forecasting rust weather
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wezm/dewpoint.7bit.org
- Owner: wezm
- License: apache-2.0
- Created: 2021-10-16T10:49:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-02T00:08:12.000Z (7 months ago)
- Last Synced: 2024-10-11T17:43:36.001Z (3 months ago)
- Topics: dewpoint, dewpoint-forecasting, rust, weather
- Language: Rust
- Homepage: https://dewpoint.7bit.org/
- Size: 359 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Dew Point Forecast
==================[![Build Status](https://api.cirrus-ci.com/github/wezm/dewpoint.7bit.org.svg)](https://cirrus-ci.com/github/wezm/dewpoint.7bit.org)
This is a small web application that provides the dew point for forecast for a
selected location. The dew point is the temperature at which dew forms as air
is cooled. Knowing the dewpoint is good for determining how humid a day will
feel.Building
--------This application is built with [Rust] using the [Rocket web framework][Rocket].
It also makes use of the IP2Location DB for mapping IPs to countries. The
database is available from
and should be placed in
the root of the project.### Configuration
There is a sample config file in `Rocket.toml.sample`, copy this to
`Rocket.toml` and add the two keys. For the OpenWeather API key you will need
to create an account at .Configuration can also be done via environment variables, which is handy for
prod deployment. See the [Rocket documentation][rocket-config] for details.### Build
cargo build
The binary will be in `target/debug/dewpoint`.
### Production Build
Add `--release` to the build command:
cargo build --release
The binary will be in `target/release/dewpoint`.
### Run
cargo run
Tips
----Fast auto-rebuilding server:
watchexec -w src -w templates -s SIGINT -r 'mold -run cargo run'
**Note:**
* [watchexec](https://github.com/watchexec/watchexec) watches the file-system
and runs a command when changes are detected
* [mold](https://github.com/rui314/mold) is a fast linker for Linux.Licence
-------This project is dual licenced under either of:
- Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/wezm/Quotes/blob/master/LICENSE-APACHE))
- MIT license ([LICENSE-MIT](https://github.com/wezm/Quotes/blob/master/LICENSE-MIT))at your option.
[Rust]: https://www.rust-lang.org/
[Rocket]: https://rocket.rs/
[rocket-config]: https://rocket.rs/v0.5-rc/guide/configuration/#configuration