Openhab 2.51 or PI
I got it going
Help please see picture
Hi Jonas,
How did you solve the horizontal mirrored house?
I tried to subtract the y from 100. Now the house seems ok, shadow is ok, but the lighter green line is wrong.
Thanks
Hi!
just go counter-clockwise with your drawing-line!
Thanks. Does it matter where I start?
Update: Ok, I got it. Substract y from 100, start from the same bottom left corner but clockwise. Thank you @Jonas88
you are welcome
does not matter where you start
It took me a bit to get this working, I’m a rookie I guess, but now that it has I’m very happy with it. However, mine does not have the outer ring. Anyone have any ideas why not?
I do have the following error:
No results returned from InfluxDB History: {u’results’: [{u’statement_id’: 0, u’error’: u’database not found: openhab_db’}]}
Successfully got data from InfluxDB
anybody can help me? I follow the guidance and my template like that. i don’t understand why the circle not here.
Hi, i’m a newbie, i appreciate this widget for sun position, it’s wonderful.
i obtain this error in my case:
python C:\openhab\conf\scripts\shaddow.py update
Successfully got state from OpenHab: e[0;37mSun_Azimuthe[0m
Traceback (most recent call last):
File “C:\openhab\conf\scripts\shaddow.py”, line 252, in
main()
File “C:\openhab\conf\scripts\shaddow.py”, line 238, in main
s = shaddow()
File “C:\openhab\conf\scripts\shaddow.py”, line 44, in init
self.azimuth = float(self.oh.getState(‘Sun_Azimuth’))
ValueError: could not convert string to float: NULL
Can you help me?
stop using version which tries to obtain data from OH.
That really does not work correctly.
what do you mean?
I update my code with your version of August 2019.
i don’t see the moon
the actual data is:
Sun azimuth: 333.976650692
Sun elevation: -38.810729482
Moon azimuth: 86.7671100458
Moon elevation: -42.0394216056
Done in 0:00:00.140000 seconds
Why?
Moon elevation is negative. No moon…
on March 8 2020 I’ve posted code for python3 which is latest … Does not make much sense of using Aug 2019 code, does it?
Your image is incorrect, verify your house is positioned properly and/or your timezones are correct
as it does look like your walls are inverted
Thanks.
Timezone is ok Europe/Rome
Now the image show the area see below
So I have my house drawn out, but how do I center it?
I modify some thing in shadow.py .Now i have some problem with shadow, anybody can help me?
i noticed the same shadow issue with my house shape. maybe the shape is to complex? i use the updated python3 script from @kriznik without any changes exept lat/long, timezone, town and filename.
Thats a great question. Also I don’t know how you could align it perfectly so the rotation of the house will be correct. I have drawn my house on a geometry plotter, all looking good, but inserting into the script, the house will not be centered and the rotation is not correct…