La Dimensionneuse is a device which can be used to measure and categorize random materials. It is being developped by WAO, in partnership with Re-Store and WoMa.
The idea behind the Dimensionneuse is to create a device that would allow us to reference wasted materials. Our goal is to encourage reusability of materials as far as architecture, design, and Building Information Modeling (BIM) are concerned.
The repo is a template : you should customize it to match your hardware. If you want a static or mobile dimensionneuse, you may use different sensors.
This project is conceived in a modular way : the website, the measuring process and the database are three independant parts. It makes it easy to use other sensors or another database.
main.js
is the entry point. It uses Express
to setup a local website. Here are the different implemented requests :
GET /
(connecting tolocalhost:3000
) serves the page inwebsite/
POST /calibrate
calls thecalibrate
function inmeasure/main.js
GET /measure
calls themeasure
function inmeasure/main.js
POST /upload
calls theupload
function indatabase/main.js
Edit measure/main.js
and database/main.js
to use your sensors and your database.
If you want to start from scratch, you can configure the dimensionneuse using the wiki.
Clone this repo and install the dependencies :
npm install
Then, launch the dimensionneuse with :
npm start
If you want the dimensionneuse to start on boot, follow this tutorial with the following service :
[Unit]
Description=Dimensionneuse Service
After=network.target
[Service]
WorkingDirectory=/path/to/dimensionneuse
ExecStart=/usr/bin/node main.js
Restart=on-failure
User=pi
Environment=PORT=3000
[Install]
WantedBy=multi-user.target
Project under Creative Commons Licence CC-BY 4.0.