En cours

Oil Log Analysis - 21/03/2017 08:48 EDT

We have a sensor that is monitoring usage of oil from a tank. Once every 10 seconds, we are told by this sensor whether oil is being consumed, or not being consumed. This is binary, and is actually the current voltage on a particular wire. When field5 in the attached goes minus, oil is being consumed. When field5 is not negative; oil is not being consumed.

We want to be able to do this:

Example1:

$ php ./[url removed, login to view] /* defaults to yesterday, and /var/log/httpd/access_log */

11/04/2017 usage [url removed, login to view] liters, [url removed, login to view] hours, [url removed, login to view] euro

Example2:

$ php ./[url removed, login to view] -day yesterday -file /var/log/httpd/access_log /* same as example one but no defaults */

11/04/2017 usage [url removed, login to view] liters, [url removed, login to view] hours, [url removed, login to view] euro

Example3:

$ php ./[url removed, login to view] -day today -file /var/log/httpd/access_log

12/04/2017 usage [url removed, login to view] liters, [url removed, login to view] hours, [url removed, login to view] euro

Example4:

$ php ./[url removed, login to view] -from "11:04:2017" -to "13:04:2017" -file /var/log/httpd/access_log

11/04/2017 usage [url removed, login to view] liters, [url removed, login to view] hours, [url removed, login to view] euro

12/04/2017 usage [url removed, login to view] liters, [url removed, login to view] hours, [url removed, login to view] euro

13/04/2017 usage [url removed, login to view] liters, [url removed, login to view] hours, [url removed, login to view] euro

total: [url removed, login to view] liters, [url removed, login to view] hours, [url removed, login to view] euro

Eg in the access_log_example, oil burning started at 12/Mar/2017:15:37:17 and ended at 12/Mar/2017:15:50:27, so the usage would be 13 minutes and 10 seconds or [url removed, login to view] minutes or [url removed, login to view] hours.

Settings in /etc/[url removed, login to view]:

- Oil consumed per hour: 2.2 liters /* when the usage is "on" this is the amount of oil consumed per hour

- Oil cost per liter: 69c /* this is the cost to purchase oil.

- Currency: euro /* this is the currency for display purposes */

Note that it must take count of the following:

- That the oil can be switched on and off many times on an individual day

- That for the day in question; oil is already "on" at midight on the start of that day.

- That for the day in question; oil remains "on" at midight at the end of that day.

Compétences : PHP, Architecture Logicielle

Voir plus : what to start with of i want to write a novel, suggested log for company name c tech, i want to design a log in corel draw titled bended knee nd i want a sample of it, design and analysis of algorithms programs in c, want to start a small business want a consultant, python analysis log, analysis log file, cfd analysis phase oil gas separator, start stress analysis solidworks, make digital countdown timer start log vb, asterisk analysis log, create log file javascript start button, access purchase request log, program log start cue tones, asterisk log analysis frequently called number

N° du projet : #13473327

Décerné à :

150 € EUR en 3 jours
(7 Commentaires)
4.4

4 freelance ont fait une offre moyenne de 143 € pour ce travail

graphicaa

I am analysing & preparing reply to you & will send details with in 10 minutes ---------------------- Greetings, This is GOPAL for STALLIONi, Let me assist in this. Best results & optimum cost guaranteed here. Plus

263 € EUR en 30 jours
(466 Commentaires)
8.5
77 € EUR en 3 jours
(24 Commentaires)
5.2
akrontechnohub

Hi There! I read your requirement,you are Looking for web development . We have good professional development team with 5+ years experience for WordPress Development. I hope we are perfect for your requirement Plus

80 € EUR en 3 jours
(2 Commentaires)
2.7