Weekly programming

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
syrhus
Posts: 35
Joined: Tuesday 12 December 2017 15:10
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Paris
Contact:

Re: Weekly programming

Post by syrhus » Saturday 03 March 2018 13:53

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?

opentoideas
Posts: 14
Joined: Friday 02 March 2018 17:31
Target OS: Windows
Domoticz version: 3.8153
Location: Bristol UK
Contact:

Re: Weekly programming

Post by opentoideas » Saturday 03 March 2018 14:50

syrhus wrote:
Saturday 03 March 2018 13: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 13: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 13: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

syrhus
Posts: 35
Joined: Tuesday 12 December 2017 15:10
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Paris
Contact:

Re: Weekly programming

Post by syrhus » Saturday 03 March 2018 17:30

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

grecof973
Posts: 7
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by grecof973 » Saturday 31 March 2018 21:28

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

syrhus
Posts: 35
Joined: Tuesday 12 December 2017 15:10
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Paris
Contact:

Re: Weekly programming

Post by syrhus » Saturday 31 March 2018 21:56

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

grecof973
Posts: 7
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by grecof973 » Saturday 31 March 2018 21:59

YES are able to see the first line .....

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

grecof973
Posts: 7
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by grecof973 » Sunday 01 April 2018 10:18

I made the changes but in the end I get a slightly strange page
screen.jpg
screen.jpg (103.87 KiB) Viewed 1520 times

Patricen
Posts: 20
Joined: Tuesday 06 February 2018 19:48
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by Patricen » Sunday 01 April 2018 10:32

Looks like your cache hasn't been cleared.
Did you try with another internet browser?

Patricen
Posts: 20
Joined: Tuesday 06 February 2018 19:48
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by Patricen » Sunday 01 April 2018 10:36

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?

syrhus
Posts: 35
Joined: Tuesday 12 December 2017 15:10
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Paris
Contact:

Re: Weekly programming

Post by syrhus » Sunday 01 April 2018 12:17

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 ;)

grecof973
Posts: 7
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by grecof973 » Sunday 01 April 2018 17:26

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 .......

hpadmin
Posts: 4
Joined: Tuesday 27 February 2018 14:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by hpadmin » Wednesday 04 April 2018 13:46

Hi Bigpea,
do you finished the dashboard ? .... i want it :-) thx
bigpea wrote:
Tuesday 27 February 2018 15:06
hpadmin wrote:
Tuesday 27 February 2018 14: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 :)

bigpea
Posts: 121
Joined: Thursday 11 August 2016 12:30
Target OS: Raspberry Pi
Domoticz version:
Location: IT
Contact:

Re: Weekly programming

Post by bigpea » 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. ;)

hpadmin
Posts: 4
Joined: Tuesday 27 February 2018 14:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by hpadmin » Sunday 08 April 2018 14:09

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. ;)

bigpea
Posts: 121
Joined: Thursday 11 August 2016 12:30
Target OS: Raspberry Pi
Domoticz version:
Location: IT
Contact:

Re: Weekly programming

Post by bigpea » 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:

hpadmin
Posts: 4
Joined: Tuesday 27 February 2018 14:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by hpadmin » Thursday 12 April 2018 6:45

HI, please, do you send email .... varnsdorf@seznam.cz ... 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:

bigpea
Posts: 121
Joined: Thursday 11 August 2016 12:30
Target OS: Raspberry Pi
Domoticz version:
Location: IT
Contact:

Re: Weekly programming

Post by bigpea » Thursday 12 April 2018 9:36

hpadmin wrote:
Thursday 12 April 2018 6:45
HI, please, do you send email .... varnsdorf@seznam.cz ... italian language :-) ... i have google translator :lol:

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

elgarne
Posts: 51
Joined: Monday 26 May 2014 14:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by elgarne » Tuesday 15 May 2018 15:52

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.

elgarne
Posts: 51
Joined: Monday 26 May 2014 14:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Weekly programming

Post by elgarne » Tuesday 15 May 2018 22:51

That was the beta branch. The master branch does contain the right functions.
Thanks.

olicot
Posts: 6
Joined: Thursday 04 May 2017 13:02
Target OS: Linux
Domoticz version: V4.9788
Contact:

Re: Weekly programming

Post by olicot » Wednesday 18 July 2018 22:23

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

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests