rdmenezes / measureit

Automatically exported from code.google.com/p/measureit
0 stars 0 forks source link

New version enhancement suggestion - allow Setup to change the Hrs jump on graphs. #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
New version enhancement suggestion.

The current Blue Arrow jump forward >> / << backward is fixed at 2 hours.
Is it feasible to allow the Setup Tab control to change this setting to a 
different value (eg: 6 hrs).

What version of the product are you using? On what operating system?
Ver 115 on Rasp Pi

Please provide any additional information below.

Original issue reported on code.google.com by jdg22...@gmail.com on 15 Oct 2013 at 11:44

GoogleCodeExporter commented 9 years ago
There a some things I had to do better with the display options to configure 
them as each want to have them.

Because of this I will not include this currently. 

If I have the time to make a plan how to build this better in all graphs there 
will be some display admin settings. A lot of users have some interesting 
ideas. 

If you want to change it for yourself you can edit the measureit.js

Search for the function date_switch_generate. Should be in about line 950.

Change the 2 in the two parts into a value you want. But remember that a higher 
value does need more time to display because of in this function all values 
from the last x hours will be used and that are a lot if you use more hours ;)

current:
query.unit_value = query.table == 'measure_watt_daily' ? 
parseFloat(query.unit_value) -12 : parseFloat(query.unit_value) -2;
query.unit_value = query.table == 'measure_watt_daily' ? 
parseFloat(query.unit_value) +12 : parseFloat(query.unit_value) +2;

after changing:
query.unit_value = query.table == 'measure_watt_daily' ? 
parseFloat(query.unit_value) -12 : parseFloat(query.unit_value) -6;
query.unit_value = query.table == 'measure_watt_daily' ? 
parseFloat(query.unit_value) +12 : parseFloat(query.unit_value) +6;

Original comment by lalelu...@gmail.com on 20 Oct 2013 at 1:39

GoogleCodeExporter commented 9 years ago
Thanks for the detailed response.

Original comment by jdg22...@gmail.com on 21 Oct 2013 at 7:02

GoogleCodeExporter commented 9 years ago
Hi, just got back home from holiday, tried the fix and it works fine.
Note: had to clear the browser (firefox) cache to pickup the new
measureit.js - thanks again.

Original comment by jdg22...@gmail.com on 27 Oct 2013 at 4:38

GoogleCodeExporter commented 9 years ago

Original comment by lalelu...@gmail.com on 9 Nov 2013 at 1:46