020_Open Habitation

Aggregating data to search the sustainability of offered real estate

⛶ Full screen

Presentation slides

We created a minimal API that aggregates data from GeoAdmin (Swisstopo) and PVGIS (EU) to calculate a score for any building property which is in the Open Data sources. Plans to build on this and add crowdsourcing capabilites have been discussed.

Please note: At the moment, the calculation of PV production does not work properly. But the rough procedure as well as the API-queries are correct. We have to change little things and we will update as soon as possible.

Next steps

(1) Complete basic functionality of the prototype

(2) Build on the (Falcon based) Web API

(3) Make further improvements to the data model

Challenge

How sustainable is this property?

  • The building sector still has huge impact on climate change, altough co2-reduction is relatively easy (and cheap) to reach.
  • When choosing the next property (rental or buying), the environment plays a role that is too small. As a result, investors are less interested in green solutions. One reason why ecological aspects are not taken into account in the selection is that no (or not enough) information is available for home-seekers.
  • let's provide this information!
  • "collect and combine" public information of offered real estate (heating system and - if time remains - photovoltaics, building standard, access to green mobility ...). Provide this information for real estate marketplaces.
This content is a preview from an external site.

Open Habitation API

This is a project started at the Energy Data Hackdays 2021. Please see our project page for background.

Service

This repository contains a minimal backend service API based on the Falcon framework, Pandas DataPackage Reader, and the Falcon plugin for apispec.

Use pip with requirements.txt or install the Poetry dependency manager, and:

poetry install
poetry shell
python api.py

To update the requirements file:

poetry export --without-hashes -f requirements.txt > requirements.txt

At this point you should see the message "Serving on port..."

Test the API using a REST client such as RESTer with queries such as:

http://localhost:8000/production/yearly

Postman settings

postman_parameters

License

This package is licensed by its maintainers under the MIT License.

If you intended to use these data in a public or commercial product, please check the data sources themselves for any specific restrictions.

Worked on the pitch

27.09.2021 05:10 ~ EcoHabitas

fuerstenberger has joined!

25.09.2021 17:41

Readme updated

25.09.2021 15:15 ~ loleg

Event finished

25.09.2021 15:00

Worked on the pitch

25.09.2021 14:02 ~ loleg

Readme updated

25.09.2021 12:18 ~ loleg

Adding a simple test page and DB cache

25.09.2021 12:18 ~ loleg

Worked on the pitch

25.09.2021 12:17 ~ loleg

Update README.md

Added basic static index

Form body request

Fixes and more bugs :)

Added requirements

calculate yearly production (@jonas.fuerstenberger@posteo.de)

calculate yearly production

loleg has joined!

25.09.2021 09:33

Initial API :gear:

Requirements Engineering, Selections of Tools and Data to use

24.09.2021 16:12 ~ EcoHabitas

Event started

24.09.2021 08:30

carlos_arajo has joined!

22.09.2021 20:35

Worked on the pitch

21.09.2021 08:38 ~ Maud

EcoHabitas has joined!

18.09.2021 05:41

Project started

Initialized by EcoHabitas 🎉

16.09.2021 19:59
Loading ...
All attendees, sponsors, partners, volunteers and staff at our hackathon are required to agree with the Hack Code of Conduct. Organisers will enforce this code throughout the event. We expect cooperation from all participants to ensure a safe environment for everybody. For more details on how the event is run, see the Guidelines on our website.

Creative Commons LicenceThe contents of this website, unless otherwise stated, are licensed under a Creative Commons Attribution 4.0 International License.

Energy Data Hackdays 2021