-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Space after value ; check if zero #7
Comments
can you show me an example?
|
soory my mistake also Space at end for wedata_now_p but more simple because no floating point #request value webdatal_total_e |
I also check if Webdata_total_e is 0.0 than Inverter not ready but ist maybe not for you |
is my last commit ok now? |
looks good but Space not solve it also get worst mi600 now webdata_now_p has a .0 part (floating point) uninstall and rm-r
root@DietPi:~# git clone https://github.com/dr-ni/mi600.git
Klone nach 'mi600' ...
remote: Enumerating objects: 163, done.
remote: Counting objects: 100% (163/163), done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 163 (delta 84), reused 61 (delta 24), pack-reused 0
Empfange Objekte: 100% (163/163), 28.61 KiB | 1.43 MiB/s, fertig.
Löse Unterschiede auf: 100% (84/84), fertig.
root@DietPi:~# cd mi600
root@DietPi:~/mi600# make install
install -d /usr/local/man/man1
install -m 0755 mi600 /usr/local/bin
install -m 0644 README.md /usr/share/doc/mi600
install -m 0644 LICENSE /usr/share/doc/mi600
install -m 0644 man/man1/mi600.1 /usr/local/man/man1
root@DietPi:~/mi600# cd ..
root@DietPi:~# bash auslesen
!0 !
!0!
space still there
root@DietPi:~# bash auslesen
!18.0 !
!18.0!
|
should be ok now, can you check it again? |
sorry but still space at the end but floating point is now gone for wedata_now_p root@DietPi:~# bash auslesen #request value |
I do not have any spaces?
|
root@DietPi:~# mi600 192.168.xx admin xx webdata_now_p |
the response should be +196+
|
thanks it is not your fault you could reverse the change because its some with parsing |
maybe this helps if all is ok now - please close this issue |
i use your script for my upload data script for VZ-DB
i also add nowaday the total value
i had some Problems with the value maybe that also some idea/problem for your script to take in account
for actual power i had a zero in front
#request value
ACTUAL=$(/usr/local/bin/mi600 $host_pv $user $password webdata_now_p)
#remove Zero in Front
ACTUAL_NUM=$(($ACTUAL))
and for Total Energy i had a Space at the End
#request value TOTAL
TOTAL=$(/usr/local/bin/mi600 $host_pv $user $password webdata_total_e)
#Remove end SPACE-Char
TOTAL_NUM=$(echo $TOTAL | sed 's/[[:space:]]*$//')
The text was updated successfully, but these errors were encountered: