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.

Moderators: leecollings, remb0

syrhus
Posts: 79
Joined: Tuesday 12 December 2017 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris
Contact:

Re: Weekly programming

Post 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?
opentoideas
Posts: 14
Joined: Friday 02 March 2018 16:31
Target OS: Windows
Domoticz version: 3.8153
Location: Bristol UK
Contact:

Re: Weekly programming

Post 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
syrhus
Posts: 79
Joined: Tuesday 12 December 2017 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris
Contact:

Re: Weekly programming

Post 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
grecof973
Posts: 24
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post 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
syrhus
Posts: 79
Joined: Tuesday 12 December 2017 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris
Contact:

Re: Weekly programming

Post 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
grecof973
Posts: 24
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post 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
grecof973
Posts: 24
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post by grecof973 »

I made the changes but in the end I get a slightly strange page
screen.jpg
screen.jpg (103.87 KiB) Viewed 3274 times
Patricen
Posts: 108
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

Re: Weekly programming

Post by Patricen »

Looks like your cache hasn't been cleared.
Did you try with another internet browser?
Patricen
Posts: 108
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

Re: Weekly programming

Post 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?
syrhus
Posts: 79
Joined: Tuesday 12 December 2017 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris
Contact:

Re: Weekly programming

Post 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 ;)
grecof973
Posts: 24
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post 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 .......
hpadmin
Posts: 6
Joined: Tuesday 27 February 2018 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post 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 :)
bigpea
Posts: 91
Joined: Thursday 11 August 2016 12:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: IT
Contact:

Re: Weekly programming

Post 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. ;)
hpadmin
Posts: 6
Joined: Tuesday 27 February 2018 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post 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. ;)
hpadmin
Posts: 6
Joined: Tuesday 27 February 2018 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post 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:
bigpea
Posts: 91
Joined: Thursday 11 August 2016 12:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: IT
Contact:

Re: Weekly programming

Post 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. ;)
elgarne
Posts: 36
Joined: Monday 26 May 2014 14:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post 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.
elgarne
Posts: 36
Joined: Monday 26 May 2014 14:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post by elgarne »

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 »

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
elgarne
Posts: 36
Joined: Monday 26 May 2014 14:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post by elgarne »

Unfortunately, I don't think so. I'm under 4.9701 and those functions do not exist.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest