SpaceApi / schema

SpaceAPI JSON schema files.
24 stars 14 forks source link

3D Printers #57

Open dakhnod opened 4 years ago

dakhnod commented 4 years ago

I would love to see the state of our 3D printers through the api,

not sure where exactly to put them in the json, though.

Could that be included?

dbrgn commented 4 years ago

What do you mean with "the state"? Whether they're turned on? How long they're printing?

We currently publish the webcam feed through the SpaceAPI: https://status.crdmp.ch/

dakhnod commented 4 years ago

Both, the progress, temperature etc

dbrgn commented 4 years ago

This will probably be quite space-specific, both what data you publish and what you do with it.

You should start specifying and using custom fields (prefixed with ext_ as per https://spaceapi.io/docs/). If a few spaces find this cool and start using the fields as well, we can discuss standardizing them.

Other opinions, @rnestler @gidsi?

gidsi commented 4 years ago

Hmm, 3d printers are quite common, so far i can't think of a space who doesn't have one.

And im pretty sure we can have something quite generalized for the start, something like:

{
  ...
  "sensors": {
    "3dprinter": [
      {
        "name": "my-fancy-printer",
        "time_left": 120,
        "cam": "https://url-to-y.our/webcam"
      }
    ]
  }
  ...
}