Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Locked
User avatar
wizjos
Posts: 79
Joined: Monday 07 March 2016 19:35
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by wizjos »

Great new feature this ical calender add-on. However, I've noticed some strange behaviour as to the time of my appointments. They all are 2 hours off. Found it had to do with the dates being converted to utc. With an extra function to correct this, the dates and times of my appointments are correct now. 8-)
Strange however is that my appointments are not ordered from new to old, but randomly it seems... Anyone else noticed similar behaviour?

Regards,
Wizjos
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by madrian »

mvveelen wrote:
madrian wrote:
mvveelen wrote:Any users with an Apple calendar? Trying to get the calendar plugin to work, but nothing shows up.
Me. :) config.js is correctly configured? Google Calendar works?
I added the URL (webcal://p29-calendars.icloud.com/published/2/nhsdjfgdsfgdsjfhfy3ef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-RIreVpahV4zKT-fE_XyvWaKHmFSf4cTYEptui-tRa1buriW7k)

^^
the URL is just an example

But in the config.js I use buttons.calendar (the config_default.js isn't clear about what else to use) and nothing is showing up. I'm not using a Google calendar, but an Apple calendar.
Are you on beta branch? buttons.calendar is not for this module.

See my previous post from yesterday:

https://www.domoticz.com/forum/viewtopi ... 20#p131601
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by madrian »

wizjos wrote:Great new feature this ical calender add-on. However, I've noticed some strange behaviour as to the time of my appointments. They all
Regards,
Wizjos
Timezone problem, I am working on this, but first I am trying to implement support for repeating events.
User avatar
mvveelen
Posts: 687
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by mvveelen »

madrian wrote:
mvveelen wrote:
madrian wrote:
Me. :) config.js is correctly configured? Google Calendar works?
I added the URL (webcal://p29-calendars.icloud.com/published/2/nhsdjfgdsfgdsjfhfy3ef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-RIreVpahV4zKT-fE_XyvWaKHmFSf4cTYEptui-tRa1buriW7k)

^^
the URL is just an example

But in the config.js I use buttons.calendar (the config_default.js isn't clear about what else to use) and nothing is showing up. I'm not using a Google calendar, but an Apple calendar.
Are you on beta branch? buttons.calendar is not for this module.

See my previous post from yesterday:

https://www.domoticz.com/forum/viewtopi ... 20#p131601
Yes, I am. But what IS ?

What do I use to display the calendar?

Code: Select all

var _ICALENDAR_URL		= 'https://p9-calendars.icloud.com/published/2/nuh36ehsdfsdfsdf4TyqqnRy3ef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-sdfhkjdf-tRa1buriW7k'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
var _ICALENDAR_DATEFORMAT	= 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
var _ICALENDAR_LOCALE		= 'nl'; //en,hu, etc. 
Is altered, but I'm missing the piece to display the calendar :)
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by madrian »

Ahh, sorry:

Code: Select all

columns[3] = {}
columns[3]['blocks'] = ['icalendar']
columns[3]['width'] = 2; 
User avatar
wizjos
Posts: 79
Joined: Monday 07 March 2016 19:35
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by wizjos »

madrian wrote:
wizjos wrote:Great new feature this ical calender add-on. However, I've noticed some strange behaviour as to the time of my appointments. They all
Regards,
Wizjos
Timezone problem, I am working on this, but first I am trying to implement support for repeating events.
Ive added this function to ical_parser.js

Code: Select all

function ConvertUTCTimeToLocalTime(UTCDateString)
{
	var convertdLocalTime = new Date(UTCDateString);
	var hourOffset = convertdLocalTime.getTimezoneOffset() / 60;
	convertdLocalTime.setHours( convertdLocalTime.getHours() + hourOffset ); 
	return convertdLocalTime;
}
and in function makedate altered the line
var utcdatems = Date.UTC(dtutc.year, (dtutc.month-1), dtutc.day, dtutc.hour, dtutc.minute);
in

Code: Select all

var utcdatems = ConvertUTCTimeToLocalTime(Date.UTC(dtutc.year, (dtutc.month-1), dtutc.day, dtutc.hour, dtutc.minute));
Hope it helps...

Regards,
Wizjos
pvdhelm
Posts: 29
Joined: Tuesday 14 March 2017 17:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Skendel
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by pvdhelm »

font.png
font.png (91.11 KiB) Viewed 1807 times
where can i change the fontsize of the text 'er wordt momenteel niets afgespeeld" and "Grouped"

On my pc eveerything looks ok, but on my ipad pro the text is out of the box

greets patrick
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by madrian »

Excellent, thank you very much. :)

I did not experienced any problem with the timezone, I am in Budapest timezone UTC+1, in DST +2.

Items not in order, I tested, it's ok here:
Calendar_and_Dashticz.jpg
Calendar_and_Dashticz.jpg (37.47 KiB) Viewed 1807 times
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by SwordFish »

Great job the calendar plugin.
Is it possible to add two google calendars on Dashticz, one for my wife and one for me?
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by madrian »

SwordFish wrote:Great job the calendar plugin.
Is it possible to add two google calendars on Dashticz, one for my wife and one for me?
Not at this moment, but it's a great idea. Maybe if we ask @Rob nicely? :) He is better in these things.

I can imagine the following format:

Code: Select all

var _ICALENDAR_URL	  	= [
  							    {"calendar":1,"title":"Lisa's calendar","url":"http://calendar.google.com/basic.ics"},
  							    {"calendar":2,"title":"SwordFish's calendar","url":"webdav://adaospdaspdokaspdo.ics"},
  							  ];
If no title were given, do not display title (as now).

8-)
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by SwordFish »

madrian wrote:
SwordFish wrote:Great job the calendar plugin.
Is it possible to add two google calendars on Dashticz, one for my wife and one for me?
Not at this moment, but it's a great idea. Maybe if we ask @Rob nicely? :) He is better in these things.

I can imagine the following format:

Code: Select all

var _ICALENDAR_URL	  	= [
  							    {"calendar":1,"title":"Lisa's calendar","url":"http://calendar.google.com/basic.ics"},
  							    {"calendar":2,"title":"SwordFish's calendar","url":"webdav://adaospdaspdokaspdo.ics"},
  							  ];
If no title were given, do not display title (as now).

8-)
Yeah something like that.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by EdwinK »

mvveelen wrote:
madrian wrote:
mvveelen wrote:Any users with an Apple calendar? Trying to get the calendar plugin to work, but nothing shows up.
Me. :) config.js is correctly configured? Google Calendar works?
I added the URL (webcal://p29-calendars.icloud.com/published/2/nhsdjfgdsfgdsjfhfy3ef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-RIreVpahV4zKT-fE_XyvWaKHmFSf4cTYEptui-tRa1buriW7k)

^^
the URL is just an example

But in the config.js I use buttons.calendar (the config_default.js isn't clear about what else to use) and nothing is showing up. I'm not using a Google calendar, but an Apple calendar.
From a few posts back (Question of mine)
'Its a totally new module + you must install dashticz from beta branch, check new CONFIG_DEFAULT.js. buttons.calendar is not for this new module. :)

BTW this is how you clone beta branch into dashticz directory:

CODE: SELECT ALL
git clone https://github.com/robgeerts/dashticz_v2.git --branch beta dashticz


Or simple click here. https://github.com/robgeerts/dashticz_v ... e/beta.zip

Or go to the project page: https://github.com/robgeerts/dashticz_v2.git then click on 2 branches then select beta branch.
You need to run the beta version of this dashboard
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by poudenes »

Hi Guys,

Suddenly i got errors for the Moon...:

Error: EventSystem: in MOON 17.04.27: [string "-- Variables to customize -------------------..."]:136: attempt to concatenate global 'moonsetMinute' (a nil value)

It worked, didn't do anything about scripting of testing... it started .....
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
mvveelen
Posts: 687
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by mvveelen »

madrian wrote:Ahh, sorry:

Code: Select all

columns[3] = {}
columns[3]['blocks'] = ['icalendar']
columns[3]['width'] = 2; 
This did the trick, thanks !

I see that you guys are working on the 2 hours time difference, but now at least I can see the calendar.

Now, we have more than 1 calendar (private, work, kids). Would it be possible to merge them?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by tontze »

Im trying to get this as map on dashboard, but for some reason, it doesnt work .. It works if i paste it to browser, but not shown in dashboard ?

Code: Select all

https://gadgets.buienradar.nl/gadget/zoommap/?lat=61.49911&lng=23.78712&overname=2&zoom=8&naam=Tampere&size=2&voor=0"%20scrolling=no%20width=256%20height=256
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by SwordFish »

poudenes wrote:Hi Guys,

Suddenly i got errors for the Moon...:

Error: EventSystem: in MOON 17.04.27: [string "-- Variables to customize -------------------..."]:136: attempt to concatenate global 'moonsetMinute' (a nil value)

It worked, didn't do anything about scripting of testing... it started .....
I also still got an error and did nothing to the script since yesterday

Error: EventSystem: in Moon: [string "-- Variables to customize -------------------..."]:65: attempt to concatenate global 'moonsetMinute' (a nil value)
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by EdwinK »

SwordFish wrote:
poudenes wrote:Hi Guys,

Suddenly i got errors for the Moon...:

Error: EventSystem: in MOON 17.04.27: [string "-- Variables to customize -------------------..."]:136: attempt to concatenate global 'moonsetMinute' (a nil value)

It worked, didn't do anything about scripting of testing... it started .....
I also still got an error and did nothing to the script since yesterday

Error: EventSystem: in Moon: [string "-- Variables to customize -------------------..."]:65: attempt to concatenate global 'moonsetMinute' (a nil value)
Add me too it. Also Rain script is throwing this to me.

Code: Select all

2017-04-29 18:35:00.223 Error: EventSystem: in Regen Verwacht: [string "local RainTextIDX = 113 -- your domoticz te..."]:13: attempt to index global 'file' (a nil value)
2017-04-29 18:35:00.495 Error: EventSystem: in Moon: [string "-- Variables to customize..."]:54: attempt to index global 'file' (a nil value)
2017-04-29 18:35:37.130 Error: Logitech Media Server: No response from server 192.168.0.10:9000
2017-04-29 18:36:00.272 Error: EventSystem: in Regen Verwacht: [string "local RainTextIDX = 113 -- your domoticz te..."]:13: attempt to index global 'file' (a nil value)
2017-04-29 18:36:00.517 Error: EventSystem: in Moon: [string "-- Variables to customize..."]:54: attempt to index global 'file' (a nil value)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
mvveelen
Posts: 687
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by mvveelen »

SwordFish wrote:
poudenes wrote:Hi Guys,

Suddenly i got errors for the Moon...:

Error: EventSystem: in MOON 17.04.27: [string "-- Variables to customize -------------------..."]:136: attempt to concatenate global 'moonsetMinute' (a nil value)

It worked, didn't do anything about scripting of testing... it started .....
I also still got an error and did nothing to the script since yesterday

Error: EventSystem: in Moon: [string "-- Variables to customize -------------------..."]:65: attempt to concatenate global 'moonsetMinute' (a nil value)
Same here....

Could it be that Wunderground isn't sending the "moon set" at the moment?

See:
Spoiler: show

Code: Select all


{
  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
  "features": {
  "astronomy": 1
  }
	}
		,	"moon_phase": {
		"percentIlluminated":"15",
		"ageOfMoon":"4",
		"phaseofMoon":"Waxing Crescent",
		"hemisphere":"North",
		"current_time": {
		"hour":"18",
		"minute":"42"
		},
		"sunrise": {
		"hour":"6",
		"minute":"11"
		},
		"sunset": {
		"hour":"21",
		"minute":"03"
		},
		"moonrise": {
		"hour":"8",
		"minute":"40"
		},
		"moonset": {
		"hour":"",
		"minute":""
		}
	},
	"sun_phase": {
		"sunrise": {
		"hour":"6",
		"minute":"11"
		},
		"sunset": {
		"hour":"21",
		"minute":"03"
		}
	}
}
And, when I use the newsfeed, I get all feeds in 1 block. Sometime just 1 news item, but most of the time all items on 1 page.

I'm using this code:

Code: Select all

blocks['news_1'] = {} // NU.NL
blocks['news_1']['feed'] = 'https://crossorigin.me/http://www.telegraaf.nl/rss';

blocks['news_2'] = {} // TWEAKERS
blocks['news_2']['feed'] = 'https://crossorigin.me/http://feeds.feedburner.com/tweakers/nieuws';


columns[4] = {}
columns[4]['blocks'] = ['news_1','news_2']
columns[4]['width'] = 5; 
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by madrian »

This did the trick, thanks !

I see that you guys are working on the 2 hours time difference, but now at least I can see the calendar.

Now, we have more than 1 calendar (private, work, kids). Would it be possible to merge them?
1, work released, waiting for Rob to merge request.
2, this is a thing what Rob can do quickly, because only he has the super power.
koowee
Posts: 62
Joined: Thursday 29 December 2016 18:17
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Finland
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by koowee »

How this "turn off last update date per device" works? There are these two settings in CONFIG.js, "_SHOW_LASTUPDATE" and"_LASTUPDATE_FORMAT", but what should I add per device to turn off this last update per device? Maybe add something like this: blocks[idx]['lastupdate'] = 'OFF'; or have I understood this totally wrong :)
Locked

Who is online

Users browsing this forum: No registered users and 1 guest