Skip to content
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

Get request vehicle types (openWB) does not return list #13245

Closed
Bucky2k opened this issue Apr 1, 2024 · 5 comments
Closed

Get request vehicle types (openWB) does not return list #13245

Bucky2k opened this issue Apr 1, 2024 · 5 comments
Assignees
Labels
bug Something isn't working infrastructure Basic functionality

Comments

@Bucky2k
Copy link

Bucky2k commented Apr 1, 2024

Describe the bug

OpenWB requests the types of vehicles supported by EVCC by http:

https://cloud.evcc.io/api/vehicles

Currently, this does not return any data

Steps to reproduce

...

Configuration details

OpenWB 1.9

Log details

OpenWB, no relevant log

What type of operating system are you running?

Linux

Version

No response

@andig andig self-assigned this Apr 1, 2024
@andig
Copy link
Member

andig commented Apr 1, 2024

@Bucky2k gibts irgendeine Antwort oder Timeout? Statuscode?

@Bucky2k
Copy link
Author

Bucky2k commented Apr 1, 2024

Leider sind die Logs leer. Nur diese Nachricht nach etwa 10 Sekunden:

@Bucky2k
Copy link
Author

Bucky2k commented Apr 1, 2024

Screenshot_20240401_130141_Chrome

@Bucky2k
Copy link
Author

Bucky2k commented Apr 1, 2024

Hier die Abfrage:

$('#soc_evcc_load_vehicles_lp1').click(function(){
										$('#soc_evcc_load_vehicles_lp1').removeClass("bg-danger");
										$('#soc_evcc_load_vehicles_lp1').removeClass("bg-success");
										$('#soc_evcc_load_vehicles_lp1').addClass("bg-warning");
										$(this).find('.fa-sync').addClass('fa-spin');
										$("#soc_evcc_select_vehicle_lp1").empty();
										$.ajax({
											type: "GET",
											url: "https://cloud.evcc.io/api/vehicles",
											success: function(vehicledata){
												$('#soc_evcc_load_vehicles_lp1').removeClass("bg-warning");
												$('#soc_evcc_load_vehicles_lp1').addClass("bg-success");
												var vehicleid = $('#soc_evcc_type_lp1').val();
												$("<option/>").val('').text("-- Bitte auswählen --").appendTo('#soc_evcc_select_vehicle_lp1');
												vehicledata.forEach(function(vehicle){
													newVehicle = $("<option/>").val(vehicle.id).text(vehicle.name);
													if( vehicleid == vehicle.id ){
														newVehicle.attr('selected','selected');
													}
													newVehicle.appendTo('#soc_evcc_select_vehicle_lp1');
												});
												$('#soc_evcc_select_vehicle_lp1').attr('readonly', false);
											},
											error: function(errMsg) {
												$('#soc_evcc_load_vehicles_lp1').removeClass("bg-warning");
												$('#soc_evcc_load_vehicles_lp1').addClass("bg-danger");
												alert("Fahrzeuge konnten nicht abgerufen werden!");
											},
											complete: function(){
												$('#soc_evcc_load_vehicles_lp1').find('.fa-sync').removeClass('fa-spin');
											}```

@andig
Copy link
Member

andig commented Apr 1, 2024

Danke für den Hinweis- behoben!

@andig andig closed this as completed Apr 1, 2024
@andig andig added infrastructure Basic functionality bug Something isn't working labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure Basic functionality
Projects
None yet
Development

No branches or pull requests

2 participants