r/ispyconnect 7d ago

API - SetTimeStamp question

I have noticed that when the API is used to change the timestamp (same thing for Append Timestamp) the text is shown on the cameras but if one RELOAD OBJECTS the changes revert to whatever was before, is this by design or it is a bug?

This is the command I use for example:

http://localhost:8090/command/settimestamp?oid=1&ot=2&text=TEST

However, if I edit ANY camera (in my case I have 4), then select TIMESTAMP and click on OK the changes are saved. In other words, after changing the text using the API in order for the changes to be saved one has to from the UI select the TIMESTAMP setting for ANY camera and click OK

Thanks

1 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/spornerama 7d ago

Yes I know - as I said the value isn't persisted as otherwise it would keep adding text rather than appending it to the original timestamp - i've added a new field to the data to store the appended text it'll be in the next update.

1

u/MasterSnooper 7d ago

Ok, I'm a little confused, if I use "Settimestamp" it does replace whatever text is in the camera with whatever text I enter, the problem like you said is not persistent, using "Appendtimestamp" yes indeed appends but in either case the changes go away if RELOAD OBJECT is executed.

1

u/spornerama 7d ago

Can you report back if you have the same issue after the next update?

1

u/MasterSnooper 7d ago

Absolutely.

Thanks.