src/Entity/XiboWeather.php
public function edit($name, $duration, $useDuration, $useDisplayLocation, $longitude, $latitude, $templateId, $units, $updateInterval, $lang, $dayConditionsOnly, $widgetId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->useDisplayLocation = $useDisplayLocation;
        $this->longitude = $longitude;
        $this->latitude = $latitude;
        $this->templateId = $templateId;
        $this->units = $units;
        $this->updateInterval = $updateInterval;
        $this->lang = $lang;
        $this->dayConditionsOnly = $dayConditionsOnly;
        $this->widgetId = $widgetId;
        $this->getLogger()->info('Editing Weather widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);
    }
public function edit($name, $duration, $useDuration, $useDisplayLocation, $longitude, $latitude, $templateId, $units, $updateInterval, $lang, $dayConditionsOnly, $widgetId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->useDisplayLocation = $useDisplayLocation;
        $this->longitude = $longitude;
        $this->latitude = $latitude;
        $this->templateId = $templateId;
        $this->units = $units;
        $this->updateInterval = $updateInterval;
        $this->lang = $lang;
        $this->dayConditionsOnly = $dayConditionsOnly;
        $this->widgetId = $widgetId;
        $this->getLogger()->info('Editing Weather widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);
    }
public function edit ( $ name , $ duration , $ useDuration , $ useDisplayLocation , $ longitude , $ latitude , $ templateId , $ units , $ updateInterval , $ lang , $ dayConditionsOnly , $ widgetId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> useDisplayLocation = $ useDisplayLocation ; $ this -> longitude = $ longitude ; $ this -> latitude = $ latitude ; $ this -> templateId = $ templateId ; $ this -> units = $ units ; $ this -> updateInterval = $ updateInterval ; $ this -> lang = $ lang ; $ this -> dayConditionsOnly = $ dayConditionsOnly ; $ this -> widgetId = $ widgetId ; $ this -> getLogger ( ) -> info ( 'Editing Weather widget ID ' . $ widgetId ) ; $ response = $ this -> doPut ( '/playlist/widget/' . $ widgetId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Edit Weather widget
@param string $name Optional widget name
@param int $duration Widget Duration
@param int $useDuration Flag indicating whether to use custom duration
@param int $useDisplayLocation Flag Use the location configured on the Display?
@param double $longitude The longitude for this Google Traffic widget, only pass if useDisplayLocation set to 0
@param double $latitude he latitude for this Google Traffic widget, only pass if useDisplayLocation set to 0
@param string $templateId Use pre-configured templates, available options: weather-module0-5day, weather-module0-singleday, weather-module0-singleday2, weather-module1l, weather-module1p, weather-module2l, weather-module2p, weather-module3l, weather-module3p, weather-module4l, weather-module4p, weather-module5l, weather-module6v, weather-module6h
@param string $units Units you would like to use, available options: auto, ca, si, uk2, us
@param int $updateInterval Update interval in minutes, should be kept as high as possible, if data change once per hour, this should be set to 60
@param string $lang Language you’d like to use, supported languages ar, az, be, bs, cs, de, en, el, es, fr, hr, hu, id, it, is, kw, nb, nl, pl, pt, ru, sk, sr, sv, tet, tr, uk, x-pig-latin, zh, zh-tw
@param int $dayConditionsOnly Flag (0, 1) Would you like to only show the Daytime weather conditions
@param int $widgetId Widget ID
@return XiboWeather
Edit Weather widget