Page 4 of 7

Re: Weekly programming

Posted: Saturday 03 March 2018 12:53
by syrhus
Hi opentoideas

Your script seems to be right. Did you download the planning.js file under your js folder?
Have you tried to change the html.cachemanifest file to upgrade to number to force the application cache to refresh (not the same cache of web browser).
Could you try to open the developpement tool (F12 or Ctrl + Alt + i) and go to the console tab to check a javascript error and check javascript files used?

Re: Weekly programming

Posted: Saturday 03 March 2018 13:50
by opentoideas
syrhus wrote: Saturday 03 March 2018 12:53 Hi opentoideas

Your script seems to be right. Did you download the planning.js file under your js folder?
Hi syrrhus,
thank you for taking the time to check these. yes I have added planning.js to the js folder and planning.css to the css folder
syrhus wrote: Saturday 03 March 2018 12:53 Have you tried to change the html.cachemanifest file to upgrade to number to force the application cache to refresh (not the same cache of web browser).
lol and there is the something stupid. thank you that seems to have done it. now i see what the increase number meant :oops:
syrhus wrote: Saturday 03 March 2018 12:53 Could you try to open the developpement tool (F12 or Ctrl + Alt + i) and go to the console tab to check a javascript error and check javascript files used?


glad it was fixed above as the f12 opened something but i cant tell what version of java :oops:

thank you so much for your help with this. will see how i get on now :D

Re: Weekly programming

Posted: Saturday 03 March 2018 16:30
by syrhus
Good news!
This is not easy to know to refresh the application cache on a web browser. Even a Ctrl + F5 doesn't refresh app-cache.
On Chrome, you can erase it with internal url : chrome://appcache-internals/
You will see all AppCache and you just have to delete the domoticz one (your IP+port) to force to reload next time.

Have a nice week-end

Re: Weekly programming

Posted: Saturday 31 March 2018 21:28
by grecof973
Hello!!
I would like to try using this Plug In, but I need help, I followed the procedure written here:
https://gist.github.com/syrhus/8fbb01fb ... be210993c8

but it does not go anyway, even if there are unclear points for me !! Especially when he tells me

add the path to planning javascript file ", '.. / js / planning'"
define (['app', '.. / js / planning'], function (app) {


where should you add ???
Someone can tell me how to do ???
Thanks 1000

Re: Weekly programming

Posted: Saturday 31 March 2018 21:56
by syrhus
Hi grecof973

As I tried to explain, you have to edit domoticz/www/app/UtilityController.js file to change to first line with :

Code: Select all

define(['app','../js/planning'], function (app) {
Did you edit this file? Have you been able to see the first line?

Regards

Re: Weekly programming

Posted: Saturday 31 March 2018 21:59
by grecof973
YES are able to see the first line .....

so if I understand correctly I have to change what is written with your ?? Quite right

Re: Weekly programming

Posted: Sunday 01 April 2018 10:18
by grecof973
I made the changes but in the end I get a slightly strange page
screen.jpg
screen.jpg (103.87 KiB) Viewed 3429 times

Re: Weekly programming

Posted: Sunday 01 April 2018 10:32
by Patricen
Looks like your cache hasn't been cleared.
Did you try with another internet browser?

Re: Weekly programming

Posted: Sunday 01 April 2018 10:36
by Patricen
Hello,

I'm using the beta release canal for domoticz and from time to time, the last installed version updates the modified files. It is then a hassle re-updating the files. Any idea to find a trick avoiding this?

Re: Weekly programming

Posted: Sunday 01 April 2018 12:17
by syrhus
Hi grecof973
Did you add the planning.css file under the css folder?
Else, as it has already been written, increase the number in the html5.appcache file to force the web navigator the refresh the cache.

Code: Select all

CACHE MANIFEST

# ref INCREASE_THIS_NUMBER
Hope this would help you.
Happy easter ;)

Re: Weekly programming

Posted: Sunday 01 April 2018 17:26
by grecof973
Hello!!
Maybe I've ripped .... It was a problem that I had not updated the CSS files

Now, however, the temperature settings are still missing and still seems not to go .... After I check


For the Browser Cache problem, sometimes you can ovate by opening a New Window in disguise .......

Re: Weekly programming

Posted: Wednesday 04 April 2018 13:46
by hpadmin
Hi Bigpea,
do you finished the dashboard ? .... i want it :-) thx
bigpea wrote: Tuesday 27 February 2018 14:06
hpadmin wrote: Tuesday 27 February 2018 13:50 Wow, wonderful dashboard. Now i have Monitor Le TUTO, bur your dash is better. Do you have code ... or download ...its public ? Thx
Thanks, I'm finishing the dashbord, as soon I will finish I will public the code :)

Re: Weekly programming

Posted: Thursday 05 April 2018 17:30
by bigpea
unfortunately I am very busy at the moment .. :roll:
in any case, the code can be shared, for sure you will have to make many changes to the code because it is not yet ready to be released to other people (some comments are still in Italian for example, and some functions specific to my devices), but if you want I can share what I did. ;)

Re: Weekly programming

Posted: Sunday 08 April 2018 14:09
by hpadmin
yes, yes ... i want it, only for my personal use
bigpea wrote: Thursday 05 April 2018 17:30 unfortunately I am very busy at the moment .. :roll:
in any case, the code can be shared, for sure you will have to make many changes to the code because it is not yet ready to be released to other people (some comments are still in Italian for example, and some functions specific to my devices), but if you want I can share what I did. ;)

Re: Weekly programming

Posted: Thursday 12 April 2018 6:45
by hpadmin
HI, please, do you send email .... [email protected] ... italian language :-) ... i have google translator :lol:
bigpea wrote: Monday 09 April 2018 9:24 Ok, this is the link for the download:
[sorry but the link was considered a virus. do you know a file transfer site? it's about 1mb.]

The file is too large as attachment.

As told, sorry for the comments in italian language and for other inaccuracies. :roll:

Re: Weekly programming

Posted: Thursday 12 April 2018 9:36
by bigpea
hpadmin wrote: Thursday 12 April 2018 6:45 HI, please, do you send email .... [email protected] ... italian language :-) ... i have google translator :lol:

ahahahah, I love google translate! file sent. ;)

Re: Weekly programming

Posted: Tuesday 15 May 2018 15:52
by elgarne
Hi,

I'm trying to implement that and I'm stuck with the files to edit. I cannot find where to add the call to the functions in both UtilityController.js and LightsController.js. There is no RefreshSetpointTimerTable, ShowSetpointTimers, RefreshTimerTable, nor ShowTimers.
I'm under V3.9390.

Thanks.

Re: Weekly programming

Posted: Tuesday 15 May 2018 22:51
by elgarne
That was the beta branch. The master branch does contain the right functions.
Thanks.

Re: Weekly programming

Posted: Wednesday 18 July 2018 22:23
by olicot
Hello,
I've updated to latest stable version 4.9700, and to latest beta 4.9788.
How editing domoticz/www/app/UtilityController.js and domoticz/www/app/LightsController.js ?
I don't find "RefreshSetpointTimerTable function" in UtilityController.js, neither RefreshTimerTable or ShowTimers in LightsController.js files

Is "weekly programming" still compatible with latest buid?

Thanks for your help
Olivier

Re: Weekly programming

Posted: Friday 03 August 2018 11:09
by elgarne
Unfortunately, I don't think so. I'm under 4.9701 and those functions do not exist.