GithubHelp home page GithubHelp logo

crush_curve's People

Contributors

dependabot[bot] avatar hbokh avatar sjors avatar taylan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

crush_curve's Issues

ERROR: null value in column "municipality_id"

Hoi Sjors,

Net vers gecloned, maar het loopt vast op de rake data:fetch.
PostgreSQL-error:

2020-10-03 14:46:51.981 CEST [350] ERROR:  null value in column "municipality_id" violates not-null constraint
2020-10-03 14:46:51.981 CEST [350] DETAIL:  Failing row contains (2, null, 2020-03-13 00:00:00, null, null, null, 2020-10-03 12:46:51.980269, 2020-10-03 12:46:51.980269, null, f, f).
2020-10-03 14:46:51.981 CEST [350] STATEMENT:  INSERT INTO "cases" ("day", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id

Rake nagenoeg vergelijkbaar natuurlijk:

# rake data:fetch
Downloading CSV...
Parsing CSV...
Processing records...
rake aborted!
ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR:  null value in column "municipality_id" violates not-null constraint
DETAIL:  Failing row contains (2, null, 2020-03-13 00:00:00, null, null, null, 2020-10-03 12:46:51.980269, 2020-10-03 12:46:51.980269, null, f, f).
/usr/local/lib/ruby/gems/2.7.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in `exec_params'
/usr/local/lib/ruby/gems/2.7.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in `block (2 levels) in exec_no_cache'
/usr/local/lib/ruby/gems/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'

...

Heb de DB al eens gedropt en opnieuw aangemaakt plus de gesuggereerde rails db:migrate gedraaid.
Ik heb alleen dit als aanwijzing: https://github.com/Sjors/crush_curve/blob/master/db/schema.rb#L19

Draai op macOS Mojave, met PostgreSQL 12.4, rake 13.0.1 maar heb niet de indruk dat het een versie probleem van de software is op dit moment.

Enig idee? Bij voorbaat dank!

Site no longer active?

@Sjors Is there a reason the site is no longer available? I personally liked it very much.
Resolving / checking DNS doesn't come up with an A (or AAAA) address.

$ host www.pletdecurve.nl
Host www.pletdecurve.nl not found: 3(NXDOMAIN)

Use regional case file to calculate province totals

RIVM publishes a CSV with individual cases and the date of testing, since the start of the epidemic. This is better than the daily totals, because it doesn't result in negative case counts if there's a correction.

The only problem is that the data is per GGD region, not per municipality. So it can only be used at the province level (the file conveniently has a Province column).

Using this data on the landing page would paint a more accurate picture of national trends, so it's probably worth the discrepancy with the province page, which has more fine grained but less accurate data.

https://data.rivm.nl/covid-19/COVID-19_casus_landelijk.csv

Fetch RIVM daily stats directly

The Esri feed contains historical data, but it tends to be published later than the RIVM data. On June 1 it wasn't published at all.

RIVM data only contains the current day, but they seem quite punctual.

We should attempt to fetch RIVM data and fall back to Esri for historical gaps.

db:rake werkt niet op Linux

Geprobeerd om alles PopOS! 20.04 LTS (ID_Like: ubuntu debian) op localhost werkend te krijgen. Gaf wat problemen.

update ruby van 2.7.0 naar 2.7.1
uitleg op https://www.itzgeek.com/post/how-to-install-ruby-on-rails-on-ubuntu-20-04/

bundle install
gaf eerst foutmelding voor pg 1.2.3

heb toen eerst handmatig

sudo apt-get install libpq-dev
geïnstalleerd.

Toen gingen alle bundle dingen goed.

rake db:seed

geeft nog een foutmelding:

PG::ConnectionBad: FATAL: role "mijnusername" does not exist

rails s

werkt wel maar localhost:3000 riep

PG:ConnectionBad.
Could  not connect to server: no such file or directory. ise the server running locally and acception connections in Unix domain socket var/run/postgresql 5432 ?

sudo service postgresql start

lost dat op. Maar dan blijft ook daar

FATAL: role 'mijnusername" does not exist.

En toen heb ik het opgegegeven. Ben niet heel goed met ruby ook verder.

SSL Cert werkt niet (Windows 10?)

Error code: SSL_ERROR_PROTOCOL_VERSION_ALERT
in Firefox, Chrome en Edge voor pletdecurve.nl

(en git clone op Ubuntu proberen te draaien geeft ook fouten. Jammer, want erg handige site!)

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.