@christian1980
Moin Christian,
irgendwie läuft es bei mir noch nicht automatisch. Mein letzter Eintrag in der log datei war um 18:56. Das war, als es fehlerfrei gestartet war.
Hab dann vorhin neu gestartet um zu sehen, ob automatisch
ein neuer Eintrag in der Log Datei erzeugt wird: -->Leider kein Eintrag. Die Datei ist leer.
Auch nach mehreren Minuten wurde kein Eintrag erzeugt.
Dann habe ich crontab -e ausgeführt. Da kommt dann dieses:
root@raspberrypi4:~# crontab -e
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
- /tmp/crontab.1Lu3xD 0/0 100%
Dann habe ich die controller.sh erneut mit diesem Befehl ausgeführt:
root@raspberrypi4:~# sh /data/etc/Spotmarket-Switcher/controller.sh
I: Bash Version: GNU bash, version 5.0.18(1)-release (arm-ve-linux-gnueabi)
I: Spotmarket-Switcher - Version 2.4.9
Loading...Config validation passed.
I: Fetching today-data data from aWATTar.
I: Please be patient. First we wait 30 seconds in case the system clock is not s yncronized and not to overload the API.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2884 100 2884 0 0 10602 0 --:--:-- --:--:-- --:--:-- 10642
I: aWATTar tomorrow-data does not exist, fetching data.
I: Please be patient. First we wait 30 seconds in case the system clock is not syncronized and not to overload the API.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2884 100 2884 0 0 42411 0 --:--:-- --:--:-- --:--:-- 42411
I: File '/tmp/awattar_tomorrow_prices.yaml' has no tomorrow data, we have to try it again until the new prices are online.
Data available for 24 hours.
I: Please be patient. A delay of 7 seconds will help avoid overloading the Solarweather-API.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 136 100 136 0 0 217 0 --:--:-- --:--:-- --:--:-- 217
I: Please verify correct system time and timezone:
Sun Jan 7 10:47:38 CET 2024
I: Current price is 8.71500 Cent/kWh energy price.
I: The average price will be 8.63267 Cent/kWh energy price.
I: Highest price will be 10.48500 Cent/kWh energy price.
I: Sorted prices: 1:7.18600 2:7.20800 3:7.34600 4:7.49000 5:7.67600 6:7.76900 7:7.98200 8:8.17900 9:8.38600 10:8.40800 11:8.43400 12:8.48100
13:8.48600 14:8.71500 15:8.80100 16:8.86600 17:8.91400 18:9.11700 19:9.33100 20:9.34200 21:10.05000 22:10.17700 23:10.35500 24:10.48500
I: Charge at prices: 1 2 3
I: Dynamic ESS discharge (depending SOC) at prices: 24
I: Switchable sockets at prices: 1 2 3
I: Sunrise today will be 08:38 and sunset will be 16:28. Suntime will be 470 minutes.
I: Solarenergy today will be 3.6 megajoule per sqaremeter with 69.4 percent clouds.
I: Solarenergy tomorrow will be 3.4 megajoule per squaremeter with 70.5 percent clouds.
I: At 3.6 megajoule there will be a dynamic SOC charge-target of No target SoC found. % calculated. The rest is reserved for solar.
ERROR:dbus.connection:Unable to set arguments ('No', 'target', 'SoC', 'found.') according to signature 'v': <class 'TypeError'>: Fewer items found in D-Bus signature than in Python arguments
Traceback (most recent call last):
File "/usr/bin/dbus", line 374, in <module>
ret = obj.object.get_dbus_method(method.name, iface.name)(*args)
File "/usr/lib/python3.8/site-packages/dbus/proxies.py", line 141, in call
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3.8/site-packages/dbus/connection.py", line 657, in call_blocking
message.append(signature=signature, *args)
TypeError: Fewer items found in D-Bus signature than in Python arguments
Aktuell liegt ja wieder ein 24h Wert vor. Hier erscheint ein neuer Fehler, den es gestern beim 48h Wert nicht gegeben hat.
Ein erneutes ausführen von crontab -e ergibt nach einer Menge dieser Zeichen: ~
- /tmp/crontab.TImd8D 0/0 100%
Vielleicht hast du ja nochmal Zeit dir das anzuschauen. Es eilt wie gesagt nicht, aber ich würde mich freuen, wenn es auch bei mir laufen würde.
Gruß
Matthias