Coder Social home page Coder Social logo

westatus's Introduction

westatus

Cool status application written in C# using ASP.NET

Usage

westatus hosts a simple http server which can be queried for information, meant for integration with status bars like polybar or dwm-bar

To run westatus, compile it (requires .NET 8, preferrably to a single file (dotnet publish --os=linux -p:SingleFilePublish=true)), and then run it on startup

Currently supports simple weather integration using open-metro

Can be configured using a toml file, see the example config file

By default, westatus loads the config file from ~/.config/westatus/config.toml, but this can be overridden with a command line parameter

Polybar integration

Requires the https://erikflowers.github.io/weather-icons/ and https://zavoloklom.github.io/material-design-iconic-font/ icon fonts to work properly

Load them into polybar in your config.ini

[bar/example]
...

font-1 = Weather Icons:size=14;4
font-2 = Material\\-Design\\-Iconic\\-Font:style=Design-Iconic-Font;2

...

Example weather module for polybar

[module/weather]
type = custom/script
exec = curl -s http://localhost:40001/weather
interval = 60

Result:

polybar weather integration

TODO

TODO:

  • Add precipitation chance/amount
  • Add more status stuff
  • idk clean up code?

westatus's People

Contributors

chairclr 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.