Mein Projekt CaSSAndRA zur Steuerung des Ardumowers

Mit der Nadel kannst Du anschließend oben den Kasten oder das Lasso auswählen und einen Bereich markieren, für den dann Mähbahnen berechnet werden.
Das hat EinEinach wirklich super gemacht.
Und mit dem Positionsmarkersymbol kannst Du irgendwo auf der Karte ein x klicken, wo der Mäher hinfahren soll.

Steht Dein Mäher wirklich bei dem roten Punkt in der Karte?

Nachdem Du so eine Vorschau mit Bahnen ausgewählt hast, musst Du nur "Play" drücken. Dann dauert es kurz und geht auch schon los.

Aber auf die Remotesteuerung sollte er eigentlich direkt reagieren, ohne dass Du etwas in den Karten eingestellt hast. Welche Art der Verbindung nutzt Du denn? Schaltet er sich wenigstens aus, wenn Du die rote durchgestrichene Glühlampe drückst?

Hier noch einmal ein großes Lob an Dich @EinEinach ! Ich sehe, dass Du momentan täglich daran am Weiterarbeiten bist! Echt super fleißig!
 
Hallo @EastSoft,
vielen Dank für die Erläuterungen! Das ist wirklich super, wenn das alles so funktioniert. Muss ich morgen nochmal probieren.
Also, der Mäher stand tatsächlich bei dem Screenshot auf dem roten Punkt und ich saß daneben, aber wenn ich "Play" drücke, passiert nichts und auch mit der Remotesteuerung nicht, weder Mow-Motor on noch die Glühlampe. Verbunden bin ich über http mit dem Mower. Die Mowerdaten bekomme ich ja auch angezeigt.
Dem Lob an @EinEinach kann ich mich nur anschließen! Ich denke die Sache kann wirklich etwas werden und man wäre unabhängig von irgendwelchen Servern im Internet.
 
Was kann ich zur Klärung noch beisteuern?
Wie ich schon geschrieben habe, den Server in debug Modus versetzen und nach dem du gwünschte Aktion ausgewählt hast und mit Play Button gestartet hast und es passiert nichts, dann ins Tetminal wechseln folgendes eingeben
Code:
journalctl -u cassandra -e
Und die letzten Einträge rauskopieren und hier posten.
Hier noch einmal ein großes Lob an Dich @EinEinach ! Ich sehe, dass Du momentan täglich daran am Weiterarbeiten bist! Echt super fleißig!
Dem Lob an @EinEinach kann ich mich nur anschließen!
Danke euch beiden das macht Mut weiterzumachen
 
Ich habe soeben den Raspi gestartet, bei der Kontrolle , ob CaSSAndRA läuft, kommt folgende Meldung:

Code:
ardumower@raspberrypi:~ $ sudo systemctl status cassandra
● cassandra.service - CaSSAndRA
     Loaded: loaded (/etc/systemd/system/cassandra.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-05-04 18:17:14 CEST; 19h ago
   Main PID: 642 (python3)
      Tasks: 4 (limit: 779)
        CPU: 6.045s
     CGroup: /system.slice/cassandra.service
             └─642 python3 /home/ardumower/CaSSAndRA/CaSSAndRA/app.py

Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/.local/lib/python3.9/site-packages/pandas/core/generic.py", line 6002, in __setattr__
Mai 05 13:54:03 raspberrypi python3[642]:     return object.__setattr__(self, name, value)
Mai 05 13:54:03 raspberrypi python3[642]:   File "pandas/_libs/properties.pyx", line 69, in pandas._libs.properties.AxisProperty.__set__
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/.local/lib/python3.9/site-packages/pandas/core/generic.py", line 730, in _set_axis
Mai 05 13:54:03 raspberrypi python3[642]:     self._mgr.set_axis(axis, labels)
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/.local/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 225, in set_axis
Mai 05 13:54:03 raspberrypi python3[642]:     self._validate_set_axis(axis, new_labels)
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/.local/lib/python3.9/site-packages/pandas/core/internals/base.py", line 70, in _validate_se>
Mai 05 13:54:03 raspberrypi python3[642]:     raise ValueError(
Mai 05 13:54:03 raspberrypi python3[642]: ValueError: Length mismatch: Expected axis has 26 elements, new values have 25 elements

Nach dem Start der App auf dem Smartphone folgende:

Code:
journalctl -u cassandra -e
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 DEBUG http://192.168.1.29:80 "POST / HTTP/1.1" 200 85
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 DEBUG Status code: 200
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 DEBUG Content: S,26.57,8.49,-0.80,-2.88,2,3,0,0.43,2,8.40,-0.83,0.03,32,0.02,29,-1592743,0.00,0>
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 DEBUG Recieved checksum:0xfb Calced checksum: 0xfb
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 DEBUG Backend: Calc data from state data frame
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 INFO Backend: Performing get stats http-request
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 DEBUG Calced checksumme: 0x14
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 DEBUG encryption true
Mai 05 13:54:02 raspberrypi python3[642]: 2023-05-05 13:54:02 DEBUG Starting new HTTP connection (1): 192.168.1.29:80
Mai 05 13:54:03 raspberrypi python3[642]: 2023-05-05 13:54:03 DEBUG http://192.168.1.29:80 "POST / HTTP/1.1" 200 97
Mai 05 13:54:03 raspberrypi python3[642]: 2023-05-05 13:54:03 DEBUG Status code: 200
Mai 05 13:54:03 raspberrypi python3[642]: 2023-05-05 13:54:03 DEBUG Content: T,110,0,8051,5,8046,2,1694.24,1.97,0,998.00,998.00,7,0,0.04,1024,0,1,4,201671,1,>
Mai 05 13:54:03 raspberrypi python3[642]: 2023-05-05 13:54:03 DEBUG Recieved checksum:0x53 Calced checksum: 0x53
Mai 05 13:54:03 raspberrypi python3[642]: Exception in thread Thread-1:
Mai 05 13:54:03 raspberrypi python3[642]: Traceback (most recent call last):
Mai 05 13:54:03 raspberrypi python3[642]:   File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
Mai 05 13:54:03 raspberrypi python3[642]:     self.run()
Mai 05 13:54:03 raspberrypi python3[642]:   File "/usr/lib/python3.9/threading.py", line 892, in run
Mai 05 13:54:03 raspberrypi python3[642]:     self._target(*self._args, **self._kwargs)
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/CaSSAndRA/CaSSAndRA/src/backend/backendserver.py", line 35, in connect_http
Mai 05 13:54:03 raspberrypi python3[642]:     connection_status = httpcomm.get_stats(connect_data, connection)
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/CaSSAndRA/CaSSAndRA/src/backend/comm/httpcomm.py", line 136, in get_stats
Mai 05 13:54:03 raspberrypi python3[642]:     datatodf.add_stats_to_df(res.text)
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/CaSSAndRA/CaSSAndRA/src/backend/data/datatodf.py", line 136, in add_stats_to_df
Mai 05 13:54:03 raspberrypi python3[642]:     stats_to_df.columns = [
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/.local/lib/python3.9/site-packages/pandas/core/generic.py", line 6002, in __setattr__
Mai 05 13:54:03 raspberrypi python3[642]:     return object.__setattr__(self, name, value)
Mai 05 13:54:03 raspberrypi python3[642]:   File "pandas/_libs/properties.pyx", line 69, in pandas._libs.properties.AxisProperty.__set__
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/.local/lib/python3.9/site-packages/pandas/core/generic.py", line 730, in _set_axis
Mai 05 13:54:03 raspberrypi python3[642]:     self._mgr.set_axis(axis, labels)
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/.local/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 225, in set_axis
Mai 05 13:54:03 raspberrypi python3[642]:     self._validate_set_axis(axis, new_labels)
Mai 05 13:54:03 raspberrypi python3[642]:   File "/home/ardumower/.local/lib/python3.9/site-packages/pandas/core/internals/base.py", line 70, in _validate_se>
Mai 05 13:54:03 raspberrypi python3[642]:     raise ValueError(
Mai 05 13:54:03 raspberrypi python3[642]: ValueError: Length mismatch: Expected axis has 26 elements, new values have 25 elements

Das sieht für mich nach Problemen aus.
Muss ich eigentlich nach dem Start des Servers und dem Start der App die Connection jedesmal neu einrichten? Wenn ich in der App auf Settings und Connection gehe, ist dort nirgends ein Punkt drin und auch die Karte wird mir nicht angezeigt.

Grüße
 
Jetzt habe ich noch einen anderen Browser probiert. Ich habe den Mähwinkel eingestellt und die Karte wird mir angezeigt. Wenn ich jetzt den Play-Knopf drücke passiert nichts, die Ausgabe auf der Konsole ist folgende:

Code:
ardumower@raspberrypi:~ $ journalctl -u cassandra -e
Mai 05 14:14:45 raspberrypi python3[642]: 2023-05-05 14:14:45 INFO Backend: Create a shapely figure from data frame
Mai 05 14:14:46 raspberrypi python3[642]: 2023-05-05 14:14:46 INFO Backend: Calc goto points preview
Mai 05 14:14:47 raspberrypi python3[642]: 2023-05-05 14:14:47 INFO Backend: Create goto points
Mai 05 14:14:48 raspberrypi python3[642]: 2023-05-05 14:14:48 INFO Backend: Calc goto points preview
Mai 05 14:15:03 raspberrypi python3[642]: 2023-05-05 14:15:03 WARNING Backend: Could not save perimeter data to the file
Mai 05 14:15:05 raspberrypi python3[642]: 2023-05-05 14:15:05 WARNING Backend: Could not save perimeter data to the file
Mai 05 14:15:08 raspberrypi python3[642]: 2023-05-05 14:15:08 WARNING Backend: Could not save perimeter data to the file
Mai 05 14:15:08 raspberrypi python3[642]: 2023-05-05 14:15:08 WARNING Backend: Could not save perimeter data to the file
Mai 05 14:18:23 raspberrypi python3[642]: 2023-05-05 14:18:23 INFO Backend: Changing perimeter to nr: 0
Mai 05 14:18:23 raspberrypi python3[642]: 2023-05-05 14:18:23 INFO Backend: Create a shapely figure from data frame
Mai 05 14:18:23 raspberrypi python3[642]: 2023-05-05 14:18:23 INFO Backend: Create goto points
Mai 05 14:18:23 raspberrypi python3[642]: 2023-05-05 14:18:23 INFO Backend: Calc goto points preview
Mai 05 14:18:23 raspberrypi python3[642]: 2023-05-05 14:18:23 INFO Backend: Changing perimeter to nr: 0
Mai 05 14:18:23 raspberrypi python3[642]: 2023-05-05 14:18:23 INFO Backend: Create a shapely figure from data frame
Mai 05 14:18:24 raspberrypi python3[642]: 2023-05-05 14:18:24 INFO Backend: Create goto points
Mai 05 14:18:24 raspberrypi python3[642]: 2023-05-05 14:18:24 INFO Backend: Changing perimeter to nr: 0
Mai 05 14:18:24 raspberrypi python3[642]: 2023-05-05 14:18:24 INFO Backend: Create a shapely figure from data frame
Mai 05 14:18:24 raspberrypi python3[642]: 2023-05-05 14:18:24 INFO Backend: Calc goto points preview
Mai 05 14:18:24 raspberrypi python3[642]: 2023-05-05 14:18:24 INFO Backend: Create goto points
Mai 05 14:18:24 raspberrypi python3[642]: 2023-05-05 14:18:24 INFO Backend: Calc goto points preview
Mai 05 14:18:40 raspberrypi python3[642]: 2023-05-05 14:18:40 WARNING Backend: Could not save perimeter data to the file
Mai 05 14:18:41 raspberrypi python3[642]: 2023-05-05 14:18:41 WARNING Backend: Could not save perimeter data to the file
Mai 05 14:18:42 raspberrypi python3[642]: 2023-05-05 14:18:42 WARNING Backend: Could not save perimeter data to the file
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 INFO Backend: Create a shapely figure from data frame
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 DEBUG Coverage path planning: mowoffset: 0.18 mowangle: 0 startpos: [8.09, -2.78] pattern: lines
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 INFO Backend: Turning shapely figure: Point Angle: 0
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 DEBUG POINT (8.09 -2.78)
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 INFO Backend: Turning shapely figure: Polygon Angle: 0
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 DEBUG POLYGON ((-1.107151323886195 0.486426868813719, 0.8088203251688121 -0.9505518679775361, 0>
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 INFO Backend: Create map borders and area to mow
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 INFO Backend: Calc route for cutedge
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 DEBUG current route coords: [(-1.107151323886195, 0.48642686881371905), (0.8088203251688121, -0>
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 INFO Backend: Route for cutedge complete
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 DEBUG Cutedge route: 108 points; figures to calculate: 16
Mai 05 14:18:56 raspberrypi python3[642]: 2023-05-05 14:18:56 INFO Backend: Create line mask
Mai 05 14:19:54 raspberrypi python3[642]: 2023-05-05 14:19:54 INFO Backend: Route wurde vollständig berechnet
Mai 05 14:19:54 raspberrypi python3[642]: 2023-05-05 14:19:54 INFO Backend: Turning shapely figure: LineString Angle: 0
Mai 05 14:19:54 raspberrypi python3[642]: 2023-05-05 14:19:54 DEBUG LINESTRING (9.74 -3.75, 10.24 -5.46, 11.706379928315416 -7.076989247311825, 12.7766468679>
Mai 05 14:19:54 raspberrypi python3[642]: 1 -3.4045354063946274, 3.2499485730071616 -3.044535406394627, 0.7759705043593934 -3.044535406394627, 0.775970504359>
lines 963-1001/1001 (END)

Ich hoffe, das hilft weiter.
 
Vielleicht hätte ich eine Idee:
Mai 05 14:18:40 raspberrypi python3[642]: 2023-05-05 14:18:40 WARNING Backend: Could not save perimeter data to the file
Mit welchem User lässt Du CaSSAndRA laufen?
pi? Oder was hast Du da angelegt?
Du solltest den gesamten CaSSAndRA-Verzeichnisbaum mit chown dem User zuordnen und am Besten noch ein chmod 777 darauf geben.

Ggf. hat Dein Prozess keine Schreibrechte auf src/data
 
Dass die Kommunikation Deine Einstellung nach einem Neustart nicht anzeigt, ist bei mir genauso. Diese muss ich aber nicht neu einstellen.
Ich benutze die USB-Schnittstelle. Nachdem ich diese einmalig eingerichtet habe, ist diese in src/data/user/commcfg.json gespeichert worden und immer nach Neustart aktiv.

Dass Du aber Deinen Perimeter nicht speichern kannst, könnte auch ein Anzeichen dafür sein, dass Du auch die Kommunikationsdaten nicht speichern kannst.

Ich glaube beim Erststart hatte ich auch so Exception-Fehler bevor ich die Kommunikation eingerichtet hatte.

Ansonsten vielleicht mal die src/data/map/perimeter.json löschen. Vielleicht ist diese korrupt?

---
Falls Deine Probleme bestehen bleiben, dass der Mäher nicht auf Befehle reagiert: Welche Sunray-Version benutzt Du? Aber so einfache Befehle wie Shutdown sollten sich eigentlich nicht geändert haben. Das sollte eigentlich immer gehen.
Wobei ich weder bestätigen noch dementieren kann, dass die Kommunikation per HTTP in beide Richtungen korrekt funktioniert. Ich habe den Pi bisher nur per USB mit dem Mäher betrieben.
 
Der systemd-Eintrag:

ardumower@raspberrypi:~/CaSSAndRA/CaSSAndRA $ cat /etc/systemd/system/cassandra.service
[Unit]
Description=CaSSAndRA
After=multi-user.target

[Service]
#Euer Benutzername
User=ardumower
Type=simple
Restart=always
#ExecStart: ggf. Pfad zu eurer app.py anpassen
ExecStart=python3 /home/ardumower/CaSSAndRA/CaSSAndRA/app.py
[Install]
WantedBy=multi-user.target

Eine 'src/data/map/perimeter.json' gibt es bei mir nicht, auch das Verzeichnis 'src/data/map' nicht.
 
Ich habe nun noch

ardumower@raspberrypi:~ $ chown -R ardumower:ardumower CaSSAndRA/

das war aber schon vorher so. Dann noch

ardumower@raspberrypi:~ $ chmod -R 777 CaSSAndRA/

ausgeführt, die Meldung 'WARNING Backend: Could not save perimeter data to the file' bleibt bestehen!
 
Nun habe ich das Verzeichnis 'src/data/map' per Hand angelegt, die Ausgabe sieht nun so aus:

Code:
ardumower@raspberrypi:~ $ journalctl -u cassandra -e
Mai 05 15:50:54 raspberrypi python3[6869]: 2023-05-05 15:50:54 INFO Backend: Calc goto points preview
Mai 05 15:50:56 raspberrypi python3[6869]: 2023-05-05 15:50:56 INFO Backend: Changing perimeter to nr: 0
Mai 05 15:50:56 raspberrypi python3[6869]: 2023-05-05 15:50:56 INFO Backend: Create a shapely figure from data frame
Mai 05 15:50:57 raspberrypi python3[6869]: 2023-05-05 15:50:57 INFO Backend: Create goto points
Mai 05 15:50:57 raspberrypi python3[6869]: 2023-05-05 15:50:57 INFO Backend: Calc goto points preview
Mai 05 15:50:57 raspberrypi python3[6869]: 2023-05-05 15:50:57 INFO Backend: Changing perimeter to nr: 0
Mai 05 15:50:57 raspberrypi python3[6869]: 2023-05-05 15:50:57 INFO Backend: Create a shapely figure from data frame
Mai 05 15:50:58 raspberrypi python3[6869]: 2023-05-05 15:50:58 INFO Backend: Changing perimeter to nr: 0
Mai 05 15:50:58 raspberrypi python3[6869]: 2023-05-05 15:50:58 INFO Backend: Create a shapely figure from data frame
Mai 05 15:50:58 raspberrypi python3[6869]: 2023-05-05 15:50:58 INFO Backend: Changing perimeter to nr: 0
Mai 05 15:50:58 raspberrypi python3[6869]: 2023-05-05 15:50:58 INFO Backend: Create a shapely figure from data frame
Mai 05 15:50:59 raspberrypi python3[6869]: 2023-05-05 15:50:59 INFO Backend: Create goto points
Mai 05 15:50:59 raspberrypi python3[6869]: 2023-05-05 15:50:59 INFO Backend: Calc goto points preview
Mai 05 15:50:59 raspberrypi python3[6869]: 2023-05-05 15:50:59 INFO Backend: Create goto points
Mai 05 15:51:00 raspberrypi python3[6869]: 2023-05-05 15:51:00 INFO Backend: Calc goto points preview
Mai 05 15:51:00 raspberrypi python3[6869]: 2023-05-05 15:51:00 INFO Backend: Create goto points
Mai 05 15:51:00 raspberrypi python3[6869]: 2023-05-05 15:51:00 INFO Backend: Calc goto points preview
Mai 05 15:51:15 raspberrypi python3[6869]: 2023-05-05 15:51:15 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:22 raspberrypi python3[6869]: 2023-05-05 15:51:22 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:29 raspberrypi python3[6869]: 2023-05-05 15:51:29 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:30 raspberrypi python3[6869]: 2023-05-05 15:51:30 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:30 raspberrypi python3[6869]: 2023-05-05 15:51:30 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:31 raspberrypi python3[6869]: 2023-05-05 15:51:31 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 INFO Backend: Create a shapely figure from data frame
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 DEBUG Coverage path planning: mowoffset: 0.2 mowangle: 70 startpos: [8.07, -2.77] pattern: lin>
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 INFO Backend: Turning shapely figure: Point Angle: -70
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 DEBUG POINT (8.07 -2.77)
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 INFO Backend: Turning shapely figure: Polygon Angle: -70
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 DEBUG POLYGON ((-1.107151323886195 0.486426868813719, 0.8088203251688121 -0.9505518679775361, >
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 INFO Backend: Create map borders and area to mow
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 INFO Backend: Calc route for cutedge
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 DEBUG current route coords: [(0.07842368469748646, 1.206749716538331), (-0.6165937324738004, ->
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 INFO Backend: Route for cutedge complete
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 DEBUG Cutedge route: 108 points; figures to calculate: 16
Mai 05 15:52:20 raspberrypi python3[6869]: 2023-05-05 15:52:20 INFO Backend: Create line mask
Mai 05 15:52:58 raspberrypi python3[6869]: 2023-05-05 15:52:58 INFO Backend: Route wurde vollständig berechnet
Mai 05 15:52:58 raspberrypi python3[6869]: 2023-05-05 15:52:58 INFO Backend: Turning shapely figure: LineString Angle: 70
Mai 05 15:52:58 raspberrypi python3[6869]: 2023-05-05 15:52:58 DEBUG LINESTRING (-0.1925711319551416 -10.435181663926006, -1.6284354418362104 -11.48988241940>
Mai 05 15:52:58 raspberrypi python3[6869]: 65999279, -9.086446916929958 8.692524465999279, -9.086446916929958 8.692524465999279, -8.877455313032424 8.4925244>

aber der Mower bewegt sich trotzdem nicht von der Stelle!
 
Was sehr komisch ist
Code:
Mai 05 15:51:15 raspberrypi python3[6869]: 2023-05-05 15:51:15 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:22 raspberrypi python3[6869]: 2023-05-05 15:51:22 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:29 raspberrypi python3[6869]: 2023-05-05 15:51:29 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:30 raspberrypi python3[6869]: 2023-05-05 15:51:30 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:30 raspberrypi python3[6869]: 2023-05-05 15:51:30 INFO Backend: Perimeter data are successfully saved in perimeter.json
Mai 05 15:51:31 raspberrypi python3[6869]: 2023-05-05 15:51:31 INFO Backend: Perimeter data are successfully saved in perimeter.json

Das müsste nur einmal kommen. Mal den Dienst sauber beenden, den Rechner herunterfahren und neustarten.
 
ValueError: Length mismatch: Expected axis has 26 elements, new values have 25 elements
Du bist wahrscheinlich auf der aktuellsten Sunray Version, dort wurde in der Statistik eine neue Größe (Anzahl wie oft der Mow Motor ausgefallen ist) hinzugefügt. Das konnte ich noch nicht abtesten, da ich noch die .298 drauf habe
 
Hallo,
ich wollte heute auch mal testen aber scheiter schon an dem ersten Punkt.

Installation für linuxbasierte Betriebssysteme (alle Befehle werden im Terminal ausgeführt): Als erstes muss die Repository heruntergeladen werden. Oder für die Profis unter euch einfach clonen. Entpackt die Dateien in den Ordner eurer Wahl (z.B.):

Was muss ich da im Terminel eintippen ?
 
Das ist richtig, ich habe die 303. Nun habe ich den Raspi neu gestartet, aber es fängt an zu regnen, so dass ich den Mower erst einmal ins Trockene gestellt habe, da hat er aber kein GPS.
 
Für remote control zum Ausprobieren brauchst du kein GPS.

Ich vermute es liegt an der .303. Ihn stört, dass die Datenlänge der Statistikdaten länger ist, als erwartet. Entweder versuchst du es mit .298 oder du müsstest mal ein paar Zeilen code selbst ändern (ungetestet).

In src/backend/data/datatodf.py zwischen Zeilen 129 bis 164 durch das ersetzen:
Code:
def add_stats_to_df(data: str()) -> None:
    try:
        data_list = data.split(',')
        del data_list[-1]
        del data_list[0]
        data_list = [float(x) if '.' in x else int(x) for x in data_list]
        data_list.append(str(datetime.now()))
        stats_to_df = pd.DataFrame([data_list])
        stats_to_df.columns = [
                                'duration_idle',
                                'duration_charge',
                                'duration_mow',
                                'duration_mow_float',
                                'duration_mow_fix',
                                'counter_float_recoveries',
                                'distance_mow_traveled',
                                'time_max_dpgs_age',
                                'counter_imu_triggered',
                                'temp_min',
                                'temp_max',
                                'counter_gps_chk_sum_errors',
                                'counter_dgps_chk_sum_errors',
                                'time_max_cycle',
                                'serial_buffer_size',
                                'duration_mow_invalid',
                                'counter_invalid_recoveries',
                                'counter_obstacles',
                                'free_memory',
                                'reset_cause',
                                'counter_gps_jumps',
                                'counter_sonar_triggered',
                                'counter_bumper_triggered',
                                'counter_gps_motion_timeout',
                                'timestamp'
                               ]
        roverdata.stats = pd.concat([roverdata.stats, stats_to_df], ignore_index=True)
        calceddata.calcdata_from_stats()
    except:
        pass
 
Ich habe den Code in der Datei src/backend/data/datatodf.py ersetzt und CaSSAndRA neu gestartet. Einmal konnte ich in remote control den Mähmotor starten und auch wieder stoppen und beim Vorwärtsfahren hat er nochmal kurz gezuckt und nun ist wieder Ruhe.
 
Nun habe ich CaSSAndRA nochmal neu gestartet, journalctl -u cassandra -e bringt jetzt dieses Ergebnis:

Mai 05 17:53:59 raspberrypi systemd[1]: Stopping CaSSAndRA...
Mai 05 17:53:59 raspberrypi systemd[1]: cassandra.service: Succeeded.
Mai 05 17:53:59 raspberrypi systemd[1]: Stopped CaSSAndRA.
Mai 05 17:53:59 raspberrypi systemd[1]: cassandra.service: Consumed 4min 4.926s CPU time.
Mai 05 17:53:59 raspberrypi systemd[1]: Started CaSSAndRA.
Mai 05 17:54:02 raspberrypi python3[3674]: 2023-05-05 17:54:02 DEBUG Found GEOS DLL: <CDLL '/home/ardumower/.local/lib/python3.9/site-packages/Shapely.libs/l>
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Starting Backend server
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 DEBUG absolute_path: /home/ardumower/CaSSAndRA/CaSSAndRA/src/backend
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Read communication config file
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Used connection: HTTP
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Read map config file
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 DEBUG Values for mapcfg. mowoffset:0.18 mowangle: 0 distance to border: 1
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Read app config file
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 DEBUG Values for appcfg. datamaxage: 30 time until offline: 60
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Read saved data
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 WARNING Backend: Failed to load state data, create a default data frame
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 WARNING Backend: Failed to load statistics data, create a default data frame
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 WARNING Backend: Failed to load calced data from state, create a default data frame
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 WARNING Backend: Failed to load calced data from stats, create a default data frame
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Map-Data are loaded successfully
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Create a shapely figure from data frame
Mai 05 17:54:03 raspberrypi python3[3674]: 2023-05-05 17:54:03 INFO Backend: Create goto points

Ich hoffe, Du kannst damit etwas anfangen.
 
Ich sehe keine Fehler, das sind Einträge von der Startroitine, dort muss in paar Sekunden noch mehr stehen. Versuch ihn manuell zu fahren und dann noch mal in journalctl reinschauen

Gruss
Alexander
 
Oben