Scene file

Hello

It’s been a while since I’ve been here. And as soon as I come back, it’s to ask a question.

I’m trying to find out where scenes are stored in my system to see what the files look like.

Thanks

PS: I’m a newbie in Linux

Hi @Prof_Techno,

If I’m not mistaken, just in the database in the t_scene table.

The data model is available here:

I thought we were going through a json

It seems complex to go through a database

Thanks

@Prof_Techno the best way is to go through the API, at least there it’s JSON and no risk of corrupting the database :slight_smile:

How to access the API: HTTP API | Gladys Assistant

The API documentation for scenes: Gladys Assistant REST API documentation

OK thanks a lot

I think I’ll come back to ask questions I think

Good evening

So if I understand the idea correctly, I retrieve a token and then I make a scene get request, which returns a file or JSON text corresponding to the scene.

And to add a new scene, I do the same but in reverse, remembering not to enable it for verification on the Gladys scene page.

Does that seem correct to you?

Exactly! Don’t hesitate to ask the AI for help with the documentation links :slight_smile: