So sieht es bisher aus:
[{"id":"d991667924d88bf1","type":"split","z":"0d480fc2f6a2fd31","name":"","splt":"\\n","spltType":"str","arraySplt":"2","arraySpltType":"len","stream":false,"addname":"","x":930,"y":540,"wires":[["4f4d073ccd14c593"]]},{"id":"beb5449852ba5273","type":"inject","z":"0d480fc2f6a2fd31","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":190,"y":540,"wires":[["8a94859fa0d1e746"]]},{"id":"8a94859fa0d1e746","type":"exec","z":"0d480fc2f6a2fd31","command":"sudo timeout 5 python3 /home/pi/quick2wire-python-api/GY-271.py","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":540,"y":540,"wires":[["5e75a042b2f76769","d991667924d88bf1"],[],[]]},{"id":"5e75a042b2f76769","type":"debug","z":"0d480fc2f6a2fd31","name":"debug 30","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":900,"y":420,"wires":[]},{"id":"ffff5ef0adddb936","type":"join","z":"0d480fc2f6a2fd31","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"5","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":1290,"y":540,"wires":[["43a59ad1a4d1617d"]]},{"id":"4f4d073ccd14c593","type":"function","z":"0d480fc2f6a2fd31","name":"get values","func":"if (msg.payload != \"\") { \n msg.payload = msg.payload.split(\":\")\n msg.topic = msg.payload[0].trim()\n msg.payload = msg.payload[1].trim()\n return msg \n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1110,"y":540,"wires":[["39ad86428c364122"]]},{"id":"43a59ad1a4d1617d","type":"debug","z":"0d480fc2f6a2fd31","name":"debug 34","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1500,"y":700,"wires":[]},{"id":"39ad86428c364122","type":"switch","z":"0d480fc2f6a2fd31","name":"","property":"topic","propertyType":"msg","rules":[{"t":"cont","v":"Axis X","vt":"str"},{"t":"cont","v":"Axis Y","vt":"str"},{"t":"cont","v":"Axis Z","vt":"str"},{"t":"cont","v":"Declination","vt":"str"},{"t":"cont","v":"Heading","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":1230,"y":400,"wires":[["45bd928c4e3d7f74","8607e4d3f7bbe5e2"],["c2b67a7057721481","0a2bdfe61efdf4ad"],["017cea65cc6c7c75","88db5975a696757f"],["016561b67fe69c2c","0eed4900b2e39973"],["394953e893f18348","f17bc37aeb314bb1"]]},{"id":"c2b67a7057721481","type":"debug","z":"0d480fc2f6a2fd31","name":"debug 36","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1500,"y":180,"wires":[]},{"id":"017cea65cc6c7c75","type":"debug","z":"0d480fc2f6a2fd31","name":"debug 37","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1500,"y":300,"wires":[]},{"id":"016561b67fe69c2c","type":"debug","z":"0d480fc2f6a2fd31","name":"debug 38","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1500,"y":420,"wires":[]},{"id":"394953e893f18348","type":"debug","z":"0d480fc2f6a2fd31","name":"debug 39","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1500,"y":540,"wires":[]},{"id":"45bd928c4e3d7f74","type":"debug","z":"0d480fc2f6a2fd31","name":"debug 40","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1500,"y":60,"wires":[]},{"id":"540790c6854f49f7","type":"mqtt in","z":"0d480fc2f6a2fd31","name":"","topic":"Axis X","qos":"2","datatype":"auto-detect","broker":"0ddb07c65cbb68bc","nl":false,"rap":false,"inputs":0,"x":490,"y":840,"wires":[["b737d17b957cdcb2","2089b4eff5365d40"]]},{"id":"518fcd7f1cd2e38f","type":"mqtt in","z":"0d480fc2f6a2fd31","name":"","topic":"Axis Y","qos":"2","datatype":"auto-detect","broker":"0ddb07c65cbb68bc","nl":false,"rap":false,"inputs":0,"x":553,"y":920,"wires":[["5b6f5767e86bbdfc","2089b4eff5365d40"]]},{"id":"c1e250285030a24a","type":"mqtt in","z":"0d480fc2f6a2fd31","name":"","topic":"Axis Z","qos":"2","datatype":"auto-detect","broker":"0ddb07c65cbb68bc","nl":false,"rap":false,"inputs":0,"x":459,"y":1003,"wires":[["e0fcaddd89bb819e","2089b4eff5365d40"]]},{"id":"16448da8b758479f","type":"mqtt in","z":"0d480fc2f6a2fd31","name":"","topic":"Declination","qos":"2","datatype":"auto-detect","broker":"0ddb07c65cbb68bc","nl":false,"rap":false,"inputs":0,"x":444,"y":1097,"wires":[["5c4389a0314b8f03","2089b4eff5365d40"]]},{"id":"8840574a5bad2536","type":"mqtt in","z":"0d480fc2f6a2fd31","name":"","topic":"Heading","qos":"2","datatype":"auto-detect","broker":"0ddb07c65cbb68bc","nl":false,"rap":false,"inputs":0,"x":413,"y":1213,"wires":[["2553cb555573c817","2089b4eff5365d40"]]},{"id":"b737d17b957cdcb2","type":"ui_gauge","z":"0d480fc2f6a2fd31","name":"","group":"41966ddc.701f44","order":1,"width":0,"height":0,"gtype":"compass","title":"X","label":"units","format":"{{value}}","min":0,"max":"180","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":496,"y":798,"wires":[]},{"id":"5b6f5767e86bbdfc","type":"ui_gauge","z":"0d480fc2f6a2fd31","name":"","group":"214bf69f.fbceca","order":1,"width":0,"height":0,"gtype":"compass","title":"Y","label":"units","format":"{{value}}","min":0,"max":"180","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":491,"y":898,"wires":[]},{"id":"e0fcaddd89bb819e","type":"ui_gauge","z":"0d480fc2f6a2fd31","name":"","group":"15c53cc2.e75d93","order":1,"width":0,"height":0,"gtype":"compass","title":"Z","label":"units","format":"{{value}}","min":0,"max":"180","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":447,"y":953,"wires":[]},{"id":"5c4389a0314b8f03","type":"ui_gauge","z":"0d480fc2f6a2fd31","name":"","group":"41966ddc.701f44","order":2,"width":0,"height":0,"gtype":"wave","title":"Declination","label":"units","format":"{{value}}","min":0,"max":"65536","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":476,"y":1052,"wires":[]},{"id":"2553cb555573c817","type":"ui_gauge","z":"0d480fc2f6a2fd31","name":"","group":"214bf69f.fbceca","order":2,"width":0,"height":0,"gtype":"wave","title":"Heading","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":442,"y":1167,"wires":[]},{"id":"4eeaa052dc8ba659","type":"json","z":"0d480fc2f6a2fd31","name":"","property":"payload","action":"","pretty":false,"x":943,"y":959,"wires":[["1ec14f91a27e4753"]]},{"id":"1ec14f91a27e4753","type":"debug","z":"0d480fc2f6a2fd31","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1151,"y":958,"wires":[]},{"id":"2089b4eff5365d40","type":"join","z":"0d480fc2f6a2fd31","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":",","joinerType":"str","accumulate":false,"timeout":"6","count":"6","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":823,"y":960,"wires":[["4eeaa052dc8ba659"]]},{"id":"cc0697299e6b338f","type":"inject","z":"0d480fc2f6a2fd31","name":"Alignment Parameters","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"Your Alignment Parameters","vt":"str"}],"repeat":"60","crontab":"","once":true,"onceDelay":"60","topic":"Your Alignment Parameters","payload":"","payloadType":"date","x":757,"y":817,"wires":[["2089b4eff5365d40"]]},{"id":"8607e4d3f7bbe5e2","type":"mqtt out","z":"0d480fc2f6a2fd31","name":"","topic":"Axis X","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0ddb07c65cbb68bc","x":1510,"y":120,"wires":[]},{"id":"0a2bdfe61efdf4ad","type":"mqtt out","z":"0d480fc2f6a2fd31","name":"","topic":"Axis Y","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0ddb07c65cbb68bc","x":1510,"y":240,"wires":[]},{"id":"88db5975a696757f","type":"mqtt out","z":"0d480fc2f6a2fd31","name":"","topic":"Axis Z","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0ddb07c65cbb68bc","x":1510,"y":360,"wires":[]},{"id":"0eed4900b2e39973","type":"mqtt out","z":"0d480fc2f6a2fd31","name":"","topic":"Declination","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0ddb07c65cbb68bc","x":1530,"y":480,"wires":[]},{"id":"f17bc37aeb314bb1","type":"mqtt out","z":"0d480fc2f6a2fd31","name":"","topic":"Heading","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0ddb07c65cbb68bc","x":1520,"y":600,"wires":[]},{"id":"ab01324c.4824","type":"inject","z":"0d480fc2f6a2fd31","name":"","props":[{"p":"payload","v":"270","vt":"num"},{"p":"topic","v":"","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"270","payloadType":"num","x":310,"y":660,"wires":[["3280794c.eb6396"]]},{"id":"3280794c.eb6396","type":"change","z":"0d480fc2f6a2fd31","name":"Convert Wind Degrees To Text","rules":[{"t":"set","p":"directions","pt":"flow","to":"$exists($flowContext(\"directions\")) ? $flowContext(\"directions\") : [\"N\", \"NNE\", \"NE\", \"ENE\", \"E\", \"ESE\", \"SE\", \"SSE\", \"S\", \"SSW\", \"SW\", \"WSW\", \"W\", \"WNW\", \"NW\", \"NNW\"] ","tot":"jsonata"},{"t":"set","p":"index","pt":"msg","to":"$string($floor((payload / 22.5) + 0.5) % 16)","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"$flowContext(\"directions[\"&index&\"]\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":680,"wires":[["10a54176.da8daf"]]},{"id":"10a54176.da8daf","type":"debug","z":"0d480fc2f6a2fd31","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":870,"y":680,"wires":[]},{"id":"0ddb07c65cbb68bc","type":"mqtt-broker","name":"","broker":"http://localhost","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"41966ddc.701f44","type":"ui_group","name":"X Axis","tab":"65f4b922.5ef4a8","order":1,"disp":true,"width":"6","collapse":false},{"id":"214bf69f.fbceca","type":"ui_group","name":"Y Axis","tab":"65f4b922.5ef4a8","order":2,"disp":true,"width":"6","collapse":false},{"id":"15c53cc2.e75d93","type":"ui_group","name":"Z Axis","tab":"65f4b922.5ef4a8","order":3,"disp":true,"width":"6","collapse":false},{"id":"65f4b922.5ef4a8","type":"ui_tab","name":"X","icon":"dashboard","order":2}]
Mal ne ganz blöde Frage.
Sind die angezeigten Werte Grad Werte, die „genullt“ ( kalibriert ) werden müsen ?
Der GY-271 soll auch einen Kompass haben. Wie interpretiert man die Kompass Werte ? Declination und Heading haben doch nur etwas mit der Korrektur in Bezug auf dem aktuellen Ort zu tun, oder liege ich da falsch ?