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

Re: Weekly programming

Post by elgarne » Friday 03 August 2018 11:09

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

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

Re: Weekly programming

Post by syrhus » Friday 03 August 2018 11:15

Hi,
I didn't work on my domoticz for a while.
I will try to upgrade to the latest version and modify this tool on septembre.

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

Re: Weekly programming

Post by syrhus » Wednesday 19 September 2018 9:49

Hi
I have updated the source code to work with the latest version v4.9700

https://gist.github.com/syrhus/8fbb01fb ... be210993c8

Regards

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

Re: Weekly programming

Post by elgarne » Thursday 20 September 2018 13:59

I checked two days ago and thought you forgot about it. Merci beaucoup.

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

Re: Weekly programming

Post by syrhus » Thursday 20 September 2018 14:11

Hi elgarne

You're welcome and thank you for the french reply (are your french?) ;)
I'm working on a new functionality, showing 2 weeks (odd & even) because some people suggest that as they are living with 2 different kind of weeks,1 with child and the other without.

Regards

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

Re: Weekly programming

Post by elgarne » Thursday 20 September 2018 14:59

I'm absolument french and living in Paris (area) ;)
And I'm exactly in the same situation as people asking for odd and even weeks.
I needed to empty the browser cache to have it working.

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

Re: Weekly programming

Post by syrhus » Thursday 20 September 2018 15:42

Good news, I've updated the code on Github to see Odd&Even week numbers
oddandeven.PNG
oddandeven.PNG (31.23 KiB) Viewed 455 times
planning.css and planning.js file have changed.

Remove the application cache of the web navigator.

Let me know if it is working fine with this new version on 2 weeks (and if it is still working on 1 week)

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

Re: Weekly programming

Post by elgarne » Thursday 20 September 2018 15:46

Seems working fine. Could not find how to empty cache on Safari (the menu command does not seem to work) but using the private mode works fine.

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

Re: Weekly programming

Post by syrhus » Thursday 20 September 2018 16:00

Great!

You can force to reload all cached files by changing the ref in the html5.appcache file on the www folder

Code: Select all

CACHE MANIFEST

# ref 2

CACHE:
...

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

Re: Weekly programming

Post by Patricen » Thursday 20 September 2018 21:55

Hello,

This feature is really great!
What about requesting that it enters in the mainstream of Domoticz source code?

Patrice

garethhowell
Posts: 145
Joined: Tuesday 17 November 2015 22:19
Target OS: Raspberry Pi
Domoticz version: 3.9317
Location: St Neots, UK
Contact:

Re: Weekly programming

Post by garethhowell » Wednesday 10 October 2018 18:43

I'm obviously not getting something here.

I'm running 4.9700. I've downloaded the latest from github, copied the files to the necessary places and updated html5.appcache to force the browser cache to update. However, I see no change in the UI. I just see the original timer screen. I even tried restarting the domoticz service.

I see no errors in the console, but I also don't see the new js file.

One thing, despite having added new css and js files, there is no instruction to add them to the appcache. I take it this means they don't get cached.

Gareth

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

Re: Weekly programming

Post by syrhus » Monday 29 October 2018 16:42

Hi gareth

This is really not easy to clear the application cache. Are you using Chrome?
About the application cache, keep it mind this is a absolutely useless! Application cache is used for offline application; how Domoticz could work offline? You see a screen with wrong state and wrong values!
So, the manifest should be adjust to cache only the web page for the offline alert. That's all.

About your concern, have you tried to open your web site in private mode? Is it working fine?

Regards

garethhowell
Posts: 145
Joined: Tuesday 17 November 2015 22:19
Target OS: Raspberry Pi
Domoticz version: 3.9317
Location: St Neots, UK
Contact:

Re: Weekly programming

Post by garethhowell » Tuesday 30 October 2018 9:22

Thanks for coming back to me.

I’d been having a number of UI display-related issues that affected the display of devices: not just this module.

Eventually, I did a clean install of Domoticz and those problems went away. I’ve not got around to trying this module again, but I will soon.

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

Re: Weekly programming

Post by syrhus » Tuesday 30 October 2018 15:40

Oups!!!
I'm sorry, I thought i fixed a bug on table header and I left a bug on it.

So, pleae, download the new fixed planning.js file from github
https://gist.github.com/syrhus/8fbb01fb ... be210993c8

Apologized for this.
Regards

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

Re: Weekly programming

Post by syrhus » Wednesday 12 December 2018 12:23

New update!
I edited the first post with new screen capture

- you can choose time range : 1h, 30mins, 15mins, 10mins
- deactivate the entire "program" (stand by mode) and activate it later
- program on 2 weeks with the odd&even mode

Source on github https://gist.github.com/syrhus/8fbb01fb ... be210993c8

Nautilus
Posts: 792
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Weekly programming

Post by Nautilus » Wednesday 12 December 2018 23:09

Great job, this seems like a great feature for Domoticz. Why it is not merged with the master branch?

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

Re: Weekly programming

Post by syrhus » Thursday 13 December 2018 9:49

I have already asked to gizmocuz...

Nautilus
Posts: 792
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Weekly programming

Post by Nautilus » Thursday 13 December 2018 10:08

syrhus wrote:
Thursday 13 December 2018 9:49
I have already asked to gizmocuz...
Ok, and the answer was "no"? Any specific reason for this? Might be one option to just make a pull request (unless that is what you already did of course :))...

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

Re: Weekly programming

Post by syrhus » Thursday 13 December 2018 10:25

No answer.
When I made a pull request about another subject like remove the useless and ugly manifest application cache, he suggested to discuss first, what I did with a post on the forum before adding this pull request...
I don't want to bore him and I don't want to waste my time to send again and again some email or create a pull request to be rejected like the applicationcache.

Nautilus
Posts: 792
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Weekly programming

Post by Nautilus » Thursday 13 December 2018 12:57

syrhus wrote:
Thursday 13 December 2018 10:25
No answer.
When I made a pull request about another subject like remove the useless and ugly manifest application cache, he suggested to discuss first, what I did with a post on the forum before adding this pull request...
I don't want to bore him and I don't want to waste my time to send again and again some email or create a pull request to be rejected like the applicationcache.
Ok, I don't know any details about appcache except that indeed it has been flagged as deprecated for quite a while already. On the other hand there's people saying it's needed to speed things up and e.g. adding to home screen on iOS devices. How (un)important it is in practice, I cannot comment.

I guess Gizmocuz meant that if there is such a file in place, it might make sense to discuss its purpose first before making a pull request that basically clears the whole file.

There are dozens of pull requests merged each month, quite many without any specific discussion, so I'm hoping you would reconsider and give this feature a chance to be merged into master branch :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest