Comments (13)
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.
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.
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.
Jepp, waere wohl besser
from smarthome.
wir bauen die items jetzt auf .degrees und .radians um, dann habt ihr beides
from smarthome.
Doku siehe https://github.com/smarthomeNG/smarthome/wiki/env
Bitte nachtesten!
from smarthome.
Ich schließe dann mal, bei Problemen bitte erneut öffnen.
from smarthome.
Was steht eigentlich in der orb.py ? Haben wir jetzt nich die berechnungen doppelt ?
from smarthome.
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.
Hast du auch die location_conf uebernommen, da gab es auch anpassungen der items
from smarthome.
@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.
@Bonze255:
die frage zur orb.py verstehe ich nicht, die daten die in der location.py berechnet werden werden dort nicht berechnet.
from smarthome.
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)
- cache value not converted to current item type
- Issues with (re)loading logics from the editor page of the admin gui HOT 7
- structs not checked for wrong configurations? HOT 1
- Issue with smartdeviceplugin with UTF-8 response HOT 1
- Requirements von Logiken und Userfunctions installieren beim Start? HOT 7
- Websocket crashed HOT 4
- Vorschlag zum besseren Handling von Items mit Datentyp 'dict' oder 'list' HOT 25
- Websocket Exceptions HOT 4
- struct names are applied to items including the struct
- Visu subscription of a memory log activates sending of env.core.log HOT 5
- smarthome/doc/user/source/beispiele/eval.rst Beispiel "Enumeration über Liste" funktioniert nicht HOT 1
- Log configuration: allow placeholders for filename and rotate correctly HOT 1
- Delay in scenes HOT 4
- Problem when Item has the same name as a class Item method HOT 5
- Http module cannot bind on all interfaces
- Incompability to paho-mqtt-2.0.0 HOT 1
- Usage of logging.default.yaml HOT 7
- Problem bei max python Version zum Start? HOT 3
- Item Funktionen in der plugin.yaml? HOT 12
- Bug in ``Utils.get_all_local_ipv4_addresses()`` HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smarthome.