mirror of
https://github.com/dotFionn/iassure-wx.git
synced 2026-03-21 06:22:56 -05:00
Compare commits
2 Commits
561cf13eb8
...
cd77081009
| Author | SHA1 | Date | |
|---|---|---|---|
| cd77081009 | |||
| b9a91a59a2 |
@@ -8,7 +8,7 @@ steps:
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
registry: git.fsisp.de
|
||||
repo: git.fsisp.de/fionn/isasure-wx
|
||||
repo: git.fsisp.de/fionn/iassure-wx
|
||||
username:
|
||||
from_secret: reg_username
|
||||
password:
|
||||
@@ -33,7 +33,7 @@ steps:
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
registry: git.fsisp.de
|
||||
repo: git.fsisp.de/fionn/isasure-wx
|
||||
repo: git.fsisp.de/fionn/iassure-wx
|
||||
username:
|
||||
from_secret: reg_username
|
||||
password:
|
||||
|
||||
21
README.md
21
README.md
@@ -1,7 +1,18 @@
|
||||
# TypeScript Project Template
|
||||
# IASsure-WX
|
||||
|
||||
## preparation
|
||||
## idea
|
||||
|
||||
```sh
|
||||
npm install -g eslint eslint-config-airbnb-typescript eslint-plugin-import eslint-plugin-n eslint-plugin-promise
|
||||
```
|
||||
This service is designed to gather weather data to be used by [IASsure](https://github.com/MorpheusXAUT/IASsure) by [MorpheusXAT](https://github.com/MorpheusXAUT). It is uses the [Open-Meteo.com](https://open-meteo.com)-API to gather the necessary data to provide to the plugin.
|
||||
|
||||
## Installation/Deployment
|
||||
|
||||
IASsure-WX can be installed using docker. The image is available at `git.fsisp.de/fionn/iassure`.
|
||||
|
||||
Tags:
|
||||
- `latest` - The newest recommended build, built from `main`
|
||||
- `dev` - The newest development/staging build, built from `develop`
|
||||
- Other than those tags, every image is tagged with the git commit id
|
||||
|
||||
## Configuration
|
||||
|
||||
IASsure-WX can be configured using the `wx-config.json`-file. For now it contains test data but will include production data for at least the Langen FIR. It necessary, another file can be mounted on top of it (`/opt/wx-config.json`). You may also choose to make the necessary changes to the file in this repository. The file is documented in the schema definition file (`wx-config.schema.json`).
|
||||
|
||||
@@ -54,6 +54,7 @@ export interface WxData {
|
||||
info: {
|
||||
date: string;
|
||||
datestring: string;
|
||||
legal: string;
|
||||
};
|
||||
data: {
|
||||
[key: string]: WxFixData;
|
||||
@@ -103,6 +104,7 @@ export async function generateData() {
|
||||
info: {
|
||||
date: now.toISOString(),
|
||||
datestring: `${now.getUTCDate()}${now.getUTCHours()}`,
|
||||
legal: "Weather data by Open-Meteo.com (https://open-meteo.com)"
|
||||
},
|
||||
data: {}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,3 @@ services:
|
||||
- '9229:9229/tcp'
|
||||
volumes:
|
||||
- .:/opt:delegated
|
||||
environment:
|
||||
- MONGO_URI
|
||||
- PORT=3030
|
||||
Reference in New Issue
Block a user