From: Sergi R. <sr...@ce...> - 2015-11-23 09:01:24
|
Well, to check if your attribute is archived or not: > ipython # import PyTangoArchiving # attribute = 'a/b/c/d' # rd = PyTangoArchiving.Reader() # rd.is_attribute_archived(attribute) if the result is True, ask for the last hour values # rd.get_attribute_values(attribute,-3600) If the result is False or exception, please reply with your output To add the attribute to archiving: # hdb = PyTangoArchiving.ArchivingAPI('hdb') #or tdb for temporary archiving # hdb.start_archiving(attribute) #To archive every minute # hdb.start_archiving(attribute,{'MODE_P':[15000]}) #To archive every 15s If it fails, reply to this email with your output. The arguments for start_archiving are described in the ArchivingManager documentation. For using tdb you have to configure the DB maintenance/cleanup in your DB server, you can ask Soleil regarding that. Sergi Rubio On 11/23/2015 09:50 AM, Carlos Pascual wrote: > Hi Lukasz, > > As I said, I am personally not an expert on archiving. Sergi Rubio (in > CC) is the author of the archiving support of TaurusTrend, so he may be > able to give better help. > > With my limited knowledge, all I can suggest is: > 1- make sure you use Soleil's archiving system (according to srubio, it > doesn't work with other archivers) > 2- make sure that your attribute (let's say "a/b/c/d") is configured in > the archiver and also that its values are really being archived (*) > 3- launch taurustrend a/b/c/d > 4- use the context menu to enable archiving (righ-click->use archiver) > 5- Now go to plot configuration (Right-click->plot configuration) and > disable the "Fixed-range scale" checkbox. Then enter a start value > previous to the time when you launched the trend (step 3). Apply and > Close the configuration dialog. > > You should be seeing archived values now. > > (*) Note: this is crucial, but it is where I cannot help you much since > I've never done this myself. I guess you can do a mysql query against > the DB, or use Mambo... > > > > > On Fri 20 November 2015 12:06:42 Lukasz Zytniak wrote: >> Hi Carlos, >> >> Please find in attachment printscreen from Astor, as I know we are >> using *external* archiver infrastructure. >> Still, I have problem with taurustrend --use-archiving. >> >> Could you please help me? >> >> Best regards, >> Lukasz >> >> W dniu 2015-11-13 o 16:06, Carlos Pascual pisze: >>> (Note: the original message was sent to both devel and users list. I >>> reply only to the the users list to avoid duplication of messages) >>> >>> Hi, >>> >>> Since the feature is working without problems in Alba and you do not >>> give details of how you are trying it, I can only guess a very basic >>> explanation... please excuse me if my answer is too obvious: >>> >>> In order to use the archiving feature you need, first of all, to >>> have the values archived. That is, an *external* archiver >>> infrastructure is needed, and the attributes for which you wish to >>> access the archived values need to be configured for archiving. >>> >>> Sergi rubio may be able to give further hints... >>> >>> Cheers, >>> Carlos >>> >>> On Fri 13 November 2015 15:22:47 Lukasz Zytniak wrote: >>>> Hello All, >>>> >>>> I have a question about taurustrend --use-archiving, as you can >>>> find >>>> in attachment, it doesn't work. >>>> I tested it on new TangoBox9 and in control room at Solaris (we are >>>> using taurus-3.3.0). >>>> I didn't find any ticket >>>> (http://sourceforge.net/p/tauruslib/tickets/), so maybe I use it in >>>> wrong way or I don't know how to configure it? I found in >>>> documentation: >>>> http://www.taurus-scada.org/en/stable/users/ui/trend.html#accessing >>>> -ar chived-values >>>> >>>> I will be very gratefull for your help. >>>> >>>> Kind regards, >>>> Lukasz |