Git Product home page Git Product logo

weatherman's Introduction

Weatherman

is a simple tool build on top of nager.at holiday API and the open-meteo API.

It allows you to define a location with lat and long coordinates for which it will get a weather forecast for the next 24 hours from open-meteo. It then queries nager.at if the respective day is a holiday in Spain (presently not configurable), so all day is considered superOffPeak.

Prices will now be ranked by temperature, so you can get the highest outside temperature in the best energy price window, ideal for heat pump applications.

The number of time slots is configurable in the request.

Work in progress.

Run your own

Prerequisites

  • docker-compose

Configure

  • adapt environment in .env to your needs, see .env.example
  • do not change TZ
  • API_SECRET is required by default. Incoming queries to the REST server need to provide this as API_KEY in the request header.

Setup

  • execute ./deploy.sh
  • Default port is 3002. Congratulations. You now have a running weatherman on this port. It can easily be reverse proxied if need be.

Updating

  • executing ./deploy.sh will always rebuild the main branch of this repository and restart the container

weatherman's People

Contributors

willyfromtheblock avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.