Coder Social home page Coder Social logo

jveiga / disturbancesmlx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from underlx/disturbancesmlx

0.0 1.0 0.0 2.94 MB

Fancy status page and status logger for the Lisbon Metro, that scrapes the official website for information

Home Page: https://perturbacoes.pt

License: Apache License 2.0

Go 63.30% PLpgSQL 0.12% Shell 0.05% HTML 24.94% CSS 5.43% JavaScript 6.16%

disturbancesmlx's Introduction

disturbancesmlx Discord license

Fancy status page and status logger for the Lisbon Metro, that scrapes the official website for information. Live at https://perturbacoes.pt.

The server is written in Go. It is compatible with PostgreSQL only and designed to run behind a reverse proxy.

The code can be modified to work with other networks, including multiple networks at once and multiple sources of information for a single network.

It can also be extended to support other kinds of network incidents ("disturbances"), including whole-network incidents. Right now all "disturbances" are line-oriented.

Since the service, in its current form, monitors a Portuguese subway network, it targets a Portuguese audience and the frontend is in pt-PT. All code and comments are in English.

The website contains a heavily modified version of cnanney's CSS flip counter.

Installation

go get -u github.com/underlx/disturbancesmlx, as is tradition with Go projects.

Use the schema.sql file to create the schema on your PostgreSQL database, and edit the database connection string in secrets-debug.json.

go build, run disturbancesmlx and wait for the "Scraper completed second fetch" log message to appear. The HTTP server should be available on localhost port 8089 by then.

Contributing

Contributions are welcome. Fork this project, commit your changes and open a pull request.

Disclaimer

I have no affiliation with Metropolitano de Lisboa, E.P.E.. The code and the associated website are not sponsored or endorsed by them. I shall not be liable for any damages arising from the use of this code or associated website.

disturbancesmlx's People

Contributors

gbl08ma avatar brazanet avatar

Watchers

James Cloos 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.