Dropshot wrote:Great tutorial, thanks. I have one question though, how did you create the blocks beneath the moon picture? I get only 'on' instead of the tekst value.
Thanks for the compliment!
About the block beneath the moon, these are filled from the lua script. The first block is the value from idxmoonphase and the second one contains the value of idxmoonpercentage.:
local idxmoonpercentage ='125' -- Your virtual moon percentage illuminated Device ID
local idxmoonage ='131' -- Your virtual moon age Device ID
local idxmoonphase ='132' -- Your virtual moon phase Device ID
local idxmoonrise='124' -- Your virtual moon rise variable ID
local idxmoonset='127' -- Your virtual moon set variable ID
Thank you, I've the same devices in Domoticz. I think I still don't understand how these 'blocktypes.Name' work. I only see the 'On' status of these devices:
How can I show the data instead of the status of these devices?
EDIT: Ah, I get it. I have added the lines to the blocks.js file (~/dashboard/js/blocks.js). It now shows the correct values,
Last edited by Dropshot on Sunday 23 April 2017 16:02, edited 1 time in total.
@robgeerts
I downloaded the lastest version. The 'Thuis' button is now behaving normally. I will try to add some custom.js for the combined behavious with aanwezig (like in the previous version) and using a standard font awesome image .
Another one I checked is the latest blinds version. There is still a part cut off from the 'clickable' part of the + image. I think this is causing it:
blinds.jpg (15.79 KiB) Viewed 2224 times
Thanks for the quick fixes so far. Much appreciated !
Ralph
RPi 3B (master): RFXtrx433, Harmony Hub, Z-Wave devices, CoCo units, Hue, Xiaomi Aquara
RPi 2B (slave): P1 connection, MySensors with custom built watermeter sensors on Aquadis+
RPi’s with: Mosquitto MQTT, Home Bridge, Home Assistant (for evaluation only)
EdKo66 wrote:For now I give up on that Moonphase script. It still doesn't understand that my temp file is on '/var/packages/domoticz/scripts/lua/tmp/Moon.tmp'.
Sorry to read this... No luck with the orginal location (/var/tmp/phase.tmp) as well?
EdKo66 wrote:For now I give up on that Moonphase script. It still doesn't understand that my temp file is on '/var/packages/domoticz/scripts/lua/tmp/Moon.tmp'.
Sorry to read this... No luck with the orginal location (/var/tmp/phase.tmp) as well?
Wizjos
Nope, no succes either.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
local tempfilename = '/home/pi/Moon.tmp' -- can be anywhere writeable
Start a SSH to you device and start the next commands direct after login:
BEWARE OF CAPITALS.
sudo nano Moon.tmp
sudo chmod 777 Moon.tmp
This helped me !
Also not this is important:
local city = "Maassluis" -- Your city for Wunderground API
local countryCode = "Maassluis" -- Your country code for Wunderground API
You need to have your city entered two times.
Tried both 644 and 777 as permission. Both failed. I've got another tmp file on exact the same location, and that one works without problems. Even copied the exact path, and still no go.
Since you can't use nano on Synology, I used VI but that shouldn't really matter. Can give the double cityname a go, although I doubt that will fix the tmp. file problems.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
I would like to make a suggestion. If the WU API key is present to use the radar from them.
It is nice because you have many options you can specify
radius of the radar
radius unit of measure
width of the image
height of the image
show base map (satellite view)
different colors for rain snow and mix
smooth the colors
remove any false radar reading
number of frames in animation
delay between frames of animation
timestamp image
animation or still image
you can also grab the condition/forecast icons from WU as well
EdKo66 wrote:For now I give up on that Moonphase script. It still doesn't understand that my temp file is on '/var/packages/domoticz/scripts/lua/tmp/Moon.tmp'.
Sorry to read this... No luck with the orginal location (/var/tmp/phase.tmp) as well?
Wizjos
Nope, no succes either.
If you PM me your working rainscript and the failing moon script maybe I can help you find the solution...
vmb wrote:Does anybody know how I can add this (http://www.klokradio.nl) local radiostaton to the Streamplayer? There is no mp3 stream available, only pls etc.
vmb wrote:Does anybody know how I can add this (http://www.klokradio.nl) local radiostaton to the Streamplayer? There is no mp3 stream available, only pls etc.
Check sonar's answer, alternatively download pls and inside pls you can find the stream.
vmb wrote:Does anybody know how I can add this (http://www.klokradio.nl) local radiostaton to the Streamplayer? There is no mp3 stream available, only pls etc.