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,
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: 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
I have updated the source code to work with the latest version v4.9700

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

Regards
elgarne
Posts: 36
Joined: Monday 26 May 2014 14:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post by elgarne »

I checked two days ago and thought you forgot about it. Merci beaucoup.
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 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: 36
Joined: Monday 26 May 2014 14:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post by elgarne »

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: 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, I've updated the code on Github to see Odd&Even week numbers
oddandeven.PNG
oddandeven.PNG (31.23 KiB) Viewed 2126 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: 36
Joined: Monday 26 May 2014 14:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weekly programming

Post by elgarne »

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: 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 »

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: 117
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

Re: Weekly programming

Post by Patricen »

Hello,

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

Patrice
garethhowell
Posts: 115
Joined: Tuesday 17 November 2015 21:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9317
Location: St Neots, UK
Contact:

Re: Weekly programming

Post by garethhowell »

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: 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 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: 115
Joined: Tuesday 17 November 2015 21:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9317
Location: St Neots, UK
Contact:

Re: Weekly programming

Post by garethhowell »

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: 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 »

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: 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 »

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: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Weekly programming

Post by Nautilus »

Great job, this seems like a great feature for Domoticz. Why it is not merged with the master branch?
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 »

I have already asked to gizmocuz...
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Weekly programming

Post by Nautilus »

syrhus wrote: Thursday 13 December 2018 8: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: 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 »

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: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Weekly programming

Post by Nautilus »

syrhus wrote: Thursday 13 December 2018 9: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 :)
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 »

I understand easily that Gizmocuz has a lot of requests and a lot of stuff to manage this beautiful product that Domoticz is.
I will try one day to make a pull request, may be it will be approved ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest