Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 63 of 238  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
icon1.gif   Please advise on how to set up selective email notification on logbooks, posted by Julian Brower on Mon Oct 26 15:20:44 2015 

Please advise on how to set up selective email notification on logbooks; We want to send an email to specific people when an event that involves them is entered? 

At the moment, we currently get an email entry for every new logbook entry. Thanks

 

    icon2.gif   Re: Please advise on how to set up selective email notification on logbooks, posted by Andreas Luedeke on Tue Oct 27 11:23:43 2015 
Hi Julian,
there is a whole chapter in the documentation about that: https://midas.psi.ch/elog/config.html#email
If I have to send email, e.g. for Controls issues entered in the operation logbook, I do send the email to a specific mailman mailing list for that group.
It is cumbersome to manage email groups in the logbook configuration - in particular if the same lists exists in different logbooks. I only refer to the mailing list then in ELOG, and the groups can manage their lists themself.
I do maintain about 30 logbooks and there are about 10 groups at my institutes that desire email notifications for ELOG entries related to the systems they manage.
Cheers
Andreas
Julian Brower wrote:

Please advise on how to set up selective email notification on logbooks; We want to send an email to specific people when an event that involves them is entered? 

At the moment, we currently get an email entry for every new logbook entry. Thanks

 

 

       icon2.gif   Re: Please advise on how to set up selective email notification on logbooks, posted by Julian Brower on Tue Oct 27 14:58:20 2015 

Thanks Andreas, I will read that section. Julian

Andreas Luedeke wrote:
Hi Julian,
there is a whole chapter in the documentation about that: https://midas.psi.ch/elog/config.html#email
If I have to send email, e.g. for Controls issues entered in the operation logbook, I do send the email to a specific mailman mailing list for that group.
It is cumbersome to manage email groups in the logbook configuration - in particular if the same lists exists in different logbooks. I only refer to the mailing list then in ELOG, and the groups can manage their lists themself.
I do maintain about 30 logbooks and there are about 10 groups at my institutes that desire email notifications for ELOG entries related to the systems they manage.
Cheers
Andreas
Julian Brower wrote:

Please advise on how to set up selective email notification on logbooks; We want to send an email to specific people when an event that involves them is entered? 

At the moment, we currently get an email entry for every new logbook entry. Thanks

 

 

 

icon1.gif   How can we calculate and display the difference between two time entries on a log entry, posted by Julian Brower on Mon Oct 26 15:24:44 2015 Log_time_entry.jpg

See drawing below: We have a beam on and a beam off time. We want to fill in the lost time automaticaaly. Please can you help? Julian

 

    icon2.gif   Re: How can we calculate and display the difference between two time entries on a log entry, posted by Stefan Ritt on Mon Oct 26 16:48:51 2015 

Unfortunately elog cannot do calculations based on certain fields. You could however add some Javascript code (via "Bottom text = ..." for example), which does that. But that requires JavaScript knowledge to do so.

Julian Brower wrote:

See drawing below: We have a beam on and a beam off time. We want to fill in the lost time automaticaaly. Please can you help? Julian

 

 

       icon2.gif   Re: How can we calculate and display the difference between two time entries on a log entry, posted by Julian Brower on Tue Oct 27 09:26:56 2015 

Stefan, I am not an expert in this field so I wondered how one goes about finding someone to write this and how one amends the soruce code? Is that allowed?  Is it a feature than may be of use for other users? Julian

Stefan Ritt wrote:

Unfortunately elog cannot do calculations based on certain fields. You could however add some Javascript code (via "Bottom text = ..." for example), which does that. But that requires JavaScript knowledge to do so.

Julian Brower wrote:

See drawing below: We have a beam on and a beam off time. We want to fill in the lost time automaticaaly. Please can you help? Julian

 

 

 

icon5.gif   Logging entries from the command line, posted by kenzo Abrahams on Mon Oct 26 11:06:46 2015 

Good Afternoon

Im trying to automatically post an entry using information saved in a text file. I have followed the example in the users guide but i always seem to get a error message saying transmission failed. Lets say for instance I have a user named John and his password is Blue and he wants to log into a logbook called home from a textfile the command im using to log a message from the file is

elog -h localhost -p 8080 -u John Blue -l home -a Author=John -m textfile

I cant seem to figure out why i keep getting this error message. I even tried deleting the password file because i thought it might be an authentication issue.

Can anybody assist me please it would be much appreciated.

Regards

    icon2.gif   Re: Logging entries from the command line, posted by Stefan Ritt on Mon Oct 26 11:18:57 2015 

Run the elog command with an additional -v flag (verbose output), and you will see what the elogd server return. It's HTML, but you should be able to see some error message.

kenzo Abrahams wrote:

Good Afternoon

Im trying to automatically post an entry using information saved in a text file. I have followed the example in the users guide but i always seem to get a error message saying transmission failed. Lets say for instance I have a user named John and his password is Blue and he wants to log into a logbook called home from a textfile the command im using to log a message from the file is

elog -h localhost -p 8080 -u John Blue -l home -a Author=John -m textfile

I cant seem to figure out why i keep getting this error message. I even tried deleting the password file because i thought it might be an authentication issue.

Can anybody assist me please it would be much appreciated.

Regards

 

       icon2.gif   Re: Logging entries from the command line, posted by kenzo Abrahams on Mon Oct 26 11:24:46 2015 

Hi Stephan

The error message I get is "Error: Command Submit not allowed". I dont know if this might be an issue but it says Response Recieved: HTTP/1.1 404 Not Found in the first line of the servers response

Stefan Ritt wrote:

Run the elog command with an additional -v flag (verbose output), and you will see what the elogd server return. It's HTML, but you should be able to see some error message.

kenzo Abrahams wrote:

Good Afternoon

Im trying to automatically post an entry using information saved in a text file. I have followed the example in the users guide but i always seem to get a error message saying transmission failed. Lets say for instance I have a user named John and his password is Blue and he wants to log into a logbook called home from a textfile the command im using to log a message from the file is

elog -h localhost -p 8080 -u John Blue -l home -a Author=John -m textfile

I cant seem to figure out why i keep getting this error message. I even tried deleting the password file because i thought it might be an authentication issue.

Can anybody assist me please it would be much appreciated.

Regards

 

 

          icon2.gif   Re: Logging entries from the command line, posted by Stefan Ritt on Mon Oct 26 11:32:08 2015 

This indicates that the username/password is not correct. Can you log in to that logbook in your browser with the username "John" and password "Blue"?

kenzo Abrahams wrote:

Hi Stephan

The error message I get is "Error: Command Submit not allowed". I dont know if this might be an issue but it says Response Recieved: HTTP/1.1 404 Not Found in the first line of the servers response

Stefan Ritt wrote:

Run the elog command with an additional -v flag (verbose output), and you will see what the elogd server return. It's HTML, but you should be able to see some error message.

kenzo Abrahams wrote:

Good Afternoon

Im trying to automatically post an entry using information saved in a text file. I have followed the example in the users guide but i always seem to get a error message saying transmission failed. Lets say for instance I have a user named John and his password is Blue and he wants to log into a logbook called home from a textfile the command im using to log a message from the file is

elog -h localhost -p 8080 -u John Blue -l home -a Author=John -m textfile

I cant seem to figure out why i keep getting this error message. I even tried deleting the password file because i thought it might be an authentication issue.

Can anybody assist me please it would be much appreciated.

Regards

 

 

 

             icon2.gif   Re: Logging entries from the command line, posted by kenzo Abrahams on Mon Oct 26 12:17:40 2015 

Yes I can it works perfectly from the browser.

Stefan Ritt wrote:

This indicates that the username/password is not correct. Can you log in to that logbook in your browser with the username "John" and password "Blue"?

kenzo Abrahams wrote:

Hi Stephan

The error message I get is "Error: Command Submit not allowed". I dont know if this might be an issue but it says Response Recieved: HTTP/1.1 404 Not Found in the first line of the servers response

Stefan Ritt wrote:

Run the elog command with an additional -v flag (verbose output), and you will see what the elogd server return. It's HTML, but you should be able to see some error message.

kenzo Abrahams wrote:

Good Afternoon

Im trying to automatically post an entry using information saved in a text file. I have followed the example in the users guide but i always seem to get a error message saying transmission failed. Lets say for instance I have a user named John and his password is Blue and he wants to log into a logbook called home from a textfile the command im using to log a message from the file is

elog -h localhost -p 8080 -u John Blue -l home -a Author=John -m textfile

I cant seem to figure out why i keep getting this error message. I even tried deleting the password file because i thought it might be an authentication issue.

Can anybody assist me please it would be much appreciated.

Regards

 

 

 

 

                icon2.gif   Re: Logging entries from the command line, posted by kenzo Abrahams on Mon Oct 26 12:26:03 2015 

Hi Stephan I got it to work for some reason elog was complaining that my encoding of the message wasnt allowed. I allowed the lognook to allow ELcode and it works perfectly.

Thank you for the help.

kenzo Abrahams wrote:

Yes I can it works perfectly from the browser.

Stefan Ritt wrote:

This indicates that the username/password is not correct. Can you log in to that logbook in your browser with the username "John" and password "Blue"?

kenzo Abrahams wrote:

Hi Stephan

The error message I get is "Error: Command Submit not allowed". I dont know if this might be an issue but it says Response Recieved: HTTP/1.1 404 Not Found in the first line of the servers response

Stefan Ritt wrote:

Run the elog command with an additional -v flag (verbose output), and you will see what the elogd server return. It's HTML, but you should be able to see some error message.

kenzo Abrahams wrote:

Good Afternoon

Im trying to automatically post an entry using information saved in a text file. I have followed the example in the users guide but i always seem to get a error message saying transmission failed. Lets say for instance I have a user named John and his password is Blue and he wants to log into a logbook called home from a textfile the command im using to log a message from the file is

elog -h localhost -p 8080 -u John Blue -l home -a Author=John -m textfile

I cant seem to figure out why i keep getting this error message. I even tried deleting the password file because i thought it might be an authentication issue.

Can anybody assist me please it would be much appreciated.

Regards

 

 

 

 

 

icon5.gif   How does one create a html template for an entry, posted by kenzo Abrahams on Thu Oct 15 12:32:19 2015 
Good Day

I am new to elog and have a question. This is best explain with an example. If I have two logbooks named "home" and "work" and I would like all the entries of home to be of a specific html format (for example a table containing
a set amount of rows and columns) and work can be any plain text entry how would I go about doing this? I saw the documentation mention something about html templates but i cant seem to find the section about where they are stored
or how they are created and applied to a specific logbook. I know how to restrict the entry encoding to either html, elcode or plain text for a logbook. Any help would be appreciated.

Regard
Kenzo Abrahams
    icon2.gif   Re: How does one create a html template for an entry, posted by Stefan Ritt on Thu Oct 15 14:34:36 2015 
> Good Day
> 
> I am new to elog and have a question. This is best explain with an example. If I have two logbooks named "home" and "work" and I would like all the entries of home to be of a specific html format (for example a table containing
> a set amount of rows and columns) and work can be any plain text entry how would I go about doing this? I saw the documentation mention something about html templates but i cant seem to find the section about where they are stored
> or how they are created and applied to a specific logbook. I know how to restrict the entry encoding to either html, elcode or plain text for a logbook. Any help would be appreciated.
> 
> Regard
> Kenzo Abrahams

So-called "custom" entry/view forms are a bit for experienced people. You should be fluent with HTML and JavaScript. The (minimal) documentation is here: https://midas.psi.ch/elogs/Forum/66909

If you want a table style input form, better use Google Spreadsheets.

Stefan
       icon2.gif   Re: How does one create a html template for an entry, posted by kenzo Abrahams on Mon Oct 26 11:16:54 2015 
> > Good Day
> > 
> > I am new to elog and have a question. This is best explain with an example. If I have two logbooks named "home" and "work" and I would like all the entries of home to be of a specific html format (for example a table containing
> > a set amount of rows and columns) and work can be any plain text entry how would I go about doing this? I saw the documentation mention something about html templates but i cant seem to find the section about where they are stored
> > or how they are created and applied to a specific logbook. I know how to restrict the entry encoding to either html, elcode or plain text for a logbook. Any help would be appreciated.
> > 
> > Regard
> > Kenzo Abrahams
> 
> So-called "custom" entry/view forms are a bit for experienced people. You should be fluent with HTML and JavaScript. The (minimal) documentation is here: https://midas.psi.ch/elogs/Forum/66909
> 
> If you want a table style input form, better use Google Spreadsheets.
> 
> Stefan

Thank you Stephan this really helped me.
icon5.gif   Columns numeric input are added/computed, posted by Dawang on Fri Oct 23 03:36:18 2015 

Hi Stefan,

Good day. I'm thinking if this wishlist is already available in elog. The values in columns we're added or computed according to formula set in a single separate column.

 

Thanks,

 

Raymund

    icon2.gif   Re: Columns numeric input are added/computed, posted by Stefan Ritt on Fri Oct 23 08:29:33 2015 

No, formulas are not yet implemented. For such things I would use Google Spreadsheets in meantime.

Stefan

Dawang wrote:

Hi Stefan,

Good day. I'm thinking if this wishlist is already available in elog. The values in columns we're added or computed according to formula set in a single separate column.

 

Thanks,

 

Raymund

 

icon5.gif   Show attachments = 0, posted by Eric Quintero on Wed Aug 12 23:44:16 2015 

I have "Show attachments = 0" set in [global], but attachments are shown in the "Full" view. Is this the intended behavior? Looking at individual entries correctly hides the attachments. 

