{"id":23143421,"url":"https://github.com/digitalinteraction/usb-01","last_synced_at":"2025-07-20T01:34:28.536Z","repository":{"id":207163316,"uuid":"709520160","full_name":"digitalinteraction/usb-01","owner":"digitalinteraction","description":"Visualise the first floor of the Urban Sciences Building","archived":false,"fork":false,"pushed_at":"2025-07-11T13:28:24.000Z","size":204,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T15:47:06.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://usb.openlab.dev/","language":"JavaScript","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/digitalinteraction.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-24T21:05:19.000Z","updated_at":"2025-07-11T13:28:27.000Z","dependencies_parsed_at":"2024-11-08T15:24:41.929Z","dependency_job_id":"1d48a28d-56e0-4639-80cd-f0f30e673eb0","html_url":"https://github.com/digitalinteraction/usb-01","commit_stats":null,"previous_names":["digitalinteraction/usb-01"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digitalinteraction/usb-01","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fusb-01","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fusb-01/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fusb-01/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fusb-01/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalinteraction","download_url":"https://codeload.github.com/digitalinteraction/usb-01/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fusb-01/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266053860,"owners_count":23869499,"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":[],"created_at":"2024-12-17T15:13:25.908Z","updated_at":"2025-07-20T01:34:28.514Z","avatar_url":"https://github.com/digitalinteraction.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# usb-01\n\nThis project is a visualisation of the Urban Sciences Building first floor using the [Urban Observatory](https://newcastle.urbanobservatory.ac.uk) API.\n\n## How it works\n\nThe visualisation is based on an SVG floor plan of the first floor, where Open Lab is.\nThe SVG is enhanced with JavaScript using the [JSON floor data](./source/floor.json) which maps parts of the SVG into rooms and spaces.\n\nRooms are individual places on the floor with a single sensor.\nThe room's background colour is set by fetching the latest data for the currently selected metric, interpolating that into a colour and setting it as the background colour.\nThis uses [color-interpolator](./source/color-interpolator.js) to do the interpolation based on presets from the selected metric.\n\nSpaces are made up of multiple zones each with their own sensors. The space's is turned into a [Voronoi diagram](https://en.wikipedia.org/wiki/Voronoi_diagram) using [voronoi.js](./source/voronoi.js) and then each zone in the diagram is interpolated with the latest sensor data's interpolated colour using [point-image-interpolator.js](./source/point-image-interpolator.js).\n\n## Development\n\nTo play about with the repo, check it out on your local machine.\n\n```sh\n# cd to/this/repo\n\n# Run the development server\n# -\u003e Starts a local HTTP server on http://localhost:5173/\nnpm run start\n\n# Build production version\nnpm run build\n\n# Build \u0026 preview production version \nnpm run build\n```\n\n## Deployment\n\nTo push changes, commit and push them to the `main` branch and GitHub will do the rest.\nIt will build the site and deploy it to GitHub pages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalinteraction%2Fusb-01","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalinteraction%2Fusb-01","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalinteraction%2Fusb-01/lists"}