{"id":13682309,"url":"https://github.com/JulianNorton/weather-milliseconds","last_synced_at":"2025-04-30T07:31:22.085Z","repository":{"id":72532280,"uuid":"124161312","full_name":"JulianNorton/weather-milliseconds","owner":"JulianNorton","description":"Experiment to render a forecast as fast as possible","archived":true,"fork":false,"pushed_at":"2020-10-03T02:52:11.000Z","size":420,"stargazers_count":29,"open_issues_count":4,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-02T13:33:56.433Z","etag":null,"topics":["flask","forecast","hacktoberfest","python","weather"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JulianNorton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-07T01:33:17.000Z","updated_at":"2024-08-02T13:33:56.434Z","dependencies_parsed_at":null,"dependency_job_id":"87b8df34-d82c-4031-b950-7a29b98f30c5","html_url":"https://github.com/JulianNorton/weather-milliseconds","commit_stats":{"total_commits":57,"total_committers":5,"mean_commits":11.4,"dds":0.6491228070175439,"last_synced_commit":"088a47a97aaabb37331761621aa5b1bb0aec4bd9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianNorton%2Fweather-milliseconds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianNorton%2Fweather-milliseconds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianNorton%2Fweather-milliseconds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianNorton%2Fweather-milliseconds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulianNorton","download_url":"https://codeload.github.com/JulianNorton/weather-milliseconds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224201928,"owners_count":17272667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","forecast","hacktoberfest","python","weather"],"created_at":"2024-08-02T13:01:43.879Z","updated_at":"2024-11-12T01:31:28.900Z","avatar_url":"https://github.com/JulianNorton.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# Experiment to render the weather forecast as fast as possible. ~~Goal is sub 100ms.~~ ~40 milliseconds if you're in NYC.\n\n## Set-up\n\n```\npython3 -m venv venv \u0026\u0026 source venv/bin/activate \u0026\u0026 pip3 install -r requirements.txt \u0026\u0026 FLASK_APP=app.py FLASK_DEBUG=1 python -m flask run --port=5001\n```\n\n\n#### Good resources\n* Setting up Flask: https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world\n\n\n### Production setup\n\n```\n# Use a screen\n# [not needed after venv installed] sudo python3 -m venv venv\nscreen\nsource venv/bin/activate\nsudo -H pip3 install -r requirements.txt\nsudo FLASK_APP=app.py python3 -m flask run --port=5001\n```\n`Ctrl a` `p` to detatch from the screen \n\n### Production reset\n\n```\n(To find python processes:)\nps -ef | grep python\nsudo kill -9 23826\n(\"23826\" is whatever the number is returned that you want to kill)\nscreen\nsudo git pull\nsudo python3 -m venv venv\nsource venv/bin/activate\nsudo -H pip3 install -r requirements.txt\nsudo FLASK_APP=app.py python3 -m flask run --port=5001\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJulianNorton%2Fweather-milliseconds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJulianNorton%2Fweather-milliseconds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJulianNorton%2Fweather-milliseconds/lists"}