Git Product home page Git Product logo

Comments (13)

Bonze255 avatar Bonze255 commented on May 27, 2024

gerade gefunden steht in der env.location.cnf

[env]
[[location]]
[[[day]]]
type = bool
[[[night]]]
type = bool
[[[sunrise]]]
type = foo
[[[sunset]]]
type = foo
[[[moonrise]]]
type = foo
[[[moonset]]]
type = foo
[[[moonphase]]]
type = num
[[[moonlight]]]
type = num

from smarthome.

Bonze255 avatar Bonze255 commented on May 27, 2024

Hab hier mal die 2 Dateien abgeändert, das müsste so passen, allerdings sollte man dann im Wiki drauf verweisen
location.conf.txt
location.py.txt

from smarthome.

psilo909 avatar psilo909 commented on May 27, 2024

Das Ding ist zwar Closed aber ich habe gerade gemerkt, dass die Werte für azimut und elevation jetzt in RADIANS (Bogenmaß) in den env-items sind. Ich hätte lieber / zusätzlich gerne Degree. Wie sind hier die Meinungen?

from smarthome.

Bonze255 avatar Bonze255 commented on May 27, 2024

Jepp, waere wohl besser

from smarthome.

psilo909 avatar psilo909 commented on May 27, 2024

wir bauen die items jetzt auf .degrees und .radians um, dann habt ihr beides

from smarthome.

psilo909 avatar psilo909 commented on May 27, 2024

Doku siehe https://github.com/smarthomeNG/smarthome/wiki/env

Bitte nachtesten!

from smarthome.

psilo909 avatar psilo909 commented on May 27, 2024

Ich schließe dann mal, bei Problemen bitte erneut öffnen.

from smarthome.

Bonze255 avatar Bonze255 commented on May 27, 2024

Was steht eigentlich in der orb.py ? Haben wir jetzt nich die berechnungen doppelt ?

from smarthome.

schloessl avatar schloessl commented on May 27, 2024

Ich arbeite mit der Master, habe jetzt aus der Dev-Version aus der lib/env die location.- Daten ubernommen. Leider bekomme ich einen Fehler:
2016-05-11 02:26:38 INFO env_loc Item env.location.sunrise = 2016-05-11 05:37:38.892197+02:00 via Logic None None
2016-05-11 02:26:38 ERROR env_loc Logic: env_loc, File: /usr/local/smarthome/lib/env/location.py, Line: 8, Method: , Exception: pos() got an unexpected keyword argument 'dt'
Traceback (most recent call last):
File "/usr/local/smarthome/lib/scheduler.py", line 346, in _task
exec(obj.bytecode)
File "/usr/local/smarthome/lib/env/location.py", line 8, in
azimut_rise, elevation_rise = sh.sun.pos(dt=sunrise)
TypeError: pos() got an unexpected keyword argument 'dt'

Wo finde ich sh.sun oder was habe ich vergesen zu übernehmen?

from smarthome.

Bonze255 avatar Bonze255 commented on May 27, 2024

Hast du auch die location_conf uebernommen, da gab es auch anpassungen der items

from smarthome.

cstrassburg avatar cstrassburg commented on May 27, 2024

@schloessl : lib/orb.py musst du auch aus develop nehmen. Da hat sich die Methode pos() geändert,

ERROR env_loc Logic: env_loc, File: /usr/local/smarthome/lib/env/location.py, Line: 8, Method: , Exception: pos() got an unexpected keyword argument 'dt'

from smarthome.

psilo909 avatar psilo909 commented on May 27, 2024

@Bonze255:
die frage zur orb.py verstehe ich nicht, die daten die in der location.py berechnet werden werden dort nicht berechnet.

from smarthome.

schloessl avatar schloessl commented on May 27, 2024

Dank an alle Helfer!
Die lib/orb.py hat die Lösung gebracht. Hier ist tatsächlich die pos()-Berechnung geändert.
An @Bonze255: location.- Daten hatte die location.conf eingschlossen. Sorry, unklar von mir.
Trotzden Danke!

from smarthome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.