Code: Select all
blocks[21]['hide_lastupdate'] = true;
Moderators: leecollings, htilburgs, robgeerts
Code: Select all
blocks[21]['hide_lastupdate'] = true;
Thanks!b00n wrote:Use it like this:Code: Select all
blocks[21]['hide_lastupdate'] = true;
Ierlandfan wrote:Moonproblem troubleshooting:
First: Check the actual data
sudo curl http://api.wunderground.com/api/api-key ... -city.json
Example (without api-key)
sudo curl http://api.wunderground.com/api/api-key ... erdam.json
And see whetther the phrase that gives you a "nill" (empty as in doesn't exist) value is present.
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":"20",
"minute":"45"
},
"sunrise": {
"hour":"6",
"minute":"16"
},
"sunset": {
"hour":"21",
"minute":"03"
},
"moonrise": {
"hour":"8",
"minute":"45"
},
"moonset": {
"hour":"",
"minute":""
}
},
"sun_phase": {
"sunrise": {
"hour":"6",
"minute":"16"
},
"sunset": {
"hour":"21",
"minute":"03"
}
}
}
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)
Code: Select all
local idxmoonage ='131'
Code: Select all
2017-04-29 18:35:00.495 Error: EventSystem: in Moon: [string "-- Variables to customize..."]:54: attempt to index global 'file' (a nil value)
Code: Select all
2017-04-29 18:35:37.130 Error: Logitech Media Server: No response from server 192.168.0.10:9000
Ierlandfan wrote:@Edko66
[ice isn't started
It's probably something that's eassy to look over (Happens to me every so often when changing a value too fast)
But, not all data: the "moonset" is empty. And I think THAT is causing the problem that all other values aren't written. So, maybe the script should have a 'failsafe': when data is missing, keep reading until the next value and write that value in the corresponding place, etc.EdKo66 wrote:Ierlandfan wrote:Moonproblem troubleshooting:
First: Check the actual data
sudo curl http://api.wunderground.com/api/api-key ... -city.json
Example (without api-key)
sudo curl http://api.wunderground.com/api/api-key ... erdam.json
And see whetther the phrase that gives you a "nill" (empty as in doesn't exist) value is present.
This is the output for my location
So, there is some data to be writtenCode: 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":"20", "minute":"45" }, "sunrise": { "hour":"6", "minute":"16" }, "sunset": { "hour":"21", "minute":"03" }, "moonrise": { "hour":"8", "minute":"45" }, "moonset": { "hour":"", "minute":"" } }, "sun_phase": { "sunrise": { "hour":"6", "minute":"16" }, "sunset": { "hour":"21", "minute":"03" } } }
Thanks, added them to latest beta!SuperMouse wrote: https://drive.google.com/file/d/0B3pz_b ... c4bVE/view
Use them on a starry background and there you go !
In latest beta, you should see the value!htilburgs wrote: For my iPhone location, it will show ON instead of the location.
Can you look into this? User @poudenes has the same problem.
Time fix is merged, try latest beta!madrian wrote:1, work released, waiting for Rob to merge request.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?
2, this is a thing what Rob can do quickly, because only he has the super power.
Fixed in latest beta:madrian wrote:1, work released, waiting for Rob to merge request.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?
2, this is a thing what Rob can do quickly, because only he has the super power.
Code: Select all
var calendars = {}
calendars.business = { title: 'Zakelijk', icalurl: 'http://callurl1' }
calendars.private = { title: 'Privé', icalurl: 'http://callurl2' }
Code: Select all
columns[1]['blocks'] = [calendars.business,calendars.private]
It's working, but:robgeerts wrote:Yeah, but please test....
Code: Select all
var _ICALENDAR_URL = 'https://crossorigin.me/https://calendar.g......ics';
+
columns[3]['blocks'] = ['icalendar'];
Code: Select all
var calendars = {}
calendars.business = { title: 'Business', icalurl: 'https://crossorigin.me/https://calendar.g......ics' }
calendars.private = { title: 'Private', icalurl: 'webcal://......ics' }
+
columns[3]['blocks'] = ['calendars.business','calendar.private'];
And suddenly its working again... See 1 or 2 errors but have accurate info now. So seems something with wunderground....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 .....
True.madrian wrote:+at this moment Apple Calendar is broken, because of: https://github.com/robgeerts/dashticz_v ... -298194264
Code: Select all
var calendars = {}
calendars.business = { title: 'Samen', icalurl: 'https://p9-calendars.icloud.com/published/2/nuh36ehiydwgreggsgdef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-RIreVpahV4zKT-fE_XyvWaKHmFSf4cTYEptui-tRa1buriW7k' }
calendars.private = { title: 'Shayna', icalurl: 'webcal://p3-calendarws.icloud.com/ca/subscribe/1/bknN4a2idziGc9c-aovFkgAbSxMoQI2e0tAhOcMfsegeefvHAX4BGQWLky6D0zegjfYzfclMpDEZlXKTgwztQnah7Lxm6Yof9Q' }
Code: Select all
columns[6] = {}
columns[6]['blocks'] = [calendars.business,calendars.private,'clock',buttons.buienradar,'news_1']
columns[6]['width'] = 2;
Same here using Google calendar.and all I see is the 2 headers.
Code: Select all
calendars.private = { title: 'Otthon', icalurl: 'https://xyxyxyxyxyx' }
calendars.business = { title: 'Business', icalurl: 'https://calendar.google.com/basic.ics' }
Code: Select all
-- if the string moonrise, hour, minute is present (!="nill") AND their value is not empty, (!="")
if string.find(s, [["moonrise": {"hour":"(%d+)","minute":"(%d+)"]]) !="nill" && string.match(s, [["moonrise": {"hour":"(%d+)","minute":"(%d+)"]]) != ""
moonriseHour, moonriseMinute = string.find(s, [["moonrise": {"hour":"(%d+)","minute":"(%d+)"]])
if debug then print("Moonrise:\t"..moonriseHour..":"..moonriseMinute)
else
-- Give the values a value of N/A, continue script, throw warning
moonriseHour, moonriseMinute = "N/A"
if debug then print("Moonrise warning:\t"..moonriseHour..":"..moonriseMinute)
end
Code: Select all
<div class="mh transbg block_85_1 col-xs-6"><div class="col-xs-4 col-icon"><em class="fa fa-thermometer-half"></em></div><div class="col-xs-8 col-data"><strong class="title">21,0°C</strong><br><span>Woonkamer</span></div></div>
Users browsing this forum: No registered users and 0 guests