Hello,
I just started with you Python library. I'm trying to set some DateTime for a "Single action schedule" (class_id = 22) and can't find a correct way to set those. If i use the "Datetime" python format is OK, something like this:
"GXDateTime(datetime(1900, 1, 1, 0, 0, 0, 0), datetime)"
This limits me since i can't set anything that falls outside of this format, like:
* Don't care values.
* Last day of month/year.
* Anykind of dayofWeek.
So, is there a way to set those to make it work with the schedule class ID? Thank you in advance.
PS: I've been doing some research in those classes and found out that the base class, GXDateTime, sets dayofWeek to 0 at start and never uses again, so maybe can't work.
Hi, You can set the last day…
Hi,
You can set the last day of the month like this:
GXDateTime("LASTDAY/*/* 01.00.00")
You need to use the correct date-time format, but the idea is this.
Most meters don't use dayofWeek and that is not used as a default because it's causing problems with existing meters. If you want to use it you must set it.
BR,
Mikko
Thank you for the answer,…
Thank you for the answer, Mikko. I'll give a try on Monday.
For weekofDay, i think is easier for us to allow 0 as a wildcard instead of modifying python library.
Greetings,
J.R. Gómez
Hi, If you don't set…
Hi,
If you don't set weekofDay wildcard value is used.
BR,
Mikko
Hey Mikko, Just saw it…
Hey Mikko,
Just saw it yesterday. From here, we can work fine.
Thanks for the help!
Greetings,
J.R. Gómez