We use inline images often, so when an attachement is shown at the bottom of a post it is effectively a duplicate, which clutters things up a bit. 

    icon2.gif   Re: Show attachments = 0, posted by Stefan Ritt on Thu Aug 13 08:41:57 2015 Screen_Shot_2015-08-13_at_8.43.40_.png

That's strange. If you use HTML or ELCode encoding, attachments are automatically hidden if they are used inline. So no "Show attachments = 0" necessary! I just tried that with the demo logbook and here is how it looks:

As you can see, there is no attachment shown in the full view. This is actually handled by the function "is_inline_attachment()" in elogd.c. I don't know if you can do debugging, but somehow this inline test won't work for you and the question is why. Can you try the simple configuration from the demo logbook and see if you still have the problem? Can you show me an example when this does not work. I need to reproduce your problem exactly in order to fix it.

Stefan

 

 

Eric Quintero wrote:

I have "Show attachments = 0" set in [global], but attachments are shown in the "Full" view. Is this the intended behavior? Looking at individual entries correctly hides the attachments. 

We use inline images often, so when an attachement is shown at the bottom of a post it is effectively a duplicate, which clutters things up a bit. 

 

       icon2.gif   Re: Show attachments = 0, posted by Eric Quintero on Mon Aug 31 17:14:08 2015 

The automatic hiding behavior is what I'm after, and I've discovered that it is only a problem for PDF attachments. I have reproduced this on the demo logbook on git revision f828049. 

I've taken a look at the source you mentioned, but as far as I can tell, it is just looking for the opening of the img tag in the HTML source, and I'm not sure why that is different for a PDF.

          icon2.gif   Re: Show attachments = 0, posted by Eric Quintero on Fri Oct 16 00:24:50 2015 

Hm, looking through the source, there are many many places where PDF files are treated differently than strictly image filetypes (PNG, etc.). This makes sense in the context of multi-page documents. 

Still, I like using PDFs for vector plots... I suppose I should also confess to the following modification I've made to my ELOG for treating PDFs like images in drag-and-drop uploading. 

--- a/scripts/ckeditor/plugins/dndfiles/plugin.js
+++ b/scripts/ckeditor/plugins/dndfiles/plugin.js
@@ -142,7 +142,7 @@ CKEDITOR.plugins.add( 'dndfiles', {
                                                                return;

                                                        if(src.indexOf(".png") >= 0 || src.indexOf(".jpg") >= 0 || src.indexOf(".jpeg") >= 0
-                           || src.indexOf(".gif") >= 0 || src.indexOf(".svg") >= 0) { // This is an image
+                           || src.indexOf(".gif") >= 0 || src.indexOf(".svg") >= 0 || src.indexOf(".pdf") >= 0) { // This is an image
                                                                html += '<a href = ' + src + '><img src = "' + thumb + '">' + '</a>';
                                                        } else {        // this is not an image
                                                                // Server appends 14 characters in front of the name so we should remove them

icon5.gif   inline jpg to png, posted by Jacky Li on Sun Oct 4 20:29:01 2015 

Hi,

We have a user who posted a lot of inline jpg.  The elog system converted those to png and thus cause the size of the elog to expand about ~4x of the original size.  It is caused the problem of entry size too large for email notifications.  Is there a way to turn off the conversion to png picture file?  May I know also know why it converts to png to store on the server?  Thank you very much.

Jacky

    icon2.gif   Re: inline jpg to png, posted by Stefan Ritt on Tue Oct 13 09:47:18 2015 

You can turn off thumbnail creation with

Thumbnail size = 0

as written in the documentation. The PNG files are "thumbnails" (= smaller versions of large pictures). Mostly people put large images into elog entries, which take long times to download. Having small thumbnails insted speeds up download times considerably.

Stefan

Jacky Li wrote:

Hi,

We have a user who posted a lot of inline jpg.  The elog system converted those to png and thus cause the size of the elog to expand about ~4x of the original size.  It is caused the problem of entry size too large for email notifications.  Is there a way to turn off the conversion to png picture file?  May I know also know why it converts to png to store on the server?  Thank you very much.

Jacky

 

icon5.gif   How can I host elog in a web server, posted by Dawang on Thu Oct 8 06:36:34 2015 

How can I host elog in a web server. I need sample config file on [global] segment to show config on how it can be host. Please need your help. Thanks

    icon2.gif   Re: How can I host elog in a web server, posted by Andreas Luedeke on Thu Oct 8 11:27:55 2015 

I am honestly not sure if I understand the question. You can run ELOG behind an Apache Webserver. Look for example at https://midas.psi.ch/elog/adminguide.html#secure

Dawang wrote:

How can I host elog in a web server. I need sample config file on [global] segment to show config on how it can be host. Please need your help. Thanks

 

ELOG V3.1.5-3fb85fa6