Git Product home page Git Product logo

urban_flows's People

Contributors

christopher-wild avatar joe-heffer-shef avatar mikeg64 avatar vekimenko avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

urban_flows's Issues

Awesome: Validate AQI readings

  • check units are correct
  • manually recalculate
  • online AQI calculator
  • online AQI database
  • compare bonfire night
  • compare night vs. daytime (expect lower at night)
  • airmonitors have the most metrics

Parallel processing

Enable multi-threading to sync in parallel and increase throughput?

For Awesome data bridge: run AQI and data in separate processes? so they both sync in near real-time

Secure password storage

  • find a suitable solution for encrypted secret storage
  • make /home/uflo/configs not world-readable

DEFRA SOS get stations client error

I'm on master 39032ef

When I run > python pipeline.py -d 2020-01-01 -od test.csv I get the output below.

ERROR:http_session:400 Client Error: Bad Request for url: https://uk-air.defra.gov.uk/sos-ukair/api/v1/stations?near=%7B'near':%20'%7B%22center%22%3A%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B53.379699%2C-1.469815%5D%7D%2C%22radius%22%3A50%7D'%7D ERROR:http_session:<html><head><title>Apache Tomcat/7.0.82 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.82</h3></body></html> Traceback (most recent call last): File "pipeline.py", line 54, in <module> main() File "pipeline.py", line 32, in main stations = list(fh.get_stations()) File "C:\Users\joesh\Documents\University of Sheffield\Urban Flows Observatory\Data Pipelines\urban_flows\defra_sos\download.py", line 54, in get_stations data = self.session.call(self.base_url, 'stations?near={}'.format(query)) File "C:\Users\joesh\Documents\University of Sheffield\Urban Flows Observatory\Data Pipelines\urban_flows\defra_sos\http_session.py", line 37, in call response = self._call(base_url, endpoint, **kwargs) File "C:\Users\joesh\Documents\University of Sheffield\Urban Flows Observatory\Data Pipelines\urban_flows\defra_sos\http_session.py", line 26, in _call response.raise_for_status() File "C:\Users\joesh\Miniconda3\envs\uflo\lib\site-packages\requests\models.py", line 939, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://uk-air.defra.gov.uk/sos-ukair/api/v1/stations?near=%7B'near':%20'%7B%22center%22%3A%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B53.379699%2C-1.469815%5D%7D%2C%22radius%22%3A50%7D'%7D

Awesome: filter nulls

Make the data bridge remove null or -32768 values (don't upload them to remote server)

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.