Weekly programming
Moderators: leecollings, remb0
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
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.
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.
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
Hi
I have updated the source code to work with the latest version v4.9700
https://gist.github.com/syrhus/8fbb01fb ... be210993c8
Regards
I have updated the source code to work with the latest version v4.9700
https://gist.github.com/syrhus/8fbb01fb ... be210993c8
Regards
-
- Posts: 36
- Joined: Monday 26 May 2014 14:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Weekly programming
I checked two days ago and thought you forgot about it. Merci beaucoup.
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
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
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
-
- Posts: 36
- Joined: Monday 26 May 2014 14:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Weekly programming
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.

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.
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
Good news, I've updated the code on Github to see Odd&Even week numbers
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)
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)
-
- Posts: 36
- Joined: Monday 26 May 2014 14:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Weekly programming
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.
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
Great!
You can force to reload all cached files by changing the ref in the html5.appcache file on the www folder
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:
...
-
- Posts: 117
- Joined: Tuesday 06 February 2018 18:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta rel
- Contact:
Re: Weekly programming
Hello,
This feature is really great!
What about requesting that it enters in the mainstream of Domoticz source code?
Patrice
This feature is really great!
What about requesting that it enters in the mainstream of Domoticz source code?
Patrice
-
- 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
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
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
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
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
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
-
- 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
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.
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.
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
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
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
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
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
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
-
- Posts: 722
- Joined: Friday 02 October 2015 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Finland
- Contact:
Re: Weekly programming
Great job, this seems like a great feature for Domoticz. Why it is not merged with the master branch?
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
I have already asked to gizmocuz...
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
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.
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.
-
- Posts: 722
- Joined: Friday 02 October 2015 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Finland
- Contact:
Re: Weekly programming
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.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.
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

-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Weekly programming
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
I will try one day to make a pull request, may be it will be approved

Who is online
Users browsing this forum: No registered users and 1 guest