fix litte bugs in API modul

add first code for daily and hourly forcast delete count
This commit is contained in:
2022-12-13 14:00:46 +01:00
parent 8ec9dae902
commit 7ac7e75d82
2 changed files with 99 additions and 5 deletions

View File

@ -329,6 +329,18 @@ sub Weather_ReturnWithError {
return;
}
sub Weather_DeleteReadings {
my $hash = shift;
my $name = $hash->{NAME};
my $delReadingRegEx;
CommandDeleteReading( undef, $name . ' .?(ASC)_.*' );
CommandDeleteReading( undef, $name . ' ' . $delReadingRegEx );
return;
}
sub Weather_RetrieveCallbackFn {
my $name = shift